Lines Matching defs:path
35 * A path of tree nodes, typically used to represent the sequence of ancestor
42 * Returns a documentation tree path for a tree node within a compilation unit,
44 * @param treePath the path for the node with which the doc comment is associated
47 * @return a path identifying the target within the tree
54 * Returns a documentation tree path for a tree node within a subtree
56 * @param path a path identifying a node within a doc comment tree
58 * @return a path identifying the target node
60 public static DocTreePath getPath(DocTreePath path, DocTree target) {
61 Objects.requireNonNull(path); //null check
66 DocTreePath path;
67 Result(DocTreePath path) {
68 this.path = path;
82 if (path.getLeaf() == target) {
83 return path;
87 new PathFinder().scan(path, target);
89 return result.path;
98 * @param t the DocCommentTree to create the path for.
124 * Returns the TreePath associated with this path.
132 * Returns the DocCommentTree associated with this path.
140 * Returns the leaf node for this path.
148 * Returns the path for the enclosing node, or {@code null} if there is no enclosing node.