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

インタフェースAnnotationTree

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

    public interface AnnotationTree
    extends ExpressionTree
    注釈のツリー・ノードです。 たとえば:
        @annotationType
        @annotationType ( arguments )
     
    導入されたバージョン:
    1.6
    Java™言語仕様を参照します:
    セクション9.7
    • メソッドの詳細

      • getAnnotationType

        Tree getAnnotationType()
        注釈型を返します。
        戻り値:
        注釈型
      • getArguments

        List<? extends ExpressionTree> getArguments()
        注釈の引数があれば、それを返します。
        戻り値:
        注釈型の引数