|
Compiler Tree API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.source.util.TreePath
A path of tree nodes, typically used to represent the sequence of ancestor nodes of a tree node up to the top level CompilationUnitTree node.
Constructor Summary | |
---|---|
TreePath(CompilationUnitTree t)
Creates a TreePath for a root node. |
|
TreePath(TreePath p,
Tree t)
Creates a TreePath for a child node. |
Method Summary | |
---|---|
CompilationUnitTree |
getCompilationUnit()
Get the compilation unit associated with this path. |
Tree |
getLeaf()
Get the leaf node for this path. |
TreePath |
getParentPath()
Get the path for the enclosing node, or null if there is no enclosing node. |
static TreePath |
getPath(CompilationUnitTree unit,
Tree target)
Gets a tree path for a tree node within a compilation unit. |
static TreePath |
getPath(TreePath path,
Tree target)
Gets a tree path for a tree node within a subtree identified by a TreePath object. |
Iterator<Tree> |
iterator()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TreePath(CompilationUnitTree t)
public TreePath(TreePath p, Tree t)
Method Detail |
---|
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()
|
Compiler Tree API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |