| コンストラクタ | 説明 |
|---|---|
DocTrees() |
| 修飾子と型 | メソッド | 説明 |
|---|---|---|
abstract DocCommentTree |
getDocCommentTree(TreePath path) |
指定されたTreePathによって識別されるTreeノードのドキュメンテーション・コメント・ツリー(存在する場合)を取得します。
|
abstract Element |
getElement(DocTreePath path) |
指定された
DocTreePathのリーフ・ノードによって参照される言語モデル要素を取得し、不明な場合はnullを取得します。 |
abstract DocSourcePositions |
getSourcePositions() |
ソース位置を取得するためのユーティリティ・オブジェクトを取得します。
|
static DocTrees |
instance(JavaCompiler.CompilationTask task) |
指定されたCompilationTaskのDocTreesオブジェクトを取得します。
|
static DocTrees |
instance(ProcessingEnvironment env) |
指定されたProcessingEnvironmentのDocTreesオブジェクトを取得します。
|
abstract void |
printMessage(Diagnostic.Kind kind, CharSequence msg, DocTree t, DocCommentTree c, CompilationUnitTree root) |
指定されたコンパイル単位内のツリーの位置に、指定された種類のメッセージを出力します
|
getDocComment, getElement, getLub, getOriginalType, getPath, getPath, getPath, getPath, getScope, getTree, getTree, getTree, getTree, getTree, getTypeMirror, isAccessible, isAccessible, printMessagepublic static DocTrees instance(JavaCompiler.CompilationTask task)
task - Treesオブジェクトを取得するコンパイル・タスクIllegalArgumentException - タスクがTrees APIをサポートしていない場合。public static DocTrees instance(ProcessingEnvironment env)
env - Treesオブジェクトを取得する処理環境IllegalArgumentException - envがTrees APIをサポートしていない場合。public abstract DocCommentTree getDocCommentTree(TreePath path)
public abstract Element getElement(DocTreePath path)
DocTreePathのリーフ・ノードによって参照される言語モデル要素を取得し、不明な場合はnullを取得します。public abstract DocSourcePositions getSourcePositions()
TreesgetSourcePositions、クラスTreespublic abstract void printMessage(Diagnostic.Kind kind, CharSequence msg, DocTree t, DocCommentTree c, CompilationUnitTree root)
kind - メッセージの種類msg - メッセージ、ない場合は空の文字列t - 位置のヒントとして使用するツリーroot - ツリーを格納するコンパイル・ユニット
Copyright © 2005, 2025, Oracle and/or its affiliates. All rights reserved.