接口的使用
javax.lang.model.element.AnnotationMirror
使用 AnnotationMirror 的包
包
描述
为抽象语法树 (AST) 的操作提供实用程序。
用于声明注解处理器和允许注解处理器与注释处理工具环境进行通信的工具。
包的类型和层次结构包含 Java 语言模型、Java 编程语言的声明和类型模型。
用于对 Java 编程语言的元素建模的接口。
用于对 Java 编程语言类型建模的接口。
-
AnnotationMirror 在 com.sun.source.util 中的用法
com.sun.source.util 中的方法,参数类型为 AnnotationMirror修饰符和类型方法描述abstract TreePathTrees.getPath(Element e, AnnotationMirror a) 返回给定Element上AnnotationMirror的TreePath节点。abstract TreePathTrees.getPath(Element e, AnnotationMirror a, AnnotationValue v) 为给定的Element上的AnnotationMirror返回AnnotationValue的TreePath节点。abstract TreeTrees.getTree(Element e, AnnotationMirror a) 返回给定Element上AnnotationMirror的Tree节点。abstract TreeTrees.getTree(Element e, AnnotationMirror a, AnnotationValue v) 为给定的Element上的AnnotationMirror返回AnnotationValue的Tree节点。 -
AnnotationMirror 在 javax.annotation.processing 中的用法
javax.annotation.processing 中的方法,参数类型为 AnnotationMirror修饰符和类型方法描述Iterable<? extends Completion>AbstractProcessor.getCompletions(Element element, AnnotationMirror annotation, ExecutableElement member, String userText) 返回一个空的完成迭代。Iterable<? extends Completion>Processor.getCompletions(Element element, AnnotationMirror annotation, ExecutableElement member, String userText) 向工具基础结构返回对注释的建议完成的可迭代。voidMessager.printMessage(Diagnostic.Kind kind, CharSequence msg, Element e, AnnotationMirror a) 在注解元素的注释镜像位置打印指定类型的消息。voidMessager.printMessage(Diagnostic.Kind kind, CharSequence msg, Element e, AnnotationMirror a, AnnotationValue v) 在注解元素的注解镜像中的注解值位置处打印指定类型的消息. -
AnnotationMirror 在 javax.lang.model 中的用法
返回类型中包含 AnnotationMirror 类型参数的 javax.lang.model 中的方法修饰符和类型方法描述List<? extends AnnotationMirror>AnnotatedConstruct.getAnnotationMirrors()返回此构造上的 directly present 注释。 -
AnnotationMirror 在 javax.lang.model.element 中的用法
返回类型中包含 AnnotationMirror 类型参数的 javax.lang.model.element 中的方法修饰符和类型方法描述List<? extends AnnotationMirror>Element.getAnnotationMirrors()返回此构造上的 directly present 注释。javax.lang.model.element 中的方法,参数类型为 AnnotationMirror -
AnnotationMirror 在 javax.lang.model.type 中的用法
返回类型中包含 AnnotationMirror 类型参数的 javax.lang.model.type 中的方法修饰符和类型方法描述List<? extends AnnotationMirror>TypeMirror.getAnnotationMirrors()返回此构造上的 directly present 注释。 -
AnnotationMirror 在 javax.lang.model.util 中的用法
返回类型中包含 AnnotationMirror 类型参数的 javax.lang.model.util 中的方法修饰符和类型方法描述List<? extends AnnotationMirror>Elements.getAllAnnotationMirrors(Element e) 返回所有注释展示在元素上,无论是直接存在还是通过继承存在。javax.lang.model.util 中的方法,参数类型为 AnnotationMirror修饰符和类型方法描述Map<? extends ExecutableElement,? extends AnnotationValue> Elements.getElementValuesWithDefaults(AnnotationMirror a) 返回注解元素的值,包括默认值。default Elements.OriginElements.getOrigin(AnnotatedConstruct c, AnnotationMirror a) 返回给定注释镜像的origin。SimpleAnnotationValueVisitor6.visitAnnotation(AnnotationMirror a, P p) 访问注解中的注解值。