@Exported public interface DocSourcePositions extends SourcePositions
| 修飾子と型 | メソッドと説明 | 
|---|---|
long | 
getEndPosition(CompilationUnitTree file, DocCommentTree comment, DocTree tree)
ファイル内のコメント内のツリーの終了位置を取得します。 
 | 
long | 
getStartPosition(CompilationUnitTree file, DocCommentTree comment, DocTree tree)
ファイル内のコメント内のツリーの開始位置を取得します。 
 | 
getEndPosition, getStartPositionlong getStartPosition(CompilationUnitTree file, DocCommentTree comment, DocTree tree)
Diagnostic.NOPOSを返します。指定されたツリーは指定されたコメント・ツリーの下に配置し、指定されたドキュメンテーション・コメント・ツリーは、指定されたファイルの下にあるツリーのDocTrees.getDocCommentTree(com.sun.source.util.TreePath)から返されるようにしてください。返される位置は、このツリーの開始点である必要があります。つまり、このツリーのサブツリーでは、次の状態を保持する必要があります。
 
 tree.getStartPosition()<= subtree.getStartPosition()または
 tree.getStartPosition()== NOPOSまたは
 subtree.getStartPosition()== NOPOS
 
file - ツリーが検索されるCompilationUnit。comment - 位置のシーク対象となるツリーを囲むコメント・ツリーtree - 位置のシーク対象となるツリー。long getEndPosition(CompilationUnitTree file, DocCommentTree comment, DocTree tree)
Diagnostic.NOPOSを返します。指定されたツリーは指定されたコメント・ツリーの下に配置し、指定されたドキュメンテーション・コメント・ツリーは、指定されたファイルの下にあるツリーのDocTrees.getDocCommentTree(com.sun.source.util.TreePath)から返されるようにしてください。返される位置は、このツリーの終了点である必要があります。つまり、このツリーのサブツリーでは、次の状態を保持する必要があります。
 
 tree.getEndPosition()>= subtree.getEndPosition()または
 tree.getEndPosition()== NOPOSまたは
 subtree.getEndPosition()== NOPOS
 
 tree.getStartPosition()<= tree.getEndPosition()または
 tree.getStartPosition()== NOPOSまたは
 tree.getEndPosition()== NOPOS
 
file - ツリーが検索されるCompilationUnit。comment - 位置のシーク対象となるツリーを囲むコメント・ツリーtree - 位置のシーク対象となるツリー。
 Copyright© 2005, 2014, Oracle and/or its affiliates. All rights reserved.