CompilationUnitTree node.
| Modifier and Type | Field and Description |
|---|---|
| private CompilationUnitTree | |
| private Tree | |
| private TreePath |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public CompilationUnitTree | Returns: the compilation unitReturns the compilation unit associated with this path. |
| public Tree | |
| public TreePath | Returns: the path for the enclosing nodeReturns the path for the enclosing node, or |
| public static TreePath | Returns: the tree paththe compilation unit to search unit, Tree the node to locate target)Returns a tree path for a tree node within a compilation unit,
or |
| public static TreePath | |
| public Iterator |
| compilationUnit | back to summary |
|---|---|
| private CompilationUnitTree compilationUnit | |
| leaf | back to summary |
|---|---|
| private Tree leaf | |
| parent | back to summary |
|---|---|
| private TreePath parent | |
| TreePath | back to summary |
|---|---|
| public TreePath(CompilationUnitTree node) Creates a TreePath for a root node.
| |
| TreePath | back to summary |
|---|---|
| public TreePath(TreePath path, Tree tree) Creates a TreePath for a child node. | |
| getCompilationUnit | back to summary |
|---|---|
| public CompilationUnitTree getCompilationUnit() Returns the compilation unit associated with this path.
| |
| getLeaf | back to summary |
|---|---|
| public Tree getLeaf() Returns the leaf node for this path.
| |
| getParentPath | back to summary |
|---|---|
| public TreePath getParentPath() Returns the path for the enclosing node, or
| |
| getPath | back to summary |
|---|---|
| public static TreePath getPath(CompilationUnitTree unit, Tree target) Returns a tree path for a tree node within a compilation unit,
or
| |
| getPath | back to summary |
|---|---|
| public static TreePath getPath(TreePath path, Tree target) Returns a tree path for a tree node within a subtree identified by a TreePath object.
Returns | |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Iterates from leaves to root.
| |