インタフェースcom.sun.source.tree.CompilationUnitTree
の使用
-
CompilationUnitTreeを使用するパッケージ パッケージ 説明 com.sun.source.tree ソース・コードを抽象構文ツリー(Abstract Syntax Tree、AST)として表すためのインタフェースを提供します。com.sun.source.util 抽象構文ツリー(Abstract Syntax Tree、AST)の操作のためのユーティリティを提供します。 -
-
com.sun.source.treeでのCompilationUnitTreeの使用
CompilationUnitTree型のパラメータを持つcom.sun.source.treeのメソッド 修飾子と型 メソッド 説明 R
TreeVisitor. visitCompilationUnit(CompilationUnitTree node, P p)
CompilationUnitTreeノードをビジットします。 -
com.sun.source.utilでのCompilationUnitTreeの使用
CompilationUnitTreeを返すcom.sun.source.utilのメソッド 修飾子と型 メソッド 説明 CompilationUnitTree
TaskEvent. getCompilationUnit()
このイベントのコンパイル単位を返します。CompilationUnitTree
TreePath. getCompilationUnit()
このパスに関連付けられたコンパイル単位を返します。CompilationUnitTree型の引数を持つ型を返すcom.sun.source.utilのメソッド 修飾子と型 メソッド 説明 abstract Iterable<? extends CompilationUnitTree>
JavacTask. parse()
指定されたファイルを解析して、抽象構文木のリストを返します。CompilationUnitTree型のパラメータを持つcom.sun.source.utilのメソッド 修飾子と型 メソッド 説明 long
DocSourcePositions. getEndPosition(CompilationUnitTree file, DocCommentTree comment, DocTree tree)
ファイル内のコメント内のツリーの終了位置を返します。long
SourcePositions. getEndPosition(CompilationUnitTree file, Tree tree)
ファイル内のツリーの終了位置を返します。static TreePath
TreePath. getPath(CompilationUnitTree unit, Tree target)
コンパイル単位内のツリー・ノードのツリー・パスを返します。ノードが見つからない場合はnull
を返します。abstract TreePath
Trees. getPath(CompilationUnitTree unit, Tree node)
指定されたコンパイル単位内のツリー・ノードへのパスを返します。long
DocSourcePositions. getStartPosition(CompilationUnitTree file, DocCommentTree comment, DocTree tree)
ファイル内のコメント内のツリーの開始位置を返します。long
SourcePositions. getStartPosition(CompilationUnitTree file, Tree tree)
ファイル内のツリーの開始位置を返します。abstract void
DocTrees. printMessage(Diagnostic.Kind kind, CharSequence msg, DocTree t, DocCommentTree c, CompilationUnitTree root)
指定されたコンパイル単位内のツリーの位置に、指定された種類のメッセージを出力しますabstract void
Trees. printMessage(Diagnostic.Kind kind, CharSequence msg, Tree t, CompilationUnitTree root)
指定されたコンパイル単位内のツリーの位置に、指定された種類のメッセージを出力しますR
SimpleTreeVisitor. visitCompilationUnit(CompilationUnitTree node, P p)
CompilationUnitTreeノードをビジットします。R
TreeScanner. visitCompilationUnit(CompilationUnitTree node, P p)
CompilationUnitTreeノードをビジットします。CompilationUnitTree型のパラメータを持つcom.sun.source.utilのコンストラクタ コンストラクタ 説明 TaskEvent(TaskEvent.Kind kind, CompilationUnitTree unit)
指定された種類とコンパイル単位のタスク・イベントを作成します。TaskEvent(TaskEvent.Kind kind, CompilationUnitTree unit, TypeElement clazz)
指定されたタイプ、コンパイル単位、型要素のタスク・イベントを作成します。TreePath(CompilationUnitTree node)
ルート・ノードのTreePathを作成します。
-