- java.lang.Object
-
- com.sun.source.util.DocTreePath
-
-
コンストラクタのサマリー
コンストラクタ コンストラクタ 説明 DocTreePath(DocTreePath p, DocTree t)子ノードのDocTreePathを作成します。DocTreePath(TreePath treePath, DocCommentTree t)ルート・ノードのDocTreePathを作成します。
-
メソッドのサマリー
すべてのメソッド 静的メソッド インスタンス・メソッド 具象メソッド 修飾子と型 メソッド 説明 DocCommentTreegetDocComment()このパスに関連付けられているDocCommentTreeを返します。DocTreegetLeaf()このパスのリーフ・ノードを返します。DocTreePathgetParentPath()囲むノードのパスを返します。囲むノードがない場合はnullを返します。static DocTreePathgetPath(DocTreePath path, DocTree target)DocTreePathオブジェクトによって識別されるサブツリー内のツリー・ノードのドキュメント・ツリー・パスを返します。ノードが見つからない場合はnullを返します。static DocTreePathgetPath(TreePath treePath, DocCommentTree doc, DocTree target)コンパイル単位内のツリー・ノードのドキュメント・ツリー・パスを返します。ノードが見つからない場合はnullを返します。TreePathgetTreePath()このパスに関連付けられたTreePathを返します。Iterator<DocTree>iterator()型Tの要素のイテレータを返します。-
インタフェース 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
-
-