R
-这个访问者的方法的返回类型
P
-这个访问者的方法的附加参数的类型。
@SupportedSourceVersion(value=RELEASE_7) public abstract class AbstractAnnotationValueVisitor7<R,P> extends AbstractAnnotationValueVisitor6<R,P>
RELEASE_7
源版本注释值骨骼的访客。
警告:该类实现的接口的AnnotationValueVisitor
可能方法添加到它在未来适应新的,未知的,语言结构增加了java编程语言的未来版本™。因此,方法的名字开始与"visit"
可能是未来这类添加;避免不兼容类扩展这个类不能声明任何实例方法的名字开始与"visit"
。
当这样一个新的访问方法的补充,在这类的默认实现将调用visitUnknown
方法。还将引入一个新的抽象注释值访问类,以对应于新的语言水平;该访问者将有不同的默认行为的访问方法的问题。当新的客人介绍,全部或部分游客可能被弃用。
注意:添加在访问类的一个新的访问方法的默认实现会发生而不是添加一个默认的方法直接在访客界面由于java SE 8语言特征不能从这个版本需要运行在java SE 7实现使用这个版本的API。那只需要运行在java SE 8和以后可能会利用这种情况的默认方法的API的未来版本。
AbstractAnnotationValueVisitor6
,
AbstractAnnotationValueVisitor8
Modifier | Constructor and Description |
---|---|
protected |
AbstractAnnotationValueVisitor7()
用于调用的具体子类的构造函数。
|
visit, visit, visitUnknown
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
visitAnnotation, visitArray, visitBoolean, visitByte, visitChar, visitDouble, visitEnumConstant, visitFloat, visitInt, visitLong, visitShort, visitString, visitType
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.