Uses of Interface
com.sun.source.tree.Tree
Packages that use 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
Subinterfaces of Tree in com.sun.source.treeModifier and TypeInterfaceDescriptioninterfaceA tree node for an annotated type.interfaceA tree node for an annotation.interfaceA tree node for an array access expression.interfaceA tree node for an array type.interfaceA tree node for anassertstatement.interfaceA tree node for an assignment expression.interfaceA tree node for a binary expression.interfaceA binding pattern treeinterfaceA tree node for a statement block.interfaceA tree node for abreakstatement.interfacePreview.A marker interface forTrees that may be used asCaseTreelabels.interfaceA tree node for acasein aswitchstatement or expression.interfaceA tree node for acatchblock in atrystatement.interfaceA tree node for a class, interface, enum, record, or annotation type declaration.interfaceRepresents the abstract syntax tree for ordinary compilation units and modular compilation units.interfaceA tree node for compound assignment operator.interfaceA tree node for the conditional operator? :.interfaceA tree node for acontinuestatement.interfacePreview.A case label that marksdefaultincase null, default.interfaceA super-type for all the directives in a ModuleTree.interfaceA tree node for adostatement.interfaceA tree node for an empty (skip) statement.interfaceA tree node for an "enhanced"forloop statement.interfaceA tree node to stand in for a malformed expression.interfaceA tree node for an 'exports' directive in a module declaration.interfaceA tree node for an expression statement.interfaceA tree node used as the base class for the different types of expressions.interfaceA tree node for a basicforloop statement.interfacePreview.A guard pattern tree.interfaceA tree node for an identifier expression.interfaceA tree node for anifstatement.interfaceA tree node for an import declaration.interfaceA tree node for aninstanceofexpression.interfaceA tree node for an intersection type in a cast expression.interfaceA tree node for a labeled statement.interfaceA tree node for a lambda expression.interfaceA tree node for a literal expression.interfaceA tree node for a member reference expression.interfaceA tree node for a member access expression.interfaceA tree node for a method invocation expression.interfaceA tree node for a method or annotation type element declaration.interfaceA tree node for the modifiers, including annotations, for a declaration.interfaceA tree node for a module declaration.interfaceA tree node for an expression to create a new instance of an array.interfaceA tree node to declare a new instance of a class.interfaceA tree node for an 'opens' directive in a module declaration.interfaceRepresents the package declaration.interfaceA tree node for a type expression involving type parameters.interfacePreview.A tree node for a parenthesized pattern.interfaceA tree node for a parenthesized expression.interfaceA tree node used as the base class for the different kinds of patterns.interfaceA tree node for a primitive type.interfaceA tree node for a 'provides' directive in a module declaration.interfaceA tree node for a 'requires' directive in a module declaration.interfaceA tree node for areturnstatement.interfaceA tree node used as the base class for the different kinds of statements.interfaceA tree node for aswitchexpression.interfaceA tree node for aswitchstatement.interfaceA tree node for asynchronizedstatement.interfaceA tree node for athrowstatement.interfaceA tree node for atrystatement.interfaceA tree node for a type cast expression.interfaceA tree node for a type parameter.interfaceA tree node for postfix and unary expressions.interfaceA tree node for a union type expression in a multicatch variable declaration.interfaceA tree node for a 'uses' directive in a module declaration.interfaceA tree node for a variable declaration.interfaceA tree node for awhileloop statement.interfaceA tree node for a wildcard type argument.interfaceA tree node for ayieldstatement.Methods in com.sun.source.tree that return TreeModifier and TypeMethodDescriptionAnnotationTree.getAnnotationType()Returns the annotation type.default TreeCaseTree.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, ornullif 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.Methods in com.sun.source.tree that return types with arguments of type TreeModifier 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()Returns the subclasses permitted by this type declaration.TryTree.getResources()Returns any resource declarations provided in thetrystatement.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, or an empty list if there are no type declarations.Methods in com.sun.source.tree with parameters of type TreeModifier and TypeMethodDescriptionTreeVisitor.visitOther(Tree node, P p) Visits an unknown type of Tree node. -
Uses of Tree in com.sun.source.util
Methods in com.sun.source.util that return TreeModifier and TypeMethodDescriptionTreePath.getLeaf()Returns the leaf node for this path.abstract TreeReturns the Tree node for a given Element.abstract TreeTrees.getTree(Element e, AnnotationMirror a) Returns the Tree node for an AnnotationMirror on a given Element.abstract TreeTrees.getTree(Element e, AnnotationMirror a, AnnotationValue v) Returns the Tree node for an AnnotationValue for an AnnotationMirror on a given Element.Methods in com.sun.source.util that return types with arguments of type TreeMethods in com.sun.source.util with parameters of type TreeModifier and TypeMethodDescriptionprotected RSimpleTreeVisitor.defaultAction(Tree node, P p) The default action, used by all visit methods that are not overridden.longSourcePositions.getEndPosition(CompilationUnitTree file, Tree tree) Returns the ending position of tree within file.static TreePathTreePath.getPath(CompilationUnitTree unit, Tree target) Returns a tree path for a tree node within a compilation unit, ornullif the node is not found.static TreePathReturns a tree path for a tree node within a subtree identified by a TreePath object.abstract TreePathTrees.getPath(CompilationUnitTree unit, Tree node) Returns the path to tree node within the specified compilation unit.longSourcePositions.getStartPosition(CompilationUnitTree file, Tree tree) Returns the starting position of tree within file.abstract voidTrees.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.final RInvokes 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.Method parameters in com.sun.source.util with type arguments of type TreeModifier and TypeMethodDescriptionabstract TypeMirrorJavacTask.getTypeMirror(Iterable<? extends Tree> path) Returns a type mirror of the tree node determined by the specified path.Scans a sequence of nodes.final RInvokes the appropriate visit method on each of a sequence of nodes.Constructors in com.sun.source.util with parameters of type Tree