モジュール jdk.compiler
パッケージ com.sun.source.tree

インタフェースAnnotatedTypeTree

  • すべてのスーパー・インタフェース:
    ExpressionTree, Tree


    public interface AnnotatedTypeTree
    extends ExpressionTree
    注釈付き型のツリー・ノード。 次に例を示します。
        @annotationType String
        @annotationType ( arguments ) Date
     
    導入されたバージョン:
    1.8
    関連項目:
    『JSR 308: Annotations on Java Types』
    • メソッドの詳細

      • getAnnotations

        List<? extends AnnotationTree> getAnnotations​()
        この型表現に関連付けられた注釈を返します。
        戻り値:
        注釈
      • getUnderlyingType

        ExpressionTree getUnderlyingType​()
        注釈が関連付けられている基になる型を返します。
        戻り値:
        基底型