インタフェース
com.sun.source.doctree.DocCommentTreeの使用
| パッケージ | 説明 |
|---|---|
| com.sun.source.doctree |
ドキュメンテーション・コメントを抽象構文ツリー(AST)として表すためのインタフェースを提供します。
|
| com.sun.source.util |
抽象構文ツリー(Abstract Syntax Tree、AST)の操作のためのユーティリティを提供します。
|
-
com.sun.source.doctreeでのDocCommentTreeの使用
DocCommentTree型のパラメータを持つcom.sun.source.doctreeのメソッド 修飾子と型 メソッド 説明 RDocTreeVisitor. visitDocComment(DocCommentTree node, P p)DocCommentTreeノードをビジットします。 -
com.sun.source.utilでのDocCommentTreeの使用
DocCommentTreeを返すcom.sun.source.utilのメソッド 修飾子と型 メソッド 説明 DocCommentTreeDocTreePath. getDocComment()このパスに関連付けられているDocCommentTreeを返します。abstract DocCommentTreeDocTrees. getDocCommentTree(TreePath path)指定されたTreePathによって識別されるTreeノードのdocコメント・ツリーがあれば、それを返します。abstract DocCommentTreeDocTrees. getDocCommentTree(Element e)指定された要素のドキュメント・コメント・ツリーを返します。abstract DocCommentTreeDocTrees. getDocCommentTree(Element e, String relativePath)指定された要素に相対してパスが指定された、指定されたファイルのドキュメント・コメント・ツリーを返します。abstract DocCommentTreeDocTrees. getDocCommentTree(FileObject fileObject)指定されたファイルのドキュメント・コメント・ツリーを返します。DocCommentTreeDocTreeFactory. newDocCommentTree(List<? extends DocTree> fullBody, List<? extends DocTree> tags)完全なドキュメント・コメントを表すために、新しいDocCommentTreeオブジェクトを作成します。DocCommentTreeDocTreeFactory. newDocCommentTree(List<? extends DocTree> fullBody, List<? extends DocTree> tags, List<? extends DocTree> preamble, List<? extends DocTree> postamble)新しいDocCommentTreeオブジェクトを作成して、enitireのドキュメント・コメントを表現します。DocCommentTree型のパラメータを持つcom.sun.source.utilのメソッド 修飾子と型 メソッド 説明 longDocSourcePositions. getEndPosition(CompilationUnitTree file, DocCommentTree comment, DocTree tree)ファイル内のコメント内のツリーの終了位置を返します。static DocTreePathDocTreePath. getPath(TreePath treePath, DocCommentTree doc, DocTree target)コンパイル単位内のツリー・ノードのドキュメント・ツリー・パスを返します。ノードが見つからない場合はnullを返します。longDocSourcePositions. getStartPosition(CompilationUnitTree file, DocCommentTree comment, DocTree tree)ファイル内のコメント内のツリーの開始位置を返します。abstract voidDocTrees. printMessage(Diagnostic.Kind kind, CharSequence msg, DocTree t, DocCommentTree c, CompilationUnitTree root)指定されたコンパイル単位内のツリーの位置に、指定された種類のメッセージを出力しますRDocTreeScanner. visitDocComment(DocCommentTree node, P p)DocCommentTreeノードをビジットします。RSimpleDocTreeVisitor. visitDocComment(DocCommentTree node, P p)DocCommentTreeノードをビジットします。DocCommentTree型のパラメータを持つcom.sun.source.utilのコンストラクタ コンストラクタ 説明 DocTreePath(TreePath treePath, DocCommentTree t)ルート・ノードのDocTreePathを作成します。