java.lang.Object
com.sun.source.util.DocTreePath
ツリー・ノードのパス。通常、最上位の
DocCommentTree
ノードまでのツリー・ノードの祖先ノードの順序を表すために使用されます。- 導入されたバージョン:
- 1.8
-
コンストラクタのサマリー
コンストラクタ説明DocTreePath
(DocTreePath p, DocTree t) 子ノードのDocTreePath
を作成します。DocTreePath
(TreePath treePath, DocCommentTree t) ルート・ノードのDocTreePath
を作成します。 -
メソッドのサマリー
修飾子と型メソッド説明このパスに関連付けられたDocCommentTree
を返します。getLeaf()
このパスのリーフ・ノードを返します。囲むノードのパスを返します。囲むノードがない場合はnull
を返します。static DocTreePath
getPath
(DocTreePath path, DocTree target) DocTreePath
オブジェクトで識別されるサブツリー内のツリー・ノードのドキュメント・ツリー・パスを返します。ノードが見つからない場合はnull
を返します。static DocTreePath
getPath
(TreePath treePath, DocCommentTree doc, DocTree target) コンパイル単位内のツリー・ノードのドキュメント・ツリー・パスを返します。ノードが見つからない場合はnull
を返します。このパスに関連付けられたTreePath
を返します。iterator()
型T
の要素のイテレータを返します。クラス java.lang.Objectで宣言されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
インタフェース java.lang.Iterableで宣言されたメソッド
forEach, 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
- docコメント・ツリー内のノードを識別するパス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
-
iterator
インタフェースからコピーされた説明:Iterable
型T
の要素のイテレータを返します。
-