| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract String | Returns: the doc commentthe tree path path)Returns the doc comment, if any, for the |
| public abstract Element | Returns: the elementthe tree path path)Returns the |
| pack-priv static Trees | |
| public abstract TypeMirror | |
| public abstract TypeMirror | Returns: the type mirror corresponding to the original type, replaced by theErrorTypethe errorType for which we want to get the original type errorType)Returns the original type from the |
| public abstract TreePath | Returns: the tree paththe compilation unit unit, Tree the tree node node)Returns the path to tree node within the specified compilation unit. |
| public abstract TreePath | |
| public abstract TreePath | Returns: the tree paththe element e, AnnotationMirror the annotation mirror a)Returns the |
| public abstract TreePath | Returns: the tree paththe element e, AnnotationMirror the annotation mirror a, AnnotationValue the annotation value v)Returns the |
| public abstract Scope | |
| public abstract SourcePositions | Returns: the utility object for obtaining source positionsReturns a utility object for obtaining source positions. |
| public abstract Tree | |
| public abstract ClassTree | Returns: the class tree nodethe element element)Returns the |
| public abstract MethodTree | Returns: the method tree nodethe executable element method)Returns the |
| public abstract Tree | Returns: the tree nodethe element e, AnnotationMirror the annotation mirror a)Returns the |
| public abstract Tree | Returns: the tree nodethe element e, AnnotationMirror the annotation mirror a, AnnotationValue the annotation value v)Returns the |
| public abstract TypeMirror | Returns: the type mirrorthe tree path path)Returns the |
| public static Trees | Returns: theTrees objectthe compilation task for which to get the taskTrees objectReturns a |
| public static Trees | Returns: theTrees objectthe processing environment for which to get the env)Trees objectReturns a |
| public abstract boolean | Returns: true iftype is accessiblethe scope to be checked scope, TypeElement the type to be checked type)Checks whether a given type is accessible in a given scope. |
| public abstract boolean | Returns: true ifmember is accessible in typethe scope to be checked scope, Element the member to be checked member, DeclaredType the type for which to check if the member is accessible type)Checks whether the given element is accessible as a member of the given type in a given scope. |
| public abstract void | printMessage(Diagnostic.
the kind of message kind,the message, or an empty string if none msg, Tree the tree to use as a position hint t, CompilationUnitTree the compilation unit that contains tree root)Prints a message of the specified kind at the location of the tree within the provided compilation unit |
| Trees | back to summary |
|---|---|
| public Trees() Constructor for subclasses to call. | |
| getDocComment | back to summary |
|---|---|
| public abstract String getDocComment(TreePath path) Returns the doc comment, if any, for the
| |
| getElement | back to summary |
|---|---|
| public abstract Element getElement(TreePath path) Returns the
| |
| getJavacTrees | back to summary |
|---|---|
| pack-priv static Trees getJavacTrees(Class<?> argType, Object arg) | |
| getLub | back to summary |
|---|---|
| public abstract TypeMirror getLub(CatchTree tree) Returns the lub of an exception parameter declared in a catch clause.
| |
| getOriginalType | back to summary |
|---|---|
| public abstract TypeMirror getOriginalType(ErrorType errorType) Returns the original type from the
| |
| getPath | back to summary |
|---|---|
| public abstract TreePath getPath(CompilationUnitTree unit, Tree node) Returns the path to tree node within the specified compilation unit.
| |
| getPath | back to summary |
|---|---|
| public abstract TreePath getPath(Element e) Returns the | |
| getPath | back to summary |
|---|---|
| public abstract TreePath getPath(Element e, AnnotationMirror a) Returns the
| |
| getPath | back to summary |
|---|---|
| public abstract TreePath getPath(Element e, AnnotationMirror a, AnnotationValue v) Returns the
| |
| getScope | back to summary |
|---|---|
| public abstract Scope getScope(TreePath path) Returns the | |
| getSourcePositions | back to summary |
|---|---|
| public abstract SourcePositions getSourcePositions() Returns a utility object for obtaining source positions.
| |
| getTree | back to summary |
|---|---|
| public abstract Tree getTree(Element element) Returns the | |
| getTree | back to summary |
|---|---|
| public abstract ClassTree getTree(TypeElement element) Returns the
| |
| getTree | back to summary |
|---|---|
| public abstract MethodTree getTree(ExecutableElement method) Returns the
| |
| getTree | back to summary |
|---|---|
| public abstract Tree getTree(Element e, AnnotationMirror a) Returns the
| |
| getTree | back to summary |
|---|---|
| public abstract Tree getTree(Element e, AnnotationMirror a, AnnotationValue v) Returns the
| |
| getTypeMirror | back to summary |
|---|---|
| public abstract TypeMirror getTypeMirror(TreePath path) Returns the
| |
| instance | back to summary |
|---|---|
| public static Trees instance(JavaCompiler. Returns a
| |
| instance | back to summary |
|---|---|
| public static Trees instance(ProcessingEnvironment env) Returns a
| |
| isAccessible | back to summary |
|---|---|
| public abstract boolean isAccessible(Scope scope, TypeElement type) Checks whether a given type is accessible in a given scope.
| |
| isAccessible | back to summary |
|---|---|
| public abstract boolean isAccessible(Scope scope, Element member, DeclaredType type) Checks whether the given element is accessible as a member of the given type in a given scope.
| |
| printMessage | back to summary |
|---|---|
| public abstract void printMessage(Diagnostic. Prints a message of the specified kind at the location of the tree within the provided compilation unit
| |