|
Compiler Tree API | ||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectcom.sun.source.util.Trees
public abstract class Trees
JSR 199、JSR 269、および Tree API をブリッジします。
コンストラクタの概要 | |
---|---|
Trees()
|
メソッドの概要 | |
---|---|
abstract Element |
getElement(TreePath path)
指定された TreePath によって識別される Tree ノードの Element を取得します。 |
abstract TreePath |
getPath(CompilationUnitTree unit,
Tree node)
指定されたコンパイルユニット内のツリーノードへのパスを取得します。 |
abstract TreePath |
getPath(Element e)
指定された Element の TreePath ノードを取得します。 |
abstract TreePath |
getPath(Element e,
AnnotationMirror a)
指定された Element 上の AnnotationMirror の TreePath ノードを取得します。 |
abstract TreePath |
getPath(Element e,
AnnotationMirror a,
AnnotationValue v)
指定された Element 上の AnnotationMirror の AnnotationValue の TreePath ノードを取得します。 |
abstract Scope |
getScope(TreePath path)
指定された TreePath によって識別される Tree ノードの Scope を取得します。 |
abstract SourcePositions |
getSourcePositions()
ソース位置を取得するためのユーティリティーオブジェクトを取得します。 |
abstract Tree |
getTree(Element element)
指定された Element の Tree ノードを取得します。 |
abstract Tree |
getTree(Element e,
AnnotationMirror a)
指定された Element 上の AnnotationMirror の Tree ノードを取得します。 |
abstract Tree |
getTree(Element e,
AnnotationMirror a,
AnnotationValue v)
指定された Element 上の AnnotationMirror の AnnotationValue の Tree ノードを取得します。 |
abstract MethodTree |
getTree(ExecutableElement method)
指定された ExecutableElement の MethodTree ノードを取得します。 |
abstract ClassTree |
getTree(TypeElement element)
指定された TypeElement の ClassTree ノードを取得します。 |
abstract TypeMirror |
getTypeMirror(TreePath path)
指定された TreePath によって識別される Tree ノードの TypeMirror を取得します。 |
static Trees |
instance(JavaCompiler.CompilationTask task)
指定された CompilationTask の Trees オブジェクトを取得します。 |
static Trees |
instance(ProcessingEnvironment env)
指定された CompilationTask の Trees オブジェクトを取得します。 |
abstract boolean |
isAccessible(Scope scope,
Element member,
DeclaredType type)
指定されたスコープ内で、指定された要素が、指定された型のメンバーとしてアクセス可能であるかどうかを判定します。 |
abstract boolean |
isAccessible(Scope scope,
TypeElement type)
指定されたスコープ内で、指定された型にアクセス可能であるかどうかを判定します。 |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public Trees()
メソッドの詳細 |
---|
public static Trees instance(JavaCompiler.CompilationTask task)
IllegalArgumentException
- タスクが Trees API をサポートしていない場合public static Trees instance(ProcessingEnvironment env)
IllegalArgumentException
- env が Trees API をサポートしていない場合public abstract SourcePositions getSourcePositions()
public abstract Tree getTree(Element element)
public abstract ClassTree getTree(TypeElement element)
public abstract MethodTree getTree(ExecutableElement method)
public abstract Tree getTree(Element e, AnnotationMirror a)
public abstract Tree getTree(Element e, AnnotationMirror a, AnnotationValue v)
public abstract TreePath getPath(CompilationUnitTree unit, Tree node)
public abstract TreePath getPath(Element e)
public abstract TreePath getPath(Element e, AnnotationMirror a)
public abstract TreePath getPath(Element e, AnnotationMirror a, AnnotationValue v)
public abstract Element getElement(TreePath path)
IllegalArgumentException
- TreePath が、関連付けられた Element を持つ可能性がある Tree ノードを識別しない場合public abstract TypeMirror getTypeMirror(TreePath path)
IllegalArgumentException
- TreePath が、関連付けられた TypeMirror を持つ可能性がある Tree ノードを識別しない場合public abstract Scope getScope(TreePath path)
public abstract boolean isAccessible(Scope scope, TypeElement type)
scope
- チェック対象のスコープtype
- チェック対象の型
type
がアクセス可能な場合は truepublic abstract boolean isAccessible(Scope scope, Element member, DeclaredType type)
scope
- チェック対象のスコープmember
- チェック対象のメンバーtype
- メンバーがアクセス可能かどうかを判定する型
type
の member
がアクセス可能な場合は true
|
Compiler Tree API | ||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |