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 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
- 
コンストラクタの詳細- 
DocTreePathpublic DocTreePath(TreePath treePath, DocCommentTree t)ルート・ノードのDocTreePathを作成します。- パラメータ:
- treePath- ルート・ノードが作成された- TreePath
- t- パスを作成する- DocCommentTree
 
- 
DocTreePathpublic DocTreePath(DocTreePath p, DocTree t)子ノードのDocTreePathを作成します。- パラメータ:
- p- 親ノード
- t- 子ノード
 
 
- 
- 
メソッドの詳細- 
getPathpublic static DocTreePath getPath(TreePath treePath, DocCommentTree doc, DocTree target)コンパイル単位内のツリー・ノードのドキュメント・ツリー・パスを返します。ノードが見つからない場合はnullを返します。- パラメータ:
- treePath- docコメントが関連付けられているノードのパス
- doc- ノードに関連付けられたドキュメント・コメント
- target- docコメント内のノード
- 戻り値:
- ツリー内のターゲットを識別するパス
 
- 
getPathpublic static DocTreePath getPath(DocTreePath path, DocTree target)DocTreePathオブジェクトで識別されるサブツリー内のツリー・ノードのドキュメント・ツリー・パスを返します。ノードが見つからない場合はnullを返します。- パラメータ:
- path- docコメント・ツリー内のノードを識別するパス
- target- 指定されたノード内に配置されるノード
- 戻り値:
- ターゲット・ノードを識別するパス
 
- 
getTreePathpublic TreePath getTreePath()このパスに関連付けられたTreePathを返します。- 戻り値:
- このDocTreePathのTreePath
 
- 
getDocCommentpublic DocCommentTree getDocComment()このパスに関連付けられたDocCommentTreeを返します。- 戻り値:
- このDocTreePathのDocCommentTree
 
- 
getLeafpublic DocTree getLeaf()このパスのリーフ・ノードを返します。- 戻り値:
- このDocTreePathのDocTree
 
- 
getParentPathpublic DocTreePath getParentPath()囲むノードのパスを返します。囲むノードがない場合はnullを返します。- 戻り値:
- 親のDocTreePath
 
- 
iteratorインタフェースからコピーされた説明:Iterable型Tの要素のイテレータを返します。
 
-