Uses of Interface
com.sun.source.tree.ExpressionTree
Package
Description
Provides interfaces to represent source code as abstract syntax
trees (AST).
-
Uses of ExpressionTree 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 assignment expression.interface
A tree node for a binary expression.interface
A tree node for compound assignment operator.interface
A tree node for the conditional operator? :
.interface
A tree node to stand in for a malformed expression.interface
A tree node for an identifier expression.interface
A tree node for aninstanceof
expression.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 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 a parenthesized expression.interface
A tree node for aswitch
expression.interface
A tree node for a type cast expression.interface
A tree node for postfix and unary expressions.Modifier 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 thefor
statement.IfTree.getCondition()
Returns the condition of the if-statement.WhileLoopTree.getCondition()
Returns the condition of the loop.AssertTree.getDetail()
Returns the detail expression.NewClassTree.getEnclosingExpression()
Returns the enclosing expression, ornull
if 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 theswitch
expression.SwitchTree.getExpression()
Returns the expression for theswitch
statement.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.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, ornull
if 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, ornull
if 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.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 thisyield
statement.AssignmentTree.getVariable()
Returns the variable being assigned to.CompoundAssignmentTree.getVariable()
Returns the variable on the left hand side of the compound assignment.Modifier 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>
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()
.