模块 jdk.compiler

接口 AnnotationTree

所有父级接口:
ExpressionTree , Tree

public interface AnnotationTree extends ExpressionTree
注释的树节点。例如:
  @ annotationType 
  @ annotationType ( arguments )
 
Java 语言规范:
9.7 注释
自从:
1.6
  • 方法详情

    • getAnnotationType

      Tree  getAnnotationType()
      返回注解类型。
      返回:
      注解类型
    • getArguments

      List <? extends ExpressionTree > getArguments()
      返回注释的参数(如果有)。
      返回:
      注解类型的参数