クラスcom.sun.source.util.TreePath
の使用
-
com.sun.source.utilでのTreePathの使用
修飾子と型メソッド説明TreePathScanner.getCurrentPath()
現在アクティブなスキャン呼び出しの集合によって構築されたノードの現在のパスを返します。TreePath.getParentPath()
囲むノードのパスを返します。囲むノードがない場合はnull
を返します。static TreePath
TreePath.getPath
(CompilationUnitTree unit, Tree target) コンパイル単位内のツリー・ノードのツリー・パスを返します。ノードが見つからない場合はnull
を返します。static TreePath
TreePathオブジェクトによって識別されるサブツリー内のツリー・ノードのツリー・パスを返します。abstract TreePath
Trees.getPath
(CompilationUnitTree unit, Tree node) 指定されたコンパイル単位内のツリー・ノードへのパスを返します。abstract TreePath
指定されたElement
のTreePath
ノードを返します。abstract TreePath
Trees.getPath
(Element e, AnnotationMirror a) 指定されたElement
のAnnotationMirror
のTreePath
ノードを返します。abstract TreePath
Trees.getPath
(Element e, AnnotationMirror a, AnnotationValue v) 指定されたElement
のAnnotationMirror
のAnnotationValue
のTreePath
ノードを返します。DocTreePath.getTreePath()
このパスに関連付けられたTreePath
を返します。修飾子と型メソッド説明abstract String
Trees.getDocComment
(TreePath path) 指定されたTreePath
で識別されるTree
ノードのdocコメント(ある場合)を返します。abstract DocCommentTree
DocTrees.getDocCommentTree
(TreePath path) 指定されたTreePathによって識別されるTreeノードのdocコメント・ツリーがあれば、それを返します。abstract Element
Trees.getElement
(TreePath path) 指定されたTreePath
で識別されるTree
ノードのElement
を返します。static DocTreePath
DocTreePath.getPath
(TreePath treePath, DocCommentTree doc, DocTree target) コンパイル単位内のツリー・ノードのドキュメント・ツリー・パスを返します。ノードが見つからない場合はnull
を返します。static TreePath
TreePathオブジェクトによって識別されるサブツリー内のツリー・ノードのツリー・パスを返します。abstract Scope
指定されたTreePath
で識別されるTree
ノードのScope
を返します。abstract TypeMirror
Trees.getTypeMirror
(TreePath path) 指定されたTreePath
で識別されるTree
ノードのTypeMirror
を返します。TreePathによって識別される位置からツリーをスキャンします。修飾子コンストラクタ説明DocTreePath
(TreePath treePath, DocCommentTree t) ルート・ノードのDocTreePath
を作成します。子ノードのTreePathを作成します。