Module jdk.compiler

Interface AnnotatedTypeTree

所有超级接口:
ExpressionTree, Tree

public interface AnnotatedTypeTree extends ExpressionTree
用于注解类型的树节点。例如:
    @annotationType String
    @annotationType ( arguments ) Date
 
自Java版本:
1.8
参见:
  • "JSR 308: Java类型上的注解"
  • Method Details

    • getAnnotations

      List<? extends AnnotationTree> getAnnotations()
      返回与此类型表达式关联的注解。
      返回:
      注解
    • getUnderlyingType

      ExpressionTree getUnderlyingType()
      返回与注解关联的基础类型。
      返回:
      基础类型