接口的使用
javax.lang.model.element.AnnotationValue
使用 AnnotationValue 的包
包
描述
为抽象语法树 (AST) 的操作提供实用程序。
用于声明注解处理器和允许注解处理器与注释处理工具环境进行通信的工具。
用于对 Java 编程语言的元素建模的接口。
-
AnnotationValue 在 com.sun.source.util 中的用法
com.sun.source.util 中的方法,参数类型为 AnnotationValue修饰符和类型方法描述abstract TreePathTrees.getPath(Element e, AnnotationMirror a, AnnotationValue v) 为给定的Element上的AnnotationMirror返回AnnotationValue的TreePath节点。abstract TreeTrees.getTree(Element e, AnnotationMirror a, AnnotationValue v) 为给定的Element上的AnnotationMirror返回AnnotationValue的Tree节点。 -
AnnotationValue 在 javax.annotation.processing 中的用法
javax.annotation.processing 中的方法,参数类型为 AnnotationValue修饰符和类型方法描述voidMessager.printMessage(Diagnostic.Kind kind, CharSequence msg, Element e, AnnotationMirror a, AnnotationValue v) 在注解元素的注解镜像中的注解值位置处打印指定类型的消息. -
AnnotationValue 在 javax.lang.model.element 中的用法
修饰符和类型方法描述ExecutableElement.getDefaultValue()如果此可执行文件是注解元素,则返回默认值。UnknownAnnotationValueException.getUnknownAnnotationValue()返回未知的注解值。返回类型中包含 AnnotationValue 类型参数的 javax.lang.model.element 中的方法修饰符和类型方法描述Map<? extends ExecutableElement,? extends AnnotationValue> AnnotationMirror.getElementValues()返回此注解元素的值。javax.lang.model.element 中的方法,参数类型为 AnnotationValue修饰符和类型方法描述default RAnnotationValueVisitor.visit(AnnotationValue av) 相当于visit(av, null)的便捷方法。AnnotationValueVisitor.visit(AnnotationValue av, P p) 访问注解值。AnnotationValueVisitor.visitUnknown(AnnotationValue av, P p) 访问未知类型的注解值。javax.lang.model.element 中的方法参数,类型参数为 AnnotationValue修饰符和类型方法描述AnnotationValueVisitor.visitArray(List<? extends AnnotationValue> vals, P p) 访问注释中的数组值。javax.lang.model.element 中的构造函数,参数类型为 AnnotationValue修饰符构造方法描述创建一个新的UnknownAnnotationValueException。 -
AnnotationValue 在 javax.lang.model.util 中的用法
返回类型中包含 AnnotationValue 类型参数的 javax.lang.model.util 中的方法修饰符和类型方法描述Map<? extends ExecutableElement,? extends AnnotationValue> Elements.getElementValuesWithDefaults(AnnotationMirror a) 返回注解元素的值,包括默认值。javax.lang.model.util 中的方法,参数类型为 AnnotationValue修饰符和类型方法描述final RAbstractAnnotationValueVisitor6.visit(AnnotationValue av) 访问注解值,就好像通过将自身传递给该值的accept方法传递null作为附加参数一样。final RAbstractAnnotationValueVisitor6.visit(AnnotationValue av, P p) 访问任何注解值,就好像通过将自身传递给该值的accept一样。AbstractAnnotationValueVisitor6.visitUnknown(AnnotationValue av, P p) 访问未知类型的注解值。javax.lang.model.util 中的方法参数,类型参数为 AnnotationValue修饰符和类型方法描述SimpleAnnotationValueVisitor6.visitArray(List<? extends AnnotationValue> vals, P p) 访问注释中的数组值。