Uses of Interface
com.sun.source.tree.ExpressionTree
Packages that use ExpressionTree
Package
Description
Provides interfaces to represent source code as abstract syntax
trees (AST).
-
Uses of ExpressionTree in com.sun.source.tree
Subinterfaces of ExpressionTree 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 assignment expression.interfaceA tree node for a binary expression.interfaceA tree node for compound assignment operator.interfaceA tree node for the conditional operator? :.interfaceA tree node to stand in for a malformed expression.interfaceA tree node for an identifier expression.interfaceA tree node for aninstanceofexpression.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 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 a parenthesized expression.interfacePreview.A tree node for a string template expression.interfaceA tree node for aswitchexpression.interfaceA tree node for a type cast expression.interfaceA tree node for postfix and unary expressions.Methods in com.sun.source.tree that return ExpressionTreeModifier and TypeMethodDescriptionAssertTree.getCondition()Returns the condition being asserted.ConditionalExpressionTree.getCondition()Returns the condition.DoWhileLoopTree.getCondition()Returns the condition of the loop.ForLoopTree.getCondition()Returns the condition of theforstatement.IfTree.getCondition()Returns the condition of the if-statement.WhileLoopTree.getCondition()Returns the condition of the loop.ConstantCaseLabelTree.getConstantExpression()The constant expression for the case.DeconstructionPatternTree.getDeconstructor()Returns the deconstructed type.AssertTree.getDetail()Returns the detail expression.NewClassTree.getEnclosingExpression()Returns the enclosing expression, ornullif none.ArrayAccessTree.getExpression()Returns the expression for the array being accessed.AssignmentTree.getExpression()Returns the expression being assigned to the variable.CaseTree.getExpression()Deprecated.CompoundAssignmentTree.getExpression()Returns the expression on the right hand side of the compound assignment.EnhancedForLoopTree.getExpression()Returns the expression yielding the values for the control variable.ExpressionStatementTree.getExpression()Returns the expression constituting this statement.InstanceOfTree.getExpression()Returns the expression to be tested.MemberSelectTree.getExpression()Returns the expression for which a member is to be selected.ParenthesizedTree.getExpression()Returns the expression within the parentheses.ReturnTree.getExpression()Returns the expression to be returned.SwitchExpressionTree.getExpression()Returns the expression for theswitchexpression.SwitchTree.getExpression()Returns the expression for theswitchstatement.SynchronizedTree.getExpression()Returns the expression on which to synchronize.ThrowTree.getExpression()Returns the expression to be thrown.TypeCastTree.getExpression()Returns the expression being cast.UnaryTree.getExpression()Returns the expression that is the operand of the unary operator.ConditionalExpressionTree.getFalseExpression()Returns the expression to be evaluated if the condition is false.CaseTree.getGuard()The guard for the case.NewClassTree.getIdentifier()Returns the name of the class being instantiated.ArrayAccessTree.getIndex()Returns the expression for the index.VariableTree.getInitializer()Returns the initializer for the variable, ornullif none.BinaryTree.getLeftOperand()Returns the left (first) operand of the expression.MethodInvocationTree.getMethodSelect()Returns the expression identifying the method to be invoked.RequiresTree.getModuleName()Returns the name of the module that is required.ModuleTree.getName()Returns the name of the module.VariableTree.getNameExpression()Returns the qualified identifier for the name being "declared".CompilationUnitTree.getPackageName()Returns the name contained in any package declaration at the head of this compilation unit, ornullif there is no package declaration.ExportsTree.getPackageName()Returns the name of the package to be exported.OpensTree.getPackageName()Returns the name of the package to be opened.PackageTree.getPackageName()Returns the name of the package being declared.StringTemplateTree.getProcessor()Returns templated string processor (may be qualified) or null.MemberReferenceTree.getQualifierExpression()Returns the qualifier expression for the reference.BinaryTree.getRightOperand()Returns the right (second) operand of the expression.ProvidesTree.getServiceName()Returns the name of the service type being provided.UsesTree.getServiceName()Returns the name of the service type.ConditionalExpressionTree.getTrueExpression()Returns the expression to be evaluated if the condition is true.AnnotatedTypeTree.getUnderlyingType()Returns the underlying type with which the annotations are associated.YieldTree.getValue()Returns the expression for thisyieldstatement.AssignmentTree.getVariable()Returns the variable being assigned to.CompoundAssignmentTree.getVariable()Returns the variable on the left hand side of the compound assignment.Methods in com.sun.source.tree that return types with arguments of type ExpressionTreeModifier and TypeMethodDescriptionList<? extends ExpressionTree> AnnotationTree.getArguments()Returns the arguments, if any, for the annotation.List<? extends ExpressionTree> MethodInvocationTree.getArguments()Returns the arguments for the method invocation.List<? extends ExpressionTree> NewClassTree.getArguments()Returns the arguments for the constructor to be invoked.List<? extends ExpressionTree> NewArrayTree.getDimensions()Returns the dimension expressions for the type.List<? extends ExpressionTree> CaseTree.getExpressions()Returns the labels for this case.List<? extends ExpressionTree> StringTemplateTree.getExpressions()Returns list of expressions.List<? extends ExpressionTree> ProvidesTree.getImplementationNames()Returns the names of the implementation types being provided.List<? extends ExpressionTree> NewArrayTree.getInitializers()Returns the initializer expressions.List<? extends ExpressionTree> ExportsTree.getModuleNames()Returns the names of the modules to which the package is exported, or null, if the package is exported to all modules.List<? extends ExpressionTree> OpensTree.getModuleNames()Returns the names of the modules to which the package is opened, or null, if the package is opened to all modules.List<? extends ExpressionTree> MethodTree.getThrows()Returns the exceptions listed as being thrown by this method.List<? extends ExpressionTree> MemberReferenceTree.getTypeArguments()Returns the type arguments for the reference.
CaseTree.getExpressions().