クラスDocTreePath
java.lang.Object
com.sun.source.util.DocTreePath
-
コンストラクタのサマリー
コンストラクタコンストラクタ説明DocTreePath(DocTreePath p, DocTree t) 子ノードのDocTreePathを作成します。DocTreePath(TreePath treePath, DocCommentTree t) ルート・ノードのDocTreePathを作成します。 -
メソッドのサマリー
修飾子と型メソッド説明このパスに関連付けられたDocCommentTreeを返します。getLeaf()このパスのリーフ・ノードを返します。囲んでいるノードのパスを返します。囲んでいるノードがない場合はnullを返します。static DocTreePathgetPath(DocTreePath path, DocTree target) DocTreePathオブジェクトで識別されるサブツリー内のツリー・ノードのドキュメント・ツリー・パスを返します。ノードが見つからない場合はnullを返します。static DocTreePathgetPath(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- ルート・ノードが作成されたTreePatht- パスを作成するDocCommentTree
-
DocTreePath
-
-
メソッドの詳細
-
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
-
getDocComment
public DocCommentTree getDocComment()このパスに関連付けられたDocCommentTreeを返します。- 戻り値:
- この
DocTreePathのDocCommentTree
-
getLeaf
-
getParentPath
-
iterator
-