# Uses of Class
org.eclipse.jdt.core.dom.Expression

Packages that use Expression
Package
Description
org.eclipse.jdt.core.dom
The Java DOM/AST is the set of classes that model the source code of a Java program as a structured document.

## Uses of Expression in org.eclipse.jdt.core.dom

Subclasses of Expression in org.eclipse.jdt.core.dom
Modifier and Type
Class
Description
`class`
`Annotation`
Abstract base class of AST nodes that represent annotations.
`class`
`ArrayAccess`
Array access expression AST node type.
`class`
`ArrayCreation`
Array creation expression AST node type.
`class`
`ArrayInitializer`
Array initializer AST node type.
`class`
`Assignment`
Assignment expression AST node type.
`class`
`BooleanLiteral`
Boolean literal node.
`class`
`CaseDefaultExpression`
Case Default Literal Pattern node.
`class`
`CastExpression`
Cast expression AST node type.
`class`
`CharacterLiteral`
Character literal nodes.
`class`
`ClassInstanceCreation`
Class instance creation expression AST node type.
`class`
`ConditionalExpression`
Conditional expression AST node type.
`class`
`CreationReference`
Creation reference expression AST node type (added in JLS8 API).
`class`
`EitherOrMultiPattern`
EitherOrMultiPattern AST node type.
`class`
`ExpressionMethodReference`
Expression method reference AST node type (added in JLS8 API).
`class`
`FieldAccess`
Field access expression AST node type.
`class`
`GuardedPattern`
GuardedPattern pattern AST node type.
`class`
`InfixExpression`
Infix expression AST node type.
`class`
`InstanceofExpression`
Instanceof expression AST node type.
`class`
`LambdaExpression`
Lambda expression AST node type (added in JLS8 API).
`final class`
`MarkerAnnotation`
Marker annotation node (added in JLS3 API).
`class`
`MethodInvocation`
Method invocation expression AST node type.
`class`
`MethodReference`
Abstract base class of all AST node types that represent a method reference expression (added in JLS8 API).
`class`
`ModuleQualifiedName`
AST node for a module qualified name.
`class`
`Name`
Abstract base class for all AST nodes that represent names.
`final class`
`NormalAnnotation`
Normal annotation node (added in JLS3 API).
`class`
`NullLiteral`
Null literal node.
`class`
`NullPattern`
Null Pattern node.
`class`
`NumberLiteral`
Number literal nodes.
`class`
`ParenthesizedExpression`
Parenthesized expression AST node type.
`class`
`Pattern`
Abstract base class of AST nodes that represent patterns.
`class`
`PatternInstanceofExpression`
PatternInstanceof expression AST node type.
`class`
`PostfixExpression`
Postfix expression AST node type.
`class`
`PrefixExpression`
Prefix expression AST node type.
`class`
`QualifiedName`
AST node for a qualified name.
`class`
`RecordPattern`
TypePattern pattern AST node type.
`class`
`SimpleName`
AST node for a simple name.
`final class`
`SingleMemberAnnotation`
Single member annotation node (added in JLS3 API).
`class`
`StringLiteral`
String literal nodes.
`class`
`SuperFieldAccess`
Simple or qualified "super" field access expression AST node type.
`class`
`SuperMethodInvocation`
Simple or qualified "super" method invocation expression AST node type.
`class`
`SuperMethodReference`
Super method reference AST node type (added in JLS8 API).
`class`
`SwitchExpression`
Switch expression AST node type (added in JEP 325).
`class`
`TextBlock`
TextBlock AST node type.
`class`
`ThisExpression`
Simple or qualified "this" AST node type.
`class`
`TypeLiteral`
Type literal AST node type.
`class`
`TypeMethodReference`
Type method reference expression AST node type (added in JLS8 API).
`class`
`TypePattern`
TypePattern pattern AST node type.
`class`
`VariableDeclarationExpression`
Local variable declaration expression AST node type.
Methods in org.eclipse.jdt.core.dom that return Expression
Modifier and Type
Method
Description
`Expression`
ArrayAccess.`getArray()`
Returns the array expression of this array access expression.
`Expression`
AnnotationTypeMemberDeclaration.`getDefault()`
Returns the default value of this annotation type member, or `null` if there is none.
`Expression`
ConditionalExpression.`getElseExpression()`
Returns the "else" part of this conditional expression.
`Expression`
AssertStatement.`getExpression()`
Returns the first expression of this assert statement.
`Expression`
BreakStatement.`getExpression()`
Deprecated.
`Expression`
CastExpression.`getExpression()`
Returns the expression of this cast expression.
`Expression`
ClassInstanceCreation.`getExpression()`
Returns the expression of this class instance creation expression, or `null` if there is none.
`Expression`
ConditionalExpression.`getExpression()`
Returns the condition of this conditional expression.
`Expression`
DoStatement.`getExpression()`
Returns the expression of this do statement.
`Expression`
EnhancedForStatement.`getExpression()`
Returns the expression of this enhanced for statement.
`Expression`
ExpressionMethodReference.`getExpression()`
Returns the expression of this expression method reference expression
`Expression`
ExpressionStatement.`getExpression()`
Returns the expression of this expression statement.
`Expression`
FieldAccess.`getExpression()`
Returns the expression of this field access expression.
`Expression`
ForStatement.`getExpression()`
Returns the condition expression of this for statement, or `null` if there is none.
`Expression`
GuardedPattern.`getExpression()`
Returns the conditional expression of this pattern, or `null` if there is none (the "default:" case).
`Expression`
IfStatement.`getExpression()`
Returns the expression of this if statement.
`Expression`
MethodInvocation.`getExpression()`
Returns the expression of this method invocation expression, or `null` if there is none.
`Expression`
ParenthesizedExpression.`getExpression()`
Returns the expression of this parenthesized expression.
`Expression`
ReturnStatement.`getExpression()`
Returns the expression of this return statement, or `null` if there is none.
`Expression`
SuperConstructorInvocation.`getExpression()`
Returns the expression of this super constructor invocation statement, or `null` if there is none.
`Expression`
SwitchCase.`getExpression()`
Deprecated.
use expressions() (see JLS 12)
`Expression`
SwitchExpression.`getExpression()`
Returns the expression of this switch statement.
`Expression`
SwitchStatement.`getExpression()`
Returns the expression of this switch statement.
`Expression`
SynchronizedStatement.`getExpression()`
Returns the expression of this synchronized statement.
`Expression`
ThrowStatement.`getExpression()`
Returns the expression of this throw statement.
`Expression`
WhileStatement.`getExpression()`
Returns the expression of this while statement.
`Expression`
YieldStatement.`getExpression()`
Returns the expression of this Yield statement, or `null` if there is none.
`Expression`
ArrayAccess.`getIndex()`
Returns the index expression of this array access expression.
`Expression`
VariableDeclaration.`getInitializer()`
Returns the initializer of this variable declaration, or `null` if there is none.
`Expression`
Assignment.`getLeftHandSide()`
Returns the left hand side of this assignment expression.
`Expression`
InfixExpression.`getLeftOperand()`
Returns the left operand of this infix expression.
`Expression`
InstanceofExpression.`getLeftOperand()`
Returns the left operand of this instanceof expression.
`Expression`
PatternInstanceofExpression.`getLeftOperand()`
Returns the left operand of this Patterninstanceof expression.
`Expression`
AssertStatement.`getMessage()`
Returns the message expression of this assert statement, or `null` if there is none.
`Expression`
PostfixExpression.`getOperand()`
Returns the operand of this postfix expression.
`Expression`
PrefixExpression.`getOperand()`
Returns the operand of this prefix expression.
`Expression`
Assignment.`getRightHandSide()`
Returns the right hand side of this assignment expression.
`Expression`
InfixExpression.`getRightOperand()`
Returns the right operand of this infix expression.
`Expression`
ConditionalExpression.`getThenExpression()`
Returns the "then" part of this conditional expression.
`Expression`
MemberValuePair.`getValue()`
Returns the value expression.
`Expression`
SingleMemberAnnotation.`getValue()`
Returns the value of this annotation.
Methods in org.eclipse.jdt.core.dom with parameters of type Expression
Modifier and Type
Method
Description
`ExpressionStatement`
AST.`newExpressionStatement(Expression expression)`
Creates a new unparented expression statement node owned by this AST, for the given expression.
`void`
ArrayAccess.`setArray(Expression expression)`
Sets the array expression of this array access expression.
`void`
AnnotationTypeMemberDeclaration.`setDefault(Expression defaultValue)`
Sets or clears the default value of this annotation type member.
`void`
ConditionalExpression.`setElseExpression(Expression expression)`
Sets the "else" part of this conditional expression.
`void`
AssertStatement.`setExpression(Expression expression)`
Sets the first expression of this assert statement.
`void`
BreakStatement.`setExpression(Expression expression)`
Deprecated.
`void`
CastExpression.`setExpression(Expression expression)`
Sets the expression of this cast expression.
`void`
ClassInstanceCreation.`setExpression(Expression expression)`
Sets or clears the expression of this class instance creation expression.
`void`
ConditionalExpression.`setExpression(Expression expression)`
Sets the condition of this conditional expression.
`void`
DoStatement.`setExpression(Expression expression)`
Sets the expression of this do statement.
`void`
EnhancedForStatement.`setExpression(Expression expression)`
Sets the expression of this enhanced for statement.
`void`
ExpressionMethodReference.`setExpression(Expression expression)`
Sets the expression of this expression method reference.
`void`
ExpressionStatement.`setExpression(Expression expression)`
Sets the expression of this expression statement.
`void`
FieldAccess.`setExpression(Expression expression)`
Sets the expression of this field access expression.
`void`
ForStatement.`setExpression(Expression expression)`
Sets or clears the condition expression of this return statement.
`void`
GuardedPattern.`setExpression(Expression expression)`
Sets the conditional expression of this pattern, or clears it (turns it into the "default:" case).
`void`
IfStatement.`setExpression(Expression expression)`
Sets the condition of this if statement.
`void`
MethodInvocation.`setExpression(Expression expression)`
Sets or clears the expression of this method invocation expression.
`void`
ParenthesizedExpression.`setExpression(Expression expression)`
Sets the expression of this parenthesized expression.
`void`
ReturnStatement.`setExpression(Expression expression)`
Sets or clears the expression of this return statement.
`void`
SuperConstructorInvocation.`setExpression(Expression expression)`
Sets or clears the expression of this super constructor invocation statement.
`void`
SwitchCase.`setExpression(Expression expression)`
Deprecated.
see JLS 12
`void`
SwitchExpression.`setExpression(Expression expression)`
Sets the expression of this switch statement.
`void`
SwitchStatement.`setExpression(Expression expression)`
Sets the expression of this switch statement.
`void`
SynchronizedStatement.`setExpression(Expression expression)`
Sets the expression of this synchronized statement.
`void`
ThrowStatement.`setExpression(Expression expression)`
Sets the expression of this throw statement.
`void`
WhileStatement.`setExpression(Expression expression)`
Sets the expression of this while statement.
`void`
YieldStatement.`setExpression(Expression expression)`
Sets or clears the expression of this Yield statement.
`void`
ArrayAccess.`setIndex(Expression expression)`
Sets the index expression of this array access expression.
`void`
VariableDeclaration.`setInitializer(Expression initializer)`
Sets or clears the initializer of this variable declaration.
`void`
Assignment.`setLeftHandSide(Expression expression)`
Sets the left hand side of this assignment expression.
`void`
InfixExpression.`setLeftOperand(Expression expression)`
Sets the left operand of this infix expression.
`void`
InstanceofExpression.`setLeftOperand(Expression expression)`
Sets the left operand of this instanceof expression.
`void`
PatternInstanceofExpression.`setLeftOperand(Expression expression)`
Sets the left operand of this instanceof expression.
`void`
AssertStatement.`setMessage(Expression expression)`
Sets or clears the message expression of this assert statement.
`void`
PostfixExpression.`setOperand(Expression expression)`
Sets the operand of this postfix expression.
`void`
PrefixExpression.`setOperand(Expression expression)`
Sets the operand of this prefix expression.
`void`
Assignment.`setRightHandSide(Expression expression)`
Sets the right hand side of this assignment expression.
`void`
InfixExpression.`setRightOperand(Expression expression)`
Sets the right operand of this infix expression.
`void`
ConditionalExpression.`setThenExpression(Expression expression)`
Sets the "then" part of this conditional expression.
`void`
MemberValuePair.`setValue(Expression value)`
Sets the value of this pair.
`void`
SingleMemberAnnotation.`setValue(Expression value)`
Sets the value of this annotation.