| Constructor | Description | 
|---|---|
| TreePath(CompilationUnitTree t) | Creates a TreePath for a root node. | 
| TreePath(TreePath p,
        Tree t) | Creates a TreePath for a child node. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| 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() | Iterates from leaves to root. | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic TreePath(CompilationUnitTree 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()
 Copyright © 2005, 2025, Oracle and/or its affiliates.  All rights reserved.