Uses of Interface
com.sun.source.tree.Tree
Package
Description
Provides interfaces to represent source code as abstract syntax
trees (AST).
Provides utilities for operations on abstract syntax trees (AST).
-
Uses of Tree in com.sun.source.tree
Modifier and TypeInterfaceDescriptioninterface
A tree node for an annotated type.interface
A tree node for an annotation.interface
A tree node for an array access expression.interface
A tree node for an array type.interface
A tree node for anassert
statement.interface
A tree node for an assignment expression.interface
A tree node for a binary expression.interface
A binding pattern treeinterface
A tree node for a statement block.interface
A tree node for abreak
statement.interface
A tree node for acase
in aswitch
statement or expression.interface
A tree node for acatch
block in atry
statement.interface
A tree node for a class, interface, enum, record, or annotation type declaration.interface
Represents the abstract syntax tree for compilation units (source files) and package declarations (package-info.java).interface
A tree node for compound assignment operator.interface
A tree node for the conditional operator? :
.interface
A tree node for acontinue
statement.interface
A super-type for all the directives in a ModuleTree.interface
A tree node for ado
statement.interface
A tree node for an empty (skip) statement.interface
A tree node for an "enhanced"for
loop statement.interface
A tree node to stand in for a malformed expression.interface
A tree node for an 'exports' directive in a module declaration.interface
A tree node for an expression statement.interface
A tree node used as the base class for the different types of expressions.interface
A tree node for a basicfor
loop statement.interface
A tree node for an identifier expression.interface
A tree node for anif
statement.interface
A tree node for an import declaration.interface
A tree node for aninstanceof
expression.interface
A tree node for an intersection type in a cast expression.interface
A tree node for a labeled statement.interface
A tree node for a lambda expression.interface
A tree node for a literal expression.interface
A tree node for a member reference expression.interface
A tree node for a member access expression.interface
A tree node for a method invocation expression.interface
A tree node for a method or annotation type element declaration.interface
A tree node for the modifiers, including annotations, for a declaration.interface
A tree node for a module declaration.interface
A tree node for an expression to create a new instance of an array.interface
A tree node to declare a new instance of a class.interface
A tree node for an 'opens' directive in a module declaration.interface
Represents the package declaration.interface
A tree node for a type expression involving type parameters.interface
A tree node for a parenthesized expression.interface
A tree node used as the base class for the different kinds of patterns.interface
A tree node for a primitive type.interface
A tree node for a 'provides' directive in a module declaration.interface
A tree node for a 'requires' directive in a module declaration.interface
A tree node for areturn
statement.interface
A tree node used as the base class for the different kinds of statements.interface
A tree node for aswitch
expression.interface
A tree node for aswitch
statement.interface
A tree node for asynchronized
statement.interface
A tree node for athrow
statement.interface
A tree node for atry
statement.interface
A tree node for a type cast expression.interface
A tree node for a type parameter.interface
A tree node for postfix and unary expressions.interface
A tree node for a union type expression in a multicatch variable declaration.interface
A tree node for a 'uses' directive in a module declaration.interface
A tree node for a variable declaration.interface
A tree node for awhile
loop statement.interface
A tree node for a wildcard type argument.interface
A tree node for ayield
statement.Modifier and TypeMethodDescriptionAnnotationTree.getAnnotationType()
Returns the annotation type.default Tree
CaseTree.getBody()
For case with kind CaseTree.CaseKind.RULE, returns the statement or expression after the arrow.LambdaExpressionTree.getBody()
Returns the body of the lambda expression.WildcardTree.getBound()
Returns the bound of the wildcard.MethodTree.getDefaultValue()
Returns the default value, if this is an element within an annotation type declaration.ClassTree.getExtendsClause()
Returns the supertype of this type declaration, ornull
if none is provided.ImportTree.getQualifiedIdentifier()
Returns the qualified identifier for the declaration(s) being imported.MethodTree.getReturnType()
Returns the return type of the method being declared.ArrayTypeTree.getType()
Returns the element type of this array type.InstanceOfTree.getType()
Returns the type for which to check.NewArrayTree.getType()
Returns the base type of the expression.ParameterizedTypeTree.getType()
Returns the base type.TypeCastTree.getType()
Returns the target type of the cast.VariableTree.getType()
Returns the type of the variable being declared.Modifier and TypeMethodDescriptionTree.Kind.asInterface()
Returns the associated interface type that uses this kind.IntersectionTypeTree.getBounds()
Returns the bounds of the type.TypeParameterTree.getBounds()
Returns the bounds of the type parameter.ErroneousTree.getErrorTrees()
Returns any trees that were saved in this node.ClassTree.getImplementsClause()
Returns the interfaces implemented by this type declaration.ClassTree.getMembers()
Returns the members declared in this type declaration.ClassTree.getPermitsClause()
Associated with sealed classes, a preview feature of the Java language.
Returns the subclasses permitted by this type declaration.TryTree.getResources()
Returns any resource declarations provided in thetry
statement.UnionTypeTree.getTypeAlternatives()
Returns the alternative type expressions.MethodInvocationTree.getTypeArguments()
Returns the type arguments for this method invocation.NewClassTree.getTypeArguments()
Returns the type arguments for the object being created.ParameterizedTypeTree.getTypeArguments()
Returns the type arguments.CompilationUnitTree.getTypeDecls()
Returns the type declarations appearing in this compilation unit.Modifier and TypeMethodDescriptionTreeVisitor.visitOther(Tree node, P p)
Visits an unknown type of Tree node. -
Uses of Tree in com.sun.source.util
Modifier and TypeMethodDescriptionTreePath.getLeaf()
Returns the leaf node for this path.abstract Tree
Returns the Tree node for a given Element.abstract Tree
Trees.getTree(Element e, AnnotationMirror a)
Returns the Tree node for an AnnotationMirror on a given Element.abstract Tree
Trees.getTree(Element e, AnnotationMirror a, AnnotationValue v)
Returns the Tree node for an AnnotationValue for an AnnotationMirror on a given Element.Modifier and TypeMethodDescriptionprotected R
SimpleTreeVisitor.defaultAction(Tree node, P p)
The default action, used by all visit methods that are not overridden.long
SourcePositions.getEndPosition(CompilationUnitTree file, Tree tree)
Returns the ending position of tree within file.static TreePath
TreePath.getPath(CompilationUnitTree unit, Tree target)
Returns a tree path for a tree node within a compilation unit, ornull
if the node is not found.static TreePath
Returns a tree path for a tree node within a subtree identified by a TreePath object.abstract TreePath
Trees.getPath(CompilationUnitTree unit, Tree node)
Returns the path to tree node within the specified compilation unit.long
SourcePositions.getStartPosition(CompilationUnitTree file, Tree tree)
Returns the starting position of tree within file.abstract void
Trees.printMessage(Diagnostic.Kind kind, CharSequence msg, Tree t, CompilationUnitTree root)
Prints a message of the specified kind at the location of the tree within the provided compilation unitScans a single node.Scans a single node.Invokes the appropriate visit method specific to the type of the node.SimpleTreeVisitor.visitOther(Tree node, P p)
Visits an unknown type of Tree node.TreeScanner.visitOther(Tree node, P p)
Visits an unknown type of Tree node.Modifier and TypeMethodDescriptionabstract TypeMirror
JavacTask.getTypeMirror(Iterable<? extends Tree> path)
Returns a type mirror of the tree node determined by the specified path.Scans a sequence of nodes.Invokes the appropriate visit method on each of a sequence of nodes.