クラス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)指定された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ノードを返します。TreePathDocTreePath. 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. getPath(TreePath path, Tree target)TreePathオブジェクトによって識別されるサブツリー内のツリー・ノードのツリー・パスを返します。abstract ScopeTrees. getScope(TreePath path)指定されたTreePathによって識別されるTreeノードのScopeを返します。abstract TypeMirrorTrees. getTypeMirror(TreePath path)指定されたTreePathによって識別されるTreeノードの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を作成します。
-