R
-这个访问者的方法的返回类型
P
-这个访问者的方法的附加参数的类型。
@SupportedSourceVersion(value=RELEASE_6) public abstract class AbstractAnnotationValueVisitor6<R,P> extends Object implements AnnotationValueVisitor<R,P>
RELEASE_6
源版本注释值骨骼的访客。
警告:该类实现的接口的AnnotationValueVisitor
可能方法添加到它在未来适应新的,未知的,语言结构增加了java编程语言的未来版本™。因此,方法的名字开始与"visit"
可能是未来这类添加;避免不兼容类扩展这个类不能声明任何实例方法的名字开始与"visit"
。
当这样一个新的访问方法的补充,在这类的默认实现将调用visitUnknown
方法。还将引入一个新的抽象注释值访问类,以对应于新的语言水平;该访问者将有不同的默认行为的访问方法的问题。当新的客人介绍,全部或部分游客可能被弃用。
注意:添加在访问类的一个新的访问方法的默认实现会发生而不是添加一个默认的方法直接在访客界面由于java SE 8语言特征不能从这个版本需要运行在java SE 7实现使用这个版本的API。那只需要运行在java SE 8和以后可能会利用这种情况的默认方法的API的未来版本。
AbstractAnnotationValueVisitor7
,
AbstractAnnotationValueVisitor8
Modifier | Constructor and Description |
---|---|
protected |
AbstractAnnotationValueVisitor6()
用于调用的具体子类的构造函数。
|
Modifier and Type | Method and Description |
---|---|
R |
visit(AnnotationValue av)
访问一个标注值如果通过自身价值的
accept 方法为额外的参数传递
null 。
|
R |
visit(AnnotationValue av, P p)
访问一个标注值如果通过自身价值的
accept 。
|
R |
visitUnknown(AnnotationValue av, P p)
访问一个未知的注释值。
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
visitAnnotation, visitArray, visitBoolean, visitByte, visitChar, visitDouble, visitEnumConstant, visitFloat, visitInt, visitLong, visitShort, visitString, visitType
protected AbstractAnnotationValueVisitor6()
public final R visit(AnnotationValue av, P p)
visit
接口
AnnotationValueVisitor<R,P>
av
价值-参观
p
-客人指定的参数
public final R visit(AnnotationValue av)
visit
接口
AnnotationValueVisitor<R,P>
av
价值-参观
public R visitUnknown(AnnotationValue av, P p)
在AbstractAnnotationValueVisitor6
此方法的默认实现将始终把UnknownAnnotationValueException
。这种行为不是一个子类所需的。
visitUnknown
接口
AnnotationValueVisitor<R,P>
av
-未知的值被访问
p
-客人指定的参数
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.