- java.lang.Object
-
- com.sun.source.util.DocTreePath
-
-
构造方法摘要
构造方法 构造器 描述 DocTreePath(DocTreePath p, DocTree t)
为子节点创建DocTreePath。DocTreePath(TreePath treePath, DocCommentTree t)
为根节点创建DocTreePath。
-
方法摘要
所有方法 静态方法 实例方法 具体的方法 变量和类型 方法 描述 DocCommentTree
getDocComment()
返回与此路径关联的DocCommentTree。DocTree
getLeaf()
返回此路径的叶节点。DocTreePath
getParentPath()
返回封闭节点的路径,如果没有封闭节点,则返回null
。static DocTreePath
getPath(DocTreePath path, DocTree target)
返回由DocTreePath对象标识的子树中的树节点的文档树路径,如果找不到节点,则null
。static DocTreePath
getPath(TreePath treePath, DocCommentTree doc, DocTree target)
返回编译单元中树节点的文档树路径,如果找不到节点,则null
。TreePath
getTreePath()
返回与此路径关联的TreePath。-
声明方法的类 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
声明方法的接口 java.lang.Iterable
forEach, iterator, spliterator
-
-
-
-
构造方法详细信息
-
DocTreePath
public DocTreePath(TreePath treePath, DocCommentTree t)
为根节点创建DocTreePath。- 参数
-
treePath
- 从中创建根节点的TreePath。 -
t
- 为其创建路径的DocCommentTree。
-
DocTreePath
public DocTreePath(DocTreePath p, DocTree t)
为子节点创建DocTreePath。- 参数
-
p
- 父节点 -
t
- 子节点
-
-
方法详细信息
-
getPath
public static DocTreePath getPath(TreePath treePath, DocCommentTree doc, DocTree target)
返回编译单元中树节点的文档树路径,如果找不到节点,则null
。- 参数
-
treePath
- 与doc注释关联的节点的路径 -
doc
- 与节点关联的文档注释 -
target
- doc注释中的节点 - 结果
- 标识树内目标的路径
-
getPath
public static DocTreePath getPath(DocTreePath path, DocTree target)
返回由DocTreePath对象标识的子树中的树节点的文档树路径,如果未找到该节点,则null
。- 参数
-
path
- 标识文档注释树中的节点的路径 -
target
- 位于给定节点内的节点 - 结果
- 标识目标节点的路径
-
getTreePath
public TreePath getTreePath()
返回与此路径关联的TreePath。- 结果
- 此DocTreePath的TreePath
-
getDocComment
public DocCommentTree getDocComment()
返回与此路径关联的DocCommentTree。- 结果
- 这个DocTreePath的DocCommentTree
-
getLeaf
public DocTree getLeaf()
返回此路径的叶节点。- 结果
- 此DocTreePath的DocTree
-
getParentPath
public DocTreePath getParentPath()
返回封闭节点的路径,如果没有封闭节点,则返回null
。- 结果
- 父母的DocTreePath
-
-