インタフェース
com.sun.source.doctree.DocCommentTreeの使用
DocCommentTreeを使用するパッケージ
パッケージ
説明
ドキュメンテーション・コメントを抽象構文ツリー(AST)として表すためのインタフェースを提供します。
抽象構文ツリー(Abstract Syntax Tree、AST)の操作のためのユーティリティを提供します。
-
com.sun.source.doctreeでのDocCommentTreeの使用
型DocCommentTreeのパラメータを持つcom.sun.source.doctreeのメソッド -
com.sun.source.utilでのDocCommentTreeの使用
修飾子と型メソッド説明DocTreePath.getDocComment()このパスに関連付けられたDocCommentTreeを返します。abstract DocCommentTreeDocTrees.getDocCommentTree(TreePath path) 指定されたTreePathで識別されるツリー・ノードのdocコメント・ツリー(ある場合)を返します。abstract DocCommentTreeDocTrees.getDocCommentTree(Element e) 指定された要素のdocコメント・ツリーを返します。abstract DocCommentTreeDocTrees.getDocCommentTree(Element e, String relativePath) 指定された要素の相対パスが指定されている、指定されたファイルのdocコメント・ツリーを返します。abstract DocCommentTreeDocTrees.getDocCommentTree(FileObject fileObject) 指定されたファイルのdocコメント・ツリーを返します。DocTreeFactory.newDocCommentTree(List<? extends DocTree> fullBody, List<? extends DocTree> tags) 完全なドキュメンテーション・コメントを表す新しいDocCommentTreeオブジェクトを作成します。DocTreeFactory.newDocCommentTree(List<? extends DocTree> fullBody, List<? extends DocTree> tags, List<? extends DocTree> preamble, List<? extends DocTree> postamble) ドキュメンテーション・コメント全体を表す新しいDocCommentTreeオブジェクトを作成します。型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) 指定されたコンパイル単位内のツリーの位置に、指定された種類のメッセージを出力しますDocTreeScanner.visitDocComment(DocCommentTree node, P p) DocCommentTreeノードにビジットします。SimpleDocTreeVisitor.visitDocComment(DocCommentTree node, P p) DocCommentTreeノードにビジットします。型DocCommentTreeのパラメータを持つcom.sun.source.utilのコンストラクタ