Constructor and Description |
---|
DocTreePath(DocTreePath p,
DocTree t)
Creates a DocTreePath for a child node.
|
DocTreePath(TreePath treePath,
DocCommentTree t)
Creates a DocTreePath for a root node.
|
Modifier and Type | Method and Description |
---|---|
DocCommentTree |
getDocComment()
Get the DocCommentTree associated with this path.
|
DocTree |
getLeaf()
Get the leaf node for this path.
|
DocTreePath |
getParentPath()
Get the path for the enclosing node, or null if there is no enclosing node.
|
static DocTreePath |
getPath(DocTreePath path,
DocTree target)
Gets a documentation tree path for a tree node within a subtree identified by a DocTreePath object.
|
static DocTreePath |
getPath(TreePath treePath,
DocCommentTree doc,
DocTree target)
Gets a documentation tree path for a tree node within a compilation unit.
|
TreePath |
getTreePath()
Get the TreePath associated with this path.
|
Iterator<DocTree> |
iterator()
Returns an iterator over elements of type
T . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public DocTreePath(TreePath treePath, DocCommentTree t)
treePath
- the TreePath from which the root node was created.t
- the DocCommentTree to create the path for.public DocTreePath(DocTreePath p, DocTree t)
public static DocTreePath getPath(TreePath treePath, DocCommentTree doc, DocTree target)
public static DocTreePath getPath(DocTreePath path, DocTree target)
public TreePath getTreePath()
public DocCommentTree getDocComment()
public DocTree getLeaf()
public DocTreePath getParentPath()
Copyright © 2005, 2016, Oracle and/or its affiliates. All rights reserved.