Modifier and Type | Field and Description |
---|---|
static ParseStart<Expression> |
ParseStart.EXPRESSION |
Modifier and Type | Method and Description |
---|---|
static <T extends Expression> |
JavaParser.parseExpression(String expression)
Parses the Java expression contained in a
String and returns a
Expression that represents it. |
Modifier and Type | Method and Description |
---|---|
Optional<Expression> |
ArrayCreationLevel.getDimension() |
Modifier and Type | Method and Description |
---|---|
ArrayCreationLevel |
ArrayCreationLevel.setDimension(Optional<Expression> dimension) |
Constructor and Description |
---|
ArrayCreationLevel(Range range,
Optional<Expression> dimension,
NodeList<AnnotationExpr> annotations) |
Modifier and Type | Method and Description |
---|---|
NodeList<Expression> |
EnumConstantDeclaration.getArgs() |
Optional<Expression> |
AnnotationMemberDeclaration.getDefaultValue() |
Optional<Expression> |
VariableDeclarator.getInit() |
Modifier and Type | Method and Description |
---|---|
EnumConstantDeclaration |
EnumConstantDeclaration.setArgs(NodeList<Expression> args) |
AnnotationMemberDeclaration |
AnnotationMemberDeclaration.setDefaultValue(Optional<Expression> defaultValue) |
VariableDeclarator |
VariableDeclarator.setInit(Optional<Expression> init) |
Modifier and Type | Class and Description |
---|---|
class |
AnnotationExpr |
class |
ArrayAccessExpr |
class |
ArrayCreationExpr
new int[5][4][][] or new int[][]{{1},{2,3}} |
class |
ArrayInitializerExpr |
class |
AssignExpr |
class |
BinaryExpr |
class |
BooleanLiteralExpr |
class |
CastExpr |
class |
CharLiteralExpr |
class |
ClassExpr
Defines an expression that accesses the class of a type.
|
class |
ConditionalExpr |
class |
DoubleLiteralExpr |
class |
EnclosedExpr |
class |
FieldAccessExpr |
class |
InstanceOfExpr |
class |
IntegerLiteralExpr |
class |
IntegerLiteralMinValueExpr |
class |
LambdaExpr
Lambda expression.
|
class |
LiteralExpr |
class |
LongLiteralExpr |
class |
LongLiteralMinValueExpr |
class |
MarkerAnnotationExpr |
class |
MethodCallExpr |
class |
MethodReferenceExpr
Method reference expressions introduced in Java 8 specifically designed to simplify lambda Expressions.
|
class |
NameExpr |
class |
NormalAnnotationExpr |
class |
NullLiteralExpr |
class |
ObjectCreationExpr
Defines constructor call expression.
|
class |
QualifiedNameExpr |
class |
SingleMemberAnnotationExpr |
class |
StringLiteralExpr
Java® Language Specification 3.10.5 String Literals
|
class |
SuperExpr |
class |
ThisExpr |
class |
TypeExpr
This class is just instantiated as scopes for MethodReferenceExpr nodes to encapsulate Types.
|
class |
UnaryExpr |
class |
VariableDeclarationExpr |
Modifier and Type | Method and Description |
---|---|
Expression |
ConditionalExpr.getCondition() |
Expression |
ConditionalExpr.getElseExpr() |
Expression |
InstanceOfExpr.getExpr() |
Expression |
UnaryExpr.getExpr() |
Expression |
CastExpr.getExpr() |
Expression |
ArrayAccessExpr.getIndex() |
Expression |
BinaryExpr.getLeft() |
Expression |
SingleMemberAnnotationExpr.getMemberValue() |
Expression |
ArrayAccessExpr.getName() |
Expression |
BinaryExpr.getRight() |
Expression |
MethodReferenceExpr.getScope() |
Expression |
FieldAccessExpr.getScope() |
Expression |
AssignExpr.getTarget() |
Expression |
ConditionalExpr.getThenExpr() |
Expression |
AssignExpr.getValue() |
Expression |
MemberValuePair.getValue() |
Modifier and Type | Method and Description |
---|---|
NodeList<Expression> |
MethodCallExpr.getArgs() |
NodeList<Expression> |
ObjectCreationExpr.getArgs() |
Optional<Expression> |
ThisExpr.getClassExpr() |
Optional<Expression> |
SuperExpr.getClassExpr() |
Optional<Expression> |
EnclosedExpr.getInner() |
Optional<Expression> |
MethodCallExpr.getScope() |
Optional<Expression> |
ObjectCreationExpr.getScope() |
NodeList<Expression> |
ArrayInitializerExpr.getValues() |
Modifier and Type | Method and Description |
---|---|
MethodCallExpr |
MethodCallExpr.setArgs(NodeList<Expression> args) |
ObjectCreationExpr |
ObjectCreationExpr.setArgs(NodeList<Expression> args) |
ThisExpr |
ThisExpr.setClassExpr(Optional<Expression> classExpr) |
SuperExpr |
SuperExpr.setClassExpr(Optional<Expression> classExpr) |
EnclosedExpr |
EnclosedExpr.setInner(Optional<Expression> inner) |
MethodCallExpr |
MethodCallExpr.setScope(Optional<Expression> scope) |
ObjectCreationExpr |
ObjectCreationExpr.setScope(Optional<Expression> scope) |
ArrayInitializerExpr |
ArrayInitializerExpr.setValues(NodeList<Expression> values) |
Modifier and Type | Method and Description |
---|---|
NodeList<Expression> |
NodeWithArguments.getArgs() |
Modifier and Type | Method and Description |
---|---|
default ExpressionStmt |
NodeWithStatements.addAndGetStatement(Expression expr) |
default T |
NodeWithArguments.addArgument(Expression arg) |
default T |
NodeWithStatements.addStatement(Expression expr) |
default T |
NodeWithStatements.addStatement(int index,
Expression expr) |
Modifier and Type | Method and Description |
---|---|
T |
NodeWithArguments.setArgs(NodeList<Expression> args) |
Modifier and Type | Method and Description |
---|---|
Expression |
AssertStmt.getCheck() |
Expression |
DoStmt.getCondition() |
Expression |
IfStmt.getCondition() |
Expression |
WhileStmt.getCondition() |
Expression |
SynchronizedStmt.getExpr() |
Expression |
ThrowStmt.getExpr() |
Expression |
ExpressionStmt.getExpression() |
Expression |
ForeachStmt.getIterable() |
Expression |
SwitchStmt.getSelector() |
Modifier and Type | Method and Description |
---|---|
NodeList<Expression> |
ExplicitConstructorInvocationStmt.getArgs() |
Optional<Expression> |
ForStmt.getCompare() |
Optional<Expression> |
ExplicitConstructorInvocationStmt.getExpr() |
Optional<Expression> |
ReturnStmt.getExpr() |
NodeList<Expression> |
ForStmt.getInit() |
Optional<Expression> |
SwitchEntryStmt.getLabel() |
Optional<Expression> |
AssertStmt.getMessage() |
NodeList<Expression> |
ForStmt.getUpdate() |
Modifier and Type | Method and Description |
---|---|
AssertStmt |
AssertStmt.setCheck(Expression check) |
DoStmt |
DoStmt.setCondition(Expression condition) |
IfStmt |
IfStmt.setCondition(Expression condition) |
WhileStmt |
WhileStmt.setCondition(Expression condition) |
SynchronizedStmt |
SynchronizedStmt.setExpr(Expression expr) |
ThrowStmt |
ThrowStmt.setExpr(Expression expr) |
ExpressionStmt |
ExpressionStmt.setExpression(Expression expr) |
ForeachStmt |
ForeachStmt.setIterable(Expression iterable) |
SwitchStmt |
SwitchStmt.setSelector(Expression selector) |
Modifier and Type | Method and Description |
---|---|
ExplicitConstructorInvocationStmt |
ExplicitConstructorInvocationStmt.setArgs(NodeList<Expression> args) |
ForStmt |
ForStmt.setCompare(Optional<Expression> compare) |
ExplicitConstructorInvocationStmt |
ExplicitConstructorInvocationStmt.setExpr(Optional<Expression> expr) |
ReturnStmt |
ReturnStmt.setExpr(Optional<Expression> expr) |
ForStmt |
ForStmt.setInit(NodeList<Expression> init) |
SwitchEntryStmt |
SwitchEntryStmt.setLabel(Optional<Expression> label) |
AssertStmt |
AssertStmt.setMessage(Optional<Expression> msg) |
ForStmt |
ForStmt.setUpdate(NodeList<Expression> update) |
Copyright © 2007–2016. All rights reserved.