インタフェース
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によって識別されるTreeノードのdocコメント・ツリーがあれば、それを返します。abstract DocCommentTreeDocTrees.getDocCommentTree(Element e)指定された要素のドキュメント・コメント・ツリーを返します。abstract DocCommentTreeDocTrees.getDocCommentTree(Element e, String relativePath)指定された要素に相対してパスが指定された、指定されたファイルのドキュメント・コメント・ツリーを返します。abstract DocCommentTreeDocTrees.getDocCommentTree(FileObject fileObject)指定されたファイルのドキュメント・コメント・ツリーを返します。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のコンストラクタ