接口的使用
com.sun.source.tree.AnnotationTree
使用 AnnotationTree 的包
-
AnnotationTree 在 com.sun.source.tree 中的用法
返回类型中包含 AnnotationTree 类型参数的 com.sun.source.tree 中的方法修饰符和类型方法描述List<? extends AnnotationTree>AnnotatedTypeTree.getAnnotations()返回与此类型表达式关联的注解。List<? extends AnnotationTree>ModifiersTree.getAnnotations()返回此修饰符树中的注解。List<? extends AnnotationTree>ModuleTree.getAnnotations()返回与此模块声明关联的注解。List<? extends AnnotationTree>NewArrayTree.getAnnotations()返回基类型的注解。List<? extends AnnotationTree>PackageTree.getAnnotations()返回与此包声明关联的注解。List<? extends AnnotationTree>TypeParameterTree.getAnnotations()返回类型参数声明的注解。List<? extends List<? extends AnnotationTree>>NewArrayTree.getDimAnnotations()返回每个维度表达式的注解。List<? extends AnnotationTree>CompilationUnitTree.getPackageAnnotations()返回此编译单元头部任何包声明中列出的注释,如果没有包声明,则返回null。com.sun.source.tree 中的方法,参数类型为 AnnotationTree -
AnnotationTree 在 com.sun.source.util 中的用法
com.sun.source.util 中的方法,参数类型为 AnnotationTree修饰符和类型方法描述SimpleTreeVisitor.visitAnnotation(AnnotationTree node, P p) 访问AnnotatedTree节点。TreeScanner.visitAnnotation(AnnotationTree node, P p) 访问AnnotatedTree节点。