Uses of Interface
com.sun.source.tree.Tree
-
Packages that use Tree Package Description com.sun.source.tree Provides interfaces to represent source code as abstract syntax trees (AST).com.sun.source.util Provides utilities for operations on abstract syntax trees (AST). -
-
Uses of Tree in com.sun.source.tree
Subinterfaces of Tree in com.sun.source.tree Modifier and Type Interface Description interfaceAnnotatedTypeTreeA tree node for an annotated type.interfaceAnnotationTreeA tree node for an annotation.interfaceArrayAccessTreeA tree node for an array access expression.interfaceArrayTypeTreeA tree node for an array type.interfaceAssertTreeA tree node for anassertstatement.interfaceAssignmentTreeA tree node for an assignment expression.interfaceBinaryTreeA tree node for a binary expression.interfaceBlockTreeA tree node for a statement block.interfaceBreakTreeA tree node for abreakstatement.interfaceCaseTreeA tree node for acasein aswitchstatement.interfaceCatchTreeA tree node for acatchblock in atrystatement.interfaceClassTreeA tree node for a class, interface, enum, or annotation type declaration.interfaceCompilationUnitTreeRepresents the abstract syntax tree for compilation units (source files) and package declarations (package-info.java).interfaceCompoundAssignmentTreeA tree node for compound assignment operator.interfaceConditionalExpressionTreeA tree node for the conditional operator ?interfaceContinueTreeA tree node for acontinuestatement.interfaceDirectiveTreeA super-type for all the directives in a ModuleTree.interfaceDoWhileLoopTreeA tree node for adostatement.interfaceEmptyStatementTreeA tree node for an empty (skip) statement.interfaceEnhancedForLoopTreeA tree node for an "enhanced"forloop statement.interfaceErroneousTreeA tree node to stand in for a malformed expression.interfaceExportsTreeA tree node for an 'exports' directive in a module declaration.interfaceExpressionStatementTreeA tree node for an expression statement.interfaceExpressionTreeA tree node used as the base class for the different types of expressions.interfaceForLoopTreeA tree node for a basicforloop statement.interfaceIdentifierTreeA tree node for an identifier expression.interfaceIfTreeA tree node for anifstatement.interfaceImportTreeA tree node for an import declaration.interfaceInstanceOfTreeA tree node for aninstanceofexpression.interfaceIntersectionTypeTreeA tree node for an intersection type in a cast expression.interfaceLabeledStatementTreeA tree node for a labeled statement.interfaceLambdaExpressionTreeA tree node for a lambda expression.interfaceLiteralTreeA tree node for a literal expression.interfaceMemberReferenceTreeA tree node for a member reference expression.interfaceMemberSelectTreeA tree node for a member access expression.interfaceMethodInvocationTreeA tree node for a method invocation expression.interfaceMethodTreeA tree node for a method or annotation type element declaration.interfaceModifiersTreeA tree node for the modifiers, including annotations, for a declaration.interfaceModuleTreeA tree node for a module declaration.interfaceNewArrayTreeA tree node for an expression to create a new instance of an array.interfaceNewClassTreeA tree node to declare a new instance of a class.interfaceOpensTreeA tree node for an 'opens' directive in a module declaration.interfacePackageTreeRepresents the package declaration.interfaceParameterizedTypeTreeA tree node for a type expression involving type parameters.interfaceParenthesizedTreeA tree node for a parenthesized expression.interfacePrimitiveTypeTreeA tree node for a primitive type.interfaceProvidesTreeA tree node for a 'provides' directive in a module declaration.interfaceRequiresTreeA tree node for a 'requires' directive in a module declaration.interfaceReturnTreeA tree node for areturnstatement.interfaceStatementTreeA tree node used as the base class for the different kinds of statements.interfaceSwitchTreeA tree node for aswitchstatement.interfaceSynchronizedTreeA tree node for asynchronizedstatement.interfaceThrowTreeA tree node for athrowstatement.interfaceTryTreeA tree node for atrystatement.interfaceTypeCastTreeA tree node for a type cast expression.interfaceTypeParameterTreeA tree node for a type parameter.interfaceUnaryTreeA tree node for postfix and unary expressions.interfaceUnionTypeTreeA tree node for a union type expression in a multicatch variable declaration.interfaceUsesTreeA tree node for a 'uses' directive in a module declaration.interfaceVariableTreeA tree node for a variable declaration.interfaceWhileLoopTreeA tree node for awhileloop statement.interfaceWildcardTreeA tree node for a wildcard type argument.Methods in com.sun.source.tree that return Tree Modifier and Type Method Description TreeAnnotationTree. getAnnotationType()Returns the annotation type.TreeLambdaExpressionTree. getBody()Returns the body of the lambda expression.TreeWildcardTree. getBound()Returns the bound of the wildcard.TreeMethodTree. getDefaultValue()Returns the default value, if this is an element within an annotation type declaration.TreeClassTree. getExtendsClause()Returns the supertype of this type declaration, ornullif none is provided.TreeImportTree. getQualifiedIdentifier()Returns the qualified identifier for the declaration(s) being imported.TreeMethodTree. getReturnType()Returns the return type of the method being declared.TreeArrayTypeTree. getType()Returns the element type of this array type.TreeInstanceOfTree. getType()Returns the type for which to check.TreeNewArrayTree. getType()Returns the base type of the expression.TreeParameterizedTypeTree. getType()Returns the base type.TreeTypeCastTree. getType()Returns the target type of the cast.TreeVariableTree. getType()Returns the type of the variable being declared.Methods in com.sun.source.tree that return types with arguments of type Tree Modifier and Type Method Description Class<? extends Tree>Tree.Kind. asInterface()Returns the associated interface type that uses this kind.List<? extends Tree>IntersectionTypeTree. getBounds()Returns the bounds of the type.List<? extends Tree>TypeParameterTree. getBounds()Returns the bounds of the type parameter.List<? extends Tree>ErroneousTree. getErrorTrees()Returns any trees that were saved in this node.List<? extends Tree>ClassTree. getImplementsClause()Returns the interfaces implemented by this type declaration.List<? extends Tree>ClassTree. getMembers()Returns the members declared in this type declaration.List<? extends Tree>TryTree. getResources()Returns any resource declarations provided in thetrystatement.List<? extends Tree>UnionTypeTree. getTypeAlternatives()Returns the alternative type expressions.List<? extends Tree>MethodInvocationTree. getTypeArguments()Returns the type arguments for this method invocation.List<? extends Tree>NewClassTree. getTypeArguments()Returns the type arguments for the object being created.List<? extends Tree>ParameterizedTypeTree. getTypeArguments()Returns the type arguments.List<? extends Tree>CompilationUnitTree. getTypeDecls()Returns the type declarations appearing in this compilation unit.Methods in com.sun.source.tree with parameters of type Tree Modifier and Type Method Description RTreeVisitor. 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 Tree Modifier and Type Method Description TreeTreePath. getLeaf()Returns the leaf node for this path.abstract TreeTrees. getTree(Element element)Returns 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 Tree Modifier and Type Method Description Iterator<Tree>TreePath. iterator()Iterates from leaves to root.Methods in com.sun.source.util with parameters of type Tree Modifier and Type Method Description protected 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 TreePathTreePath. getPath(TreePath path, Tree target)Returns 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 unitRTreePathScanner. scan(Tree tree, P p)Scans a single node.RTreeScanner. scan(Tree tree, P p)Scans a single node.RSimpleTreeVisitor. visit(Tree node, P p)Invokes the appropriate visit method specific to the type of the node.RSimpleTreeVisitor. visitOther(Tree node, P p)Visits an unknown type of Tree node.RTreeScanner. visitOther(Tree node, P p)Visits an unknown type of Tree node.Method parameters in com.sun.source.util with type arguments of type Tree Modifier and Type Method Description abstract TypeMirrorJavacTask. getTypeMirror(Iterable<? extends Tree> path)Returns a type mirror of the tree node determined by the specified path.RTreeScanner. scan(Iterable<? extends Tree> nodes, P p)Scans a sequence of nodes.RSimpleTreeVisitor. visit(Iterable<? extends Tree> nodes, P p)Invokes the appropriate visit method on each of a sequence of nodes.Constructors in com.sun.source.util with parameters of type Tree Constructor Description TreePath(TreePath path, Tree tree)Creates a TreePath for a child node.
-