|
Compiler Tree API | ||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectcom.sun.source.util.TreePath
public class TreePath
ツリーノードのパスです。通常、トップレベルの CompilationUnitTree ノードまでの、ツリーノードの上位ノードのシーケンスを表すために使用されます。
コンストラクタの概要 | |
---|---|
TreePath(CompilationUnitTree t)
ルートノードの TreePath を作成します。 |
|
TreePath(TreePath p,
Tree t)
子ノードの TreePath を作成します。 |
メソッドの概要 | |
---|---|
CompilationUnitTree |
getCompilationUnit()
このパスに関連付けられたコンパイルユニットを取得します。 |
Tree |
getLeaf()
このパスの葉ノードを取得します。 |
TreePath |
getParentPath()
包含するノードのパスを取得します。 |
static TreePath |
getPath(CompilationUnitTree unit,
Tree target)
コンパイルユニット内のツリーノードのツリーパスを取得します。 |
static TreePath |
getPath(TreePath path,
Tree target)
TreePath オブジェクトによって識別されるサブツリー内のツリーノードのツリーパスを取得します。 |
Iterator<Tree> |
iterator()
Returns an iterator over a set of elements of type T. |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public TreePath(CompilationUnitTree t)
public TreePath(TreePath p, Tree t)
メソッドの詳細 |
---|
public static TreePath getPath(CompilationUnitTree unit, Tree target)
public static TreePath getPath(TreePath path, Tree target)
public CompilationUnitTree getCompilationUnit()
public Tree getLeaf()
public TreePath getParentPath()
public Iterator<Tree> iterator()
java.lang.Iterable
の記述:
Iterable<Tree>
内の iterator
|
Compiler Tree API | ||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |