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

636 lines
31 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 AnnotationValueVisitor">Interface AnnotationValueVisitor&lt;R,P&gt;</h2>
</div><div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>
<span class="paramLabel">参数类型</span>
</dt>
<dd>
<code>R</code> - 这个访问者的方法的返回类型
</dd>
<dd>
<code>P</code> - 访问者方法的附加参数类型。
</dd>
</dl>
<dl>
<dt>
所有已知实现类:
</dt>
<dd>
<span><a href="../../../../javax/lang/model/util/AbstractAnnotationValueVisitor6.html" title="javax.lang.model.util中的类">AbstractAnnotationValueVisitor6</a> <a href="../../../../javax/lang/model/util/AbstractAnnotationValueVisitor7.html" title="javax.lang.model.util中的类">AbstractAnnotationValueVisitor7</a> <a href="../../../../javax/lang/model/util/AbstractAnnotationValueVisitor8.html" title="javax.lang.model.util中的类">AbstractAnnotationValueVisitor8</a> <a href="../../../../javax/lang/model/util/SimpleAnnotationValueVisitor6.html" title="javax.lang.model.util中的类">SimpleAnnotationValueVisitor6</a> <a href="../../../../javax/lang/model/util/SimpleAnnotationValueVisitor7.html" title="javax.lang.model.util中的类">SimpleAnnotationValueVisitor7</a> <a href="../../../../javax/lang/model/util/SimpleAnnotationValueVisitor8.html" title="javax.lang.model.util中的类">SimpleAnnotationValueVisitor8</a></span>
</dd>
</dl>
<hr/> <br/> <pre>public interface <span class="typeNameLabel">AnnotationValueVisitor&lt;R,P&gt;</span></pre>
<div class="block">
<span>注释类型元素的值的访问者,使用访问者设计模式的变体。</span>
<span>与根据类型层次结构的成员的具体类型进行调度的标准访问者不同,该访问者根据存储的数据类型进行调度;</span>
<span>没有明确的子类存储,例如<code>boolean</code>值与<code>int</code>值。</span>
<span>实现此接口的类用于在编译时该值的类型未知时对值进行操作。</span>
<span>当访问者被传递给值<a href="../../../../javax/lang/model/element/AnnotationValue.html#accept-javax.lang.model.element.AnnotationValueVisitor-P-"><code>accept</code></a>方法时,调用适用于该值的<tt>visit<i>XYZ</i></tt>方法。</span>
<p> <span>实现此界面的类可以或可以不抛出<code>NullPointerException</code>如果附加参数<code>p</code><code>null</code> ;</span> <span>有关详细信息,请参阅实施类的文档。</span> </p>
<p> <span><b>警告:</b>可能的方法将添加到此界面以适应未来版本的Java编程语言中添加的新的当前未知的语言结构。</span> <span>因此,直接实现此接口的访问者类可能与未来的平台版本不兼容。</span> <span>为了避免这种源不兼容,我们鼓励访问者实现扩展实现此接口的适当抽象访问类。</span> <span>然而API通常应该将此访问接口用作参数返回类型等的类型而不是抽象类之一。</span> </p>
<p> <span>请注意,如果添加为<em>默认方法,</em>则可以以源<em>兼容的</em>方式添加适应新语言结构的<em>方法</em></span> <span>但是默认方法仅适用于Java SE 8和更高版本并且Java SE 8中捆绑的<code>javax.lang.model.*</code>软件包也需要在Java SE 7上运行。因此在扩展<code>javax.lang.model.*</code>以涵盖Java SE 8语言时<em>,不能</em>使用默认方法特征。</span> <span>但是,默认方法可能会用于<code>javax.lang.model.*</code>程序包的<code>javax.lang.model.*</code> 只能在Java SE 8和更高版本的平台上运行。</span> </p>
</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><a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">R</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html#visit-javax.lang.model.element.AnnotationValue-">visit</a></span>(<a href="../../../../javax/lang/model/element/AnnotationValue.html" title="interface in javax.lang.model.element">AnnotationValue</a> av)</code>
<div class="block">
方便方法相当于
<code>v.visit(av, null)</code>
</div> </td>
</tr>
<tr class="rowColor" id="i1">
<td class="colFirst"><code><a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">R</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html#visit-javax.lang.model.element.AnnotationValue-P-">visit</a></span>(<a href="../../../../javax/lang/model/element/AnnotationValue.html" title="interface in javax.lang.model.element">AnnotationValue</a> av, <a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">P</a> p)</code>
<div class="block">
访问注释值。
</div> </td>
</tr>
<tr class="altColor" id="i2">
<td class="colFirst"><code><a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">R</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html#visitAnnotation-javax.lang.model.element.AnnotationMirror-P-">visitAnnotation</a></span>(<a href="../../../../javax/lang/model/element/AnnotationMirror.html" title="interface in javax.lang.model.element">AnnotationMirror</a> a, <a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">P</a> p)</code>
<div class="block">
访问注释中的注释值。
</div> </td>
</tr>
<tr class="rowColor" id="i3">
<td class="colFirst"><code><a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">R</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html#visitArray-java.util.List-P-">visitArray</a></span>(<a href="../../../../java/util/List.html" title="interface in java.util">List</a>&lt;? extends <a href="../../../../javax/lang/model/element/AnnotationValue.html" title="interface in javax.lang.model.element">AnnotationValue</a>&gt; vals, <a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">P</a> p)</code>
<div class="block">
访问注释中的数组值。
</div> </td>
</tr>
<tr class="altColor" id="i4">
<td class="colFirst"><code><a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">R</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html#visitBoolean-boolean-P-">visitBoolean</a></span>(boolean b, <a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">P</a> p)</code>
<div class="block">
访问
<code>boolean</code>中的boolean值。
</div> </td>
</tr>
<tr class="rowColor" id="i5">
<td class="colFirst"><code><a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">R</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html#visitByte-byte-P-">visitByte</a></span>(byte b, <a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">P</a> p)</code>
<div class="block">
访问
<code>byte</code>中的byte值。
</div> </td>
</tr>
<tr class="altColor" id="i6">
<td class="colFirst"><code><a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">R</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html#visitChar-char-P-">visitChar</a></span>(char c, <a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">P</a> p)</code>
<div class="block">
访问
<code>char</code>中的char值。
</div> </td>
</tr>
<tr class="rowColor" id="i7">
<td class="colFirst"><code><a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">R</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html#visitDouble-double-P-">visitDouble</a></span>(double d, <a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">P</a> p)</code>
<div class="block">
访问
<code>double</code>中的double值。
</div> </td>
</tr>
<tr class="altColor" id="i8">
<td class="colFirst"><code><a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">R</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html#visitEnumConstant-javax.lang.model.element.VariableElement-P-">visitEnumConstant</a></span>(<a href="../../../../javax/lang/model/element/VariableElement.html" title="interface in javax.lang.model.element">VariableElement</a> c, <a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">P</a> p)</code>
<div class="block">
访问
<code>枚举</code>中的enum值。
</div> </td>
</tr>
<tr class="rowColor" id="i9">
<td class="colFirst"><code><a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">R</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html#visitFloat-float-P-">visitFloat</a></span>(float f, <a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">P</a> p)</code>
<div class="block">
访问
<code>float</code>中的float值。
</div> </td>
</tr>
<tr class="altColor" id="i10">
<td class="colFirst"><code><a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">R</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html#visitInt-int-P-">visitInt</a></span>(int i, <a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">P</a> p)</code>
<div class="block">
访问
<code>int</code>中的int值。
</div> </td>
</tr>
<tr class="rowColor" id="i11">
<td class="colFirst"><code><a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">R</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html#visitLong-long-P-">visitLong</a></span>(long i, <a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">P</a> p)</code>
<div class="block">
访问
<code>long</code>中的long值。
</div> </td>
</tr>
<tr class="altColor" id="i12">
<td class="colFirst"><code><a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">R</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html#visitShort-short-P-">visitShort</a></span>(short s, <a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">P</a> p)</code>
<div class="block">
访问
<code>short</code>中的short值。
</div> </td>
</tr>
<tr class="rowColor" id="i13">
<td class="colFirst"><code><a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">R</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html#visitString-java.lang.String-P-">visitString</a></span>(<a href="../../../../java/lang/String.html" title="class in java.lang">String</a> s, <a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">P</a> p)</code>
<div class="block">
访问注释中的字符串值。
</div> </td>
</tr>
<tr class="altColor" id="i14">
<td class="colFirst"><code><a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">R</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html#visitType-javax.lang.model.type.TypeMirror-P-">visitType</a></span>(<a href="../../../../javax/lang/model/type/TypeMirror.html" title="interface in javax.lang.model.type">TypeMirror</a> t, <a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">P</a> p)</code>
<div class="block">
访问注释中的类型值。
</div> </td>
</tr>
<tr class="rowColor" id="i15">
<td class="colFirst"><code><a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">R</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html#visitUnknown-javax.lang.model.element.AnnotationValue-P-">visitUnknown</a></span>(<a href="../../../../javax/lang/model/element/AnnotationValue.html" title="interface in javax.lang.model.element">AnnotationValue</a> av, <a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">P</a> p)</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="visit-javax.lang.model.element.AnnotationValue-java.lang.Object-">
<!-- --> </a><a name="visit-javax.lang.model.element.AnnotationValue-P-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>visit</h4> <pre><a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">R</a> visit(<a href="../../../../javax/lang/model/element/AnnotationValue.html" title="interface in javax.lang.model.element">AnnotationValue</a> av,
<a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">P</a> p)</pre>
<div class="block">
访问注释值。
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>av</code> - 要访问的值
</dd>
<dd>
<code>p</code> - 访客指定的参数
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
访客指定的结果
</dd>
</dl> </li>
</ul> <a name="visit-javax.lang.model.element.AnnotationValue-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>visit</h4> <pre><a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">R</a> visit(<a href="../../../../javax/lang/model/element/AnnotationValue.html" title="interface in javax.lang.model.element">AnnotationValue</a> av)</pre>
<div class="block">
方便的方法相当于
<code>v.visit(av, null)</code>
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>av</code> - 要访问的值
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
访客指定的结果
</dd>
</dl> </li>
</ul> <a name="visitBoolean-boolean-java.lang.Object-">
<!-- --> </a><a name="visitBoolean-boolean-P-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>visitBoolean</h4> <pre><a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">R</a> visitBoolean(boolean b,
<a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">P</a> p)</pre>
<div class="block">
访问
<code>boolean</code>中的boolean值。
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>b</code> - 正在访问的值
</dd>
<dd>
<code>p</code> - 访客指定的参数
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
访问的结果
</dd>
</dl> </li>
</ul> <a name="visitByte-byte-java.lang.Object-">
<!-- --> </a><a name="visitByte-byte-P-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>visitByte</h4> <pre><a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">R</a> visitByte(byte b,
<a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">P</a> p)</pre>
<div class="block">
访问
<code>byte</code>中的byte值。
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>b</code> - 被访问的值
</dd>
<dd>
<code>p</code> - 访客指定的参数
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
访问的结果
</dd>
</dl> </li>
</ul> <a name="visitChar-char-java.lang.Object-">
<!-- --> </a><a name="visitChar-char-P-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>visitChar</h4> <pre><a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">R</a> visitChar(char c,
<a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">P</a> p)</pre>
<div class="block">
访问
<code>char</code>中的char值。
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>c</code> - 被访问的值
</dd>
<dd>
<code>p</code> - 访客指定的参数
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
访问的结果
</dd>
</dl> </li>
</ul> <a name="visitDouble-double-java.lang.Object-">
<!-- --> </a><a name="visitDouble-double-P-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>visitDouble</h4> <pre><a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">R</a> visitDouble(double d,
<a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">P</a> p)</pre>
<div class="block">
访问
<code>double</code>中的double值。
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>d</code> - 正在访问的值
</dd>
<dd>
<code>p</code> - 访客指定的参数
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
访问的结果
</dd>
</dl> </li>
</ul> <a name="visitFloat-float-java.lang.Object-">
<!-- --> </a><a name="visitFloat-float-P-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>visitFloat</h4> <pre><a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">R</a> visitFloat(float f,
<a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">P</a> p)</pre>
<div class="block">
访问
<code>float</code>中的float值。
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>f</code> - 正在访问的值
</dd>
<dd>
<code>p</code> - 访客指定的参数
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
访问的结果
</dd>
</dl> </li>
</ul> <a name="visitInt-int-java.lang.Object-">
<!-- --> </a><a name="visitInt-int-P-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>visitInt</h4> <pre><a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">R</a> visitInt(int i,
<a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">P</a> p)</pre>
<div class="block">
访问
<code>int</code>中的int值。
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>i</code> - 正在访问的值
</dd>
<dd>
<code>p</code> - 访客指定的参数
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
访问的结果
</dd>
</dl> </li>
</ul> <a name="visitLong-long-java.lang.Object-">
<!-- --> </a><a name="visitLong-long-P-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>visitLong</h4> <pre><a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">R</a> visitLong(long i,
<a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">P</a> p)</pre>
<div class="block">
访问
<code>long</code>中的long值。
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>i</code> - 被访问的值
</dd>
<dd>
<code>p</code> - 访客指定的参数
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
访问的结果
</dd>
</dl> </li>
</ul> <a name="visitShort-short-java.lang.Object-">
<!-- --> </a><a name="visitShort-short-P-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>visitShort</h4> <pre><a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">R</a> visitShort(short s,
<a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">P</a> p)</pre>
<div class="block">
访问
<code>short</code>中的short值。
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>s</code> - 正在访问的值
</dd>
<dd>
<code>p</code> - 访客指定的参数
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
访问的结果
</dd>
</dl> </li>
</ul> <a name="visitString-java.lang.String-java.lang.Object-">
<!-- --> </a><a name="visitString-java.lang.String-P-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>visitString</h4> <pre><a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">R</a> visitString(<a href="../../../../java/lang/String.html" title="class in java.lang">String</a> s,
<a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">P</a> p)</pre>
<div class="block">
访问注释中的字符串值。
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>s</code> - 正在访问的值
</dd>
<dd>
<code>p</code> - 访客指定的参数
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
访问的结果
</dd>
</dl> </li>
</ul> <a name="visitType-javax.lang.model.type.TypeMirror-java.lang.Object-">
<!-- --> </a><a name="visitType-javax.lang.model.type.TypeMirror-P-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>visitType</h4> <pre><a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">R</a> visitType(<a href="../../../../javax/lang/model/type/TypeMirror.html" title="interface in javax.lang.model.type">TypeMirror</a> t,
<a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">P</a> p)</pre>
<div class="block">
访问注释中的类型值。
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>t</code> - 正在访问的值
</dd>
<dd>
<code>p</code> - 访客指定的参数
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
访问的结果
</dd>
</dl> </li>
</ul> <a name="visitEnumConstant-javax.lang.model.element.VariableElement-java.lang.Object-">
<!-- --> </a><a name="visitEnumConstant-javax.lang.model.element.VariableElement-P-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>visitEnumConstant</h4> <pre><a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">R</a> visitEnumConstant(<a href="../../../../javax/lang/model/element/VariableElement.html" title="interface in javax.lang.model.element">VariableElement</a> c,
<a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">P</a> p)</pre>
<div class="block">
访问
<code>枚举</code>中的enum值。
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>c</code> - 正在访问的值
</dd>
<dd>
<code>p</code> - 访客指定的参数
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
访问的结果
</dd>
</dl> </li>
</ul> <a name="visitAnnotation-javax.lang.model.element.AnnotationMirror-java.lang.Object-">
<!-- --> </a><a name="visitAnnotation-javax.lang.model.element.AnnotationMirror-P-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>visitAnnotation</h4> <pre><a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">R</a> visitAnnotation(<a href="../../../../javax/lang/model/element/AnnotationMirror.html" title="interface in javax.lang.model.element">AnnotationMirror</a> a,
<a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">P</a> p)</pre>
<div class="block">
访问注释中的注释值。
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>a</code> - 被访问的值
</dd>
<dd>
<code>p</code> - 访客指定的参数
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
访问的结果
</dd>
</dl> </li>
</ul> <a name="visitArray-java.util.List-java.lang.Object-">
<!-- --> </a><a name="visitArray-java.util.List-P-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>visitArray</h4> <pre><a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">R</a> visitArray(<a href="../../../../java/util/List.html" title="interface in java.util">List</a>&lt;? extends <a href="../../../../javax/lang/model/element/AnnotationValue.html" title="interface in javax.lang.model.element">AnnotationValue</a>&gt; vals,
<a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">P</a> p)</pre>
<div class="block">
访问注释中的数组值。
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>vals</code> - 正在访问的值
</dd>
<dd>
<code>p</code> - 访客指定的参数
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
访问的结果
</dd>
</dl> </li>
</ul> <a name="visitUnknown-javax.lang.model.element.AnnotationValue-java.lang.Object-">
<!-- --> </a><a name="visitUnknown-javax.lang.model.element.AnnotationValue-P-">
<!-- --> </a>
<ul class="blockListLast">
<li class="blockList"> <h4>visitUnknown</h4> <pre><a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">R</a> visitUnknown(<a href="../../../../javax/lang/model/element/AnnotationValue.html" title="interface in javax.lang.model.element">AnnotationValue</a> av,
<a href="../../../../javax/lang/model/element/AnnotationValueVisitor.html" title="type parameter in AnnotationValueVisitor">P</a> p)</pre>
<div class="block">
<span>访问未知类型的注释值。</span>
<span>如果语言发展,并且可以将新种类的值存储在注释中,则可能会发生这种情况。</span>
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>av</code> - 被访问的未知值
</dd>
<dd>
<code>p</code> - 访客指定的参数
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
访问的结果
</dd>
<dt>
<span class="throwsLabel">异常</span>
</dt>
<dd>
<code><a href="../../../../javax/lang/model/element/UnknownAnnotationValueException.html" title="class in javax.lang.model.element">UnknownAnnotationValueException</a></code> - a visitor implementation may optionally throw this exception
</dd>
</dl> </li>
</ul> </li>
</ul> </li>
</ul>
</div>
</div>