クラス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で識別されるツリー・ノードの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を作成します。