uTools-Manuals/docs/java/javax/lang/model/element/AnnotationValue.html

163 lines
5.8 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="header">
<div class="subTitle">
compact3
</div>
<div class="subTitle">
javax.lang.model.element
</div>
<h2 class="title" title="Interface AnnotationValue">Interface AnnotationValue</h2>
</div><div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr/> <br/> <pre>public interface <span class="typeNameLabel">AnnotationValue</span></pre>
<div class="block">
<span>表示注释类型元素的值。</span>
<span>值为以下类型之一:</span>
<ul>
<li> <span>一个原始类型的包装类(如<a href="../../../../java/lang/Integer.html" title="java.lang中的类"><code>Integer</code></a> </span> </li>
<li> <code>String</code> </li>
<li> <code>TypeMirror</code> </li>
<li> <span><code>VariableElement</code> (表示枚举常数)</span> </li>
<li> <code>AnnotationMirror</code> </li>
<li> <span><code>List&lt;? extends AnnotationValue&gt;</code> (以声明顺序表示元素,如果值为数组)</span> </li>
</ul>
</div>
<dl>
<dt>
<span class="simpleTagLabel">从以下版本开始:</span>
</dt>
<dd>
1.6
</dd>
</dl> </li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- --> </a> <h3>方法摘要</h3>
<table border="0" cellpadding="3" cellspacing="0" class="memberSummary" summary="Method Summary table, listing methods, and an explanation">
<caption>
<span class="activeTableTab" id="t0"><span>所有方法</span><span class="tabEnd"> </span></span>
<span class="tableTab" id="t2"><span><a href="javascript:show(2);">接口方法</a></span><span class="tabEnd"> </span></span>
<span class="tableTab" id="t3"><span><a href="javascript:show(4);">抽象方法</a></span><span class="tabEnd"> </span></span>
</caption>
<tbody>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor" id="i0">
<td class="colFirst"><code>&lt;R,P&gt; R</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/lang/model/element/AnnotationValue.html#accept-javax.lang.model.element.AnnotationValueVisitor-P-">accept</a></span>(<a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="interface in javax.lang.model.element">AnnotationValueVisitor</a>&lt;R,P&gt; v, P p)</code>
<div class="block">
将访问者应用于此值。
</div> </td>
</tr>
<tr class="rowColor" id="i1">
<td class="colFirst"><code><a href="../../../../java/lang/Object.html" title="class in java.lang">Object</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/lang/model/element/AnnotationValue.html#getValue--">getValue</a></span>()</code>
<div class="block">
返回值。
</div> </td>
</tr>
<tr class="altColor" id="i2">
<td class="colFirst"><code><a href="../../../../java/lang/String.html" title="class in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/lang/model/element/AnnotationValue.html#toString--">toString</a></span>()</code>
<div class="block">
返回此值的字符串表示形式。
</div> </td>
</tr>
</tbody>
</table> </li>
</ul> </li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- --> </a> <h3>方法详细信息</h3> <a name="getValue--">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>getValue</h4> <pre><a href="../../../../java/lang/Object.html" title="class in java.lang">Object</a> getValue()</pre>
<div class="block">
返回值。
</div>
<dl>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
价值
</dd>
</dl> </li>
</ul> <a name="toString--">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>toString</h4> <pre><a href="../../../../java/lang/String.html" title="class in java.lang">String</a> toString()</pre>
<div class="block">
<span>返回此值的字符串表示形式。</span>
<span>这是以适合于在注释的源代码中表示该值的形式返回的。</span>
</div>
<dl>
<dt>
<span class="overrideSpecifyLabel">重写:</span>
</dt>
<dd>
<code><a href="../../../../java/lang/Object.html#toString--">toString</a></code>
<code><a href="../../../../java/lang/Object.html" title="class in java.lang">Object</a></code>
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
该值的字符串表示形式
</dd>
</dl> </li>
</ul> <a name="accept-javax.lang.model.element.AnnotationValueVisitor-java.lang.Object-">
<!-- --> </a><a name="accept-javax.lang.model.element.AnnotationValueVisitor-P-">
<!-- --> </a>
<ul class="blockListLast">
<li class="blockList"> <h4>accept</h4> <pre>&lt;R,P&gt; R accept(<a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="interface in javax.lang.model.element">AnnotationValueVisitor</a>&lt;R,P&gt; v,
P p)</pre>
<div class="block">
将访问者应用于此值。
</div>
<dl>
<dt>
<span class="paramLabel">参数类型</span>
</dt>
<dd>
<code>R</code> - 访问者方法的返回类型
</dd>
<dd>
<code>P</code> - 访问者方法的附加参数类型
</dd>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>v</code> - 访问者操作此值
</dd>
<dd>
<code>p</code> - 访问者的附加参数
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
访客指定的结果
</dd>
</dl> </li>
</ul> </li>
</ul> </li>
</ul>
</div>
</div>