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