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