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(Expression dimension)
Sets the dimension
|
Constructor and Description |
---|
ArrayCreationLevel(Expression dimension) |
ArrayCreationLevel(Expression dimension,
NodeList<AnnotationExpr> annotations) |
ArrayCreationLevel(Range range,
Expression dimension,
NodeList<AnnotationExpr> annotations) |
Modifier and Type | Method and Description |
---|---|
NodeList<Expression> |
EnumConstantDeclaration.getArguments() |
Optional<Expression> |
AnnotationMemberDeclaration.getDefaultValue() |
Optional<Expression> |
VariableDeclarator.getInitializer() |
Modifier and Type | Method and Description |
---|---|
AnnotationMemberDeclaration |
AnnotationMemberDeclaration.setDefaultValue(Expression defaultValue)
Sets the default value
|
VariableDeclarator |
VariableDeclarator.setInitializer(Expression initializer)
Sets the initializer expression
|
Modifier and Type | Method and Description |
---|---|
EnumConstantDeclaration |
EnumConstantDeclaration.setArguments(NodeList<Expression> arguments) |
Constructor and Description |
---|
AnnotationMemberDeclaration(EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
Type type,
SimpleName name,
Expression defaultValue) |
AnnotationMemberDeclaration(EnumSet<Modifier> modifiers,
Type type,
String name,
Expression defaultValue) |
AnnotationMemberDeclaration(Range range,
EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
Type type,
SimpleName name,
Expression defaultValue) |
VariableDeclarator(Range range,
Type type,
SimpleName name,
Expression initializer) |
VariableDeclarator(Type type,
SimpleName name,
Expression initializer)
Defines the declaration of a variable.
|
VariableDeclarator(Type type,
String variableName,
Expression initializer) |
Constructor and Description |
---|
EnumConstantDeclaration(NodeList<AnnotationExpr> annotations,
SimpleName name,
NodeList<Expression> arguments,
NodeList<BodyDeclaration<?>> classBody) |
EnumConstantDeclaration(Range range,
NodeList<AnnotationExpr> annotations,
SimpleName name,
NodeList<Expression> arguments,
NodeList<BodyDeclaration<?>> classBody) |
Modifier and Type | Class and Description |
---|---|
class |
AnnotationExpr
A base class for the different types of annotations.
|
class |
ArrayAccessExpr
Array brackets [] being used to get a value from an array.
|
class |
ArrayCreationExpr
new int[5][4][][] or new int[][]{{1},{2,3}} . |
class |
ArrayInitializerExpr
The initialization of an array.
|
class |
AssignExpr
An assignment expression.
|
class |
BinaryExpr
An expression with an expression on the left, an expression on the right, and an operator in the middle.
|
class |
BooleanLiteralExpr
The boolean literals.
|
class |
CastExpr
A typecast.
|
class |
CharLiteralExpr
A literal character.
|
class |
ClassExpr
Defines an expression that accesses the class of a type.
|
class |
ConditionalExpr
An if-then or if-then-else construct.
|
class |
DoubleLiteralExpr
A float or a double constant.
|
class |
EnclosedExpr
An expression between ( ).
|
class |
FieldAccessExpr
Access of a field of an object.
|
class |
InstanceOfExpr
Usage of the instanceof operator.
|
class |
IntegerLiteralExpr
All ways to specify an int literal.
|
class |
LambdaExpr
A lambda expression.
|
class |
LiteralExpr
A base class for all literal expressions.
|
class |
LiteralStringValueExpr
Any literal value that is stored internally as a String.
|
class |
LongLiteralExpr
All ways to specify a long literal.
|
class |
MarkerAnnotationExpr
An annotation that uses only the annotation type name.
|
class |
MethodCallExpr
A method call on an object.
|
class |
MethodReferenceExpr
Method reference expressions introduced in Java 8 specifically designed to simplify lambda Expressions.
|
class |
NameExpr
Whenever a SimpleName is used in an expression, it is wrapped in NameExpr.
|
class |
NormalAnnotationExpr
An annotation that has zero or more key-value pairs.
@Mapping(a=5, d=10) |
class |
NullLiteralExpr
A literal "null".
|
class |
ObjectCreationExpr
A constructor call.
|
class |
SingleMemberAnnotationExpr
An annotation that has a single value.
|
class |
StringLiteralExpr
A literal string.
|
class |
SuperExpr
An occurrence of the "super" keyword.
|
class |
ThisExpr
An occurrence of the "this" keyword.
|
class |
TypeExpr
This class is just instantiated as scopes for MethodReferenceExpr nodes to encapsulate Types.
|
class |
UnaryExpr
An expression where an operator is applied to a single expression.
|
class |
VariableDeclarationExpr
A declaration of variables.
|
Modifier and Type | Method and Description |
---|---|
Expression |
Expression.clone() |
Expression |
ConditionalExpr.getCondition() |
Expression |
ConditionalExpr.getElseExpr() |
Expression |
InstanceOfExpr.getExpression() |
Expression |
UnaryExpr.getExpression() |
Expression |
CastExpr.getExpression() |
Expression |
ArrayAccessExpr.getIndex() |
Expression |
BinaryExpr.getLeft() |
Expression |
SingleMemberAnnotationExpr.getMemberValue() |
Expression |
ArrayAccessExpr.getName() |
Expression |
BinaryExpr.getRight() |
Expression |
MethodReferenceExpr.getScope() |
Expression |
AssignExpr.getTarget() |
Expression |
ConditionalExpr.getThenExpr() |
Expression |
AssignExpr.getValue() |
Expression |
MemberValuePair.getValue() |
Modifier and Type | Method and Description |
---|---|
NodeList<Expression> |
MethodCallExpr.getArguments() |
NodeList<Expression> |
ObjectCreationExpr.getArguments() |
Optional<Expression> |
ThisExpr.getClassExpr() |
Optional<Expression> |
SuperExpr.getClassExpr() |
Optional<Expression> |
EnclosedExpr.getInner() |
Optional<Expression> |
MethodCallExpr.getScope() |
Optional<Expression> |
ObjectCreationExpr.getScope() |
Optional<Expression> |
FieldAccessExpr.getScope() |
NodeList<Expression> |
ArrayInitializerExpr.getValues() |
Modifier and Type | Method and Description |
---|---|
MethodCallExpr |
MethodCallExpr.setArguments(NodeList<Expression> arguments) |
ObjectCreationExpr |
ObjectCreationExpr.setArguments(NodeList<Expression> arguments) |
ArrayInitializerExpr |
ArrayInitializerExpr.setValues(NodeList<Expression> values) |
Modifier and Type | Method and Description |
---|---|
default Expression |
NodeWithArguments.getArgument(int i) |
Expression |
NodeWithExpression.getExpression() |
Modifier and Type | Method and Description |
---|---|
NodeList<Expression> |
NodeWithArguments.getArguments() |
Optional<Expression> |
NodeWithOptionalScope.getScope() |
Modifier and Type | Method and Description |
---|---|
default ExpressionStmt |
NodeWithStatements.addAndGetStatement(Expression expr) |
default N |
NodeWithArguments.addArgument(Expression arg) |
default N |
NodeWithStatements.addStatement(Expression expr) |
default N |
NodeWithStatements.addStatement(int index,
Expression expr) |
default N |
NodeWithArguments.setArgument(int i,
Expression arg) |
N |
NodeWithExpression.setExpression(Expression expression) |
N |
NodeWithOptionalScope.setScope(Expression scope) |
Modifier and Type | Method and Description |
---|---|
N |
NodeWithArguments.setArguments(NodeList<Expression> arguments) |
Modifier and Type | Method and Description |
---|---|
Expression |
ExplicitConstructorInvocationStmt.getArgument(int i) |
Expression |
AssertStmt.getCheck() |
Expression |
DoStmt.getCondition() |
Expression |
IfStmt.getCondition() |
Expression |
WhileStmt.getCondition() |
Expression |
SynchronizedStmt.getExpression() |
Expression |
ThrowStmt.getExpression() |
Expression |
ExpressionStmt.getExpression() |
Expression |
ForeachStmt.getIterable() |
Expression |
SwitchStmt.getSelector() |
Modifier and Type | Method and Description |
---|---|
NodeList<Expression> |
ExplicitConstructorInvocationStmt.getArguments() |
Optional<Expression> |
ForStmt.getCompare() |
Optional<Expression> |
ExplicitConstructorInvocationStmt.getExpression() |
Optional<Expression> |
ReturnStmt.getExpression() |
NodeList<Expression> |
ForStmt.getInitialization() |
Optional<Expression> |
SwitchEntryStmt.getLabel() |
Optional<Expression> |
AssertStmt.getMessage() |
NodeList<Expression> |
ForStmt.getUpdate() |
Modifier and Type | Method and Description |
---|---|
ExplicitConstructorInvocationStmt |
ExplicitConstructorInvocationStmt.addArgument(Expression argument) |
ExplicitConstructorInvocationStmt |
ExplicitConstructorInvocationStmt.setArgument(int i,
Expression argument) |
AssertStmt |
AssertStmt.setCheck(Expression check) |
ForStmt |
ForStmt.setCompare(Expression compare)
Sets the compare
|
DoStmt |
DoStmt.setCondition(Expression condition) |
IfStmt |
IfStmt.setCondition(Expression condition) |
WhileStmt |
WhileStmt.setCondition(Expression condition) |
SynchronizedStmt |
SynchronizedStmt.setExpression(Expression expression) |
ExplicitConstructorInvocationStmt |
ExplicitConstructorInvocationStmt.setExpression(Expression expression)
Sets the expression
|
ThrowStmt |
ThrowStmt.setExpression(Expression expression) |
ReturnStmt |
ReturnStmt.setExpression(Expression expression)
Sets the expression
|
ExpressionStmt |
ExpressionStmt.setExpression(Expression expression) |
ForeachStmt |
ForeachStmt.setIterable(Expression iterable) |
SwitchEntryStmt |
SwitchEntryStmt.setLabel(Expression label)
Sets the label
|
AssertStmt |
AssertStmt.setMessage(Expression message)
Sets the message
|
SwitchStmt |
SwitchStmt.setSelector(Expression selector) |
Modifier and Type | Method and Description |
---|---|
ExplicitConstructorInvocationStmt |
ExplicitConstructorInvocationStmt.setArguments(NodeList<Expression> arguments) |
ForStmt |
ForStmt.setInitialization(NodeList<Expression> initialization) |
ForStmt |
ForStmt.setUpdate(NodeList<Expression> update) |
Constructor and Description |
---|
ExplicitConstructorInvocationStmt(boolean isThis,
Expression expression,
NodeList<Expression> arguments) |
ExplicitConstructorInvocationStmt(NodeList<Type> typeArguments,
boolean isThis,
Expression expression,
NodeList<Expression> arguments) |
ExplicitConstructorInvocationStmt(Range range,
NodeList<Type> typeArguments,
boolean isThis,
Expression expression,
NodeList<Expression> arguments) |
ForStmt(NodeList<Expression> initialization,
Expression compare,
NodeList<Expression> update,
Statement body) |
ForStmt(NodeList<Expression> initialization,
Expression compare,
NodeList<Expression> update,
Statement body) |
ForStmt(Range range,
NodeList<Expression> initialization,
Expression compare,
NodeList<Expression> update,
Statement body) |
ForStmt(Range range,
NodeList<Expression> initialization,
Expression compare,
NodeList<Expression> update,
Statement body) |
Copyright © 2007–2017. All rights reserved.