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