インタフェースcom.sun.source.tree.AnnotationTree
の使用
AnnotationTreeを使用するパッケージ
パッケージ
説明
ソース・コードを抽象構文ツリー(Abstract Syntax Tree、AST)として表すためのインタフェースを提供します。
抽象構文ツリー(Abstract Syntax Tree、AST)の操作のためのユーティリティを提供します。
-
com.sun.source.treeでのAnnotationTreeの使用
型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を返します。型AnnotationTreeのパラメータを持つcom.sun.source.treeのメソッド -
com.sun.source.utilでのAnnotationTreeの使用
型AnnotationTreeのパラメータを持つcom.sun.source.utilのメソッド修飾子と型メソッド説明SimpleTreeVisitor.visitAnnotation(AnnotationTree node, P p) AnnotatedTreeノードにビジットします。TreeScanner.visitAnnotation(AnnotationTree node, P p) AnnotatedTreeノードにビジットします。