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 |
---|---|
Expression |
ArrayCreationLevel.getDimension() |
Modifier and Type | Method and Description |
---|---|
void |
ArrayCreationLevel.setDimension(Expression 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 |
---|---|
Expression |
AnnotationMemberDeclaration.getDefaultValue() |
Expression |
VariableDeclarator.getInit() |
Modifier and Type | Method and Description |
---|---|
NodeList<Expression> |
EnumConstantDeclaration.getArgs() |
Modifier and Type | Method and Description |
---|---|
AnnotationMemberDeclaration |
AnnotationMemberDeclaration.setDefaultValue(Expression defaultValue) |
VariableDeclarator |
VariableDeclarator.setInit(Expression init) |
Modifier and Type | Method and Description |
---|---|
EnumConstantDeclaration |
EnumConstantDeclaration.setArgs(NodeList<Expression> args) |
Constructor and Description |
---|
AnnotationMemberDeclaration(EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
Type<?> type,
String name,
Expression defaultValue) |
AnnotationMemberDeclaration(EnumSet<Modifier> modifiers,
Type<?> type,
String name,
Expression defaultValue) |
AnnotationMemberDeclaration(Range range,
EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
Type type,
String name,
Expression defaultValue) |
VariableDeclarator(Range range,
VariableDeclaratorId id,
Expression init) |
VariableDeclarator(String variableName,
Expression init) |
VariableDeclarator(VariableDeclaratorId id,
Expression init)
Defines the declaration of a variable.
|
Constructor and Description |
---|
EnumConstantDeclaration(NodeList<AnnotationExpr> annotations,
String name,
NodeList<Expression> args,
NodeList<BodyDeclaration<?>> classBody) |
EnumConstantDeclaration(Range range,
NodeList<AnnotationExpr> annotations,
String name,
NodeList<Expression> args,
NodeList<BodyDeclaration<?>> classBody) |
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 |
ThisExpr.getClassExpr() |
Expression |
SuperExpr.getClassExpr() |
Expression |
ConditionalExpr.getCondition() |
Expression |
ConditionalExpr.getElseExpr() |
Expression |
InstanceOfExpr.getExpr() |
Expression |
UnaryExpr.getExpr() |
Expression |
CastExpr.getExpr() |
Expression |
ArrayAccessExpr.getIndex() |
Expression |
EnclosedExpr.getInner() |
Expression |
BinaryExpr.getLeft() |
Expression |
SingleMemberAnnotationExpr.getMemberValue() |
Expression |
ArrayAccessExpr.getName() |
Expression |
BinaryExpr.getRight() |
Expression |
MethodCallExpr.getScope() |
Expression |
MethodReferenceExpr.getScope() |
Expression |
ObjectCreationExpr.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() |
NodeList<Expression> |
ArrayInitializerExpr.getValues() |
Modifier and Type | Method and Description |
---|---|
MethodCallExpr |
MethodCallExpr.setArgs(NodeList<Expression> args) |
ObjectCreationExpr |
ObjectCreationExpr.setArgs(NodeList<Expression> args) |
ArrayInitializerExpr |
ArrayInitializerExpr.setValues(NodeList<Expression> values) |
Constructor and Description |
---|
ArrayInitializerExpr(NodeList<Expression> values) |
ArrayInitializerExpr(Range range,
NodeList<Expression> values) |
MethodCallExpr(Expression scope,
NameExpr name,
NodeList<Expression> args) |
MethodCallExpr(Range range,
Expression scope,
NodeList<Type<?>> typeArguments,
NameExpr name,
NodeList<Expression> args) |
ObjectCreationExpr(Expression scope,
ClassOrInterfaceType type,
NodeList<Expression> args)
Defines a call to a constructor.
|
ObjectCreationExpr(Range range,
Expression scope,
ClassOrInterfaceType type,
NodeList<Type<?>> typeArguments,
NodeList<Expression> args,
NodeList<BodyDeclaration<?>> anonymousBody) |
Modifier and Type | Method and Description |
---|---|
NodeList<Expression> |
NodeWithArguments.getArgs() |
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) |
Modifier and Type | Method and Description |
---|---|
N |
NodeWithArguments.setArgs(NodeList<Expression> args) |
Modifier and Type | Method and Description |
---|---|
Expression |
AssertStmt.getCheck() |
Expression |
ForStmt.getCompare() |
Expression |
DoStmt.getCondition() |
Expression |
IfStmt.getCondition() |
Expression |
WhileStmt.getCondition() |
Expression |
SynchronizedStmt.getExpr() |
Expression |
ExplicitConstructorInvocationStmt.getExpr() |
Expression |
ThrowStmt.getExpr() |
Expression |
ReturnStmt.getExpr() |
Expression |
ExpressionStmt.getExpression() |
Expression |
ForeachStmt.getIterable() |
Expression |
SwitchEntryStmt.getLabel() |
Expression |
AssertStmt.getMessage() |
Expression |
SwitchStmt.getSelector() |
Modifier and Type | Method and Description |
---|---|
NodeList<Expression> |
ExplicitConstructorInvocationStmt.getArgs() |
NodeList<Expression> |
ForStmt.getInit() |
NodeList<Expression> |
ForStmt.getUpdate() |
Modifier and Type | Method and Description |
---|---|
AssertStmt |
AssertStmt.setCheck(Expression check) |
ForStmt |
ForStmt.setCompare(Expression compare) |
DoStmt |
DoStmt.setCondition(Expression condition) |
IfStmt |
IfStmt.setCondition(Expression condition) |
WhileStmt |
WhileStmt.setCondition(Expression condition) |
SynchronizedStmt |
SynchronizedStmt.setExpr(Expression expr) |
ExplicitConstructorInvocationStmt |
ExplicitConstructorInvocationStmt.setExpr(Expression expr) |
ThrowStmt |
ThrowStmt.setExpr(Expression expr) |
ReturnStmt |
ReturnStmt.setExpr(Expression expr) |
ExpressionStmt |
ExpressionStmt.setExpression(Expression expr) |
ForeachStmt |
ForeachStmt.setIterable(Expression iterable) |
SwitchEntryStmt |
SwitchEntryStmt.setLabel(Expression label) |
AssertStmt |
AssertStmt.setMessage(Expression msg) |
SwitchStmt |
SwitchStmt.setSelector(Expression selector) |
Modifier and Type | Method and Description |
---|---|
ExplicitConstructorInvocationStmt |
ExplicitConstructorInvocationStmt.setArgs(NodeList<Expression> args) |
ForStmt |
ForStmt.setInit(NodeList<Expression> init) |
ForStmt |
ForStmt.setUpdate(NodeList<Expression> update) |
Constructor and Description |
---|
ExplicitConstructorInvocationStmt(boolean isThis,
Expression expr,
NodeList<Expression> args) |
ExplicitConstructorInvocationStmt(Range range,
NodeList<Type<?>> typeArguments,
boolean isThis,
Expression expr,
NodeList<Expression> args) |
ForStmt(NodeList<Expression> init,
Expression compare,
NodeList<Expression> update,
Statement body) |
ForStmt(NodeList<Expression> init,
Expression compare,
NodeList<Expression> update,
Statement body) |
ForStmt(Range range,
NodeList<Expression> init,
Expression compare,
NodeList<Expression> update,
Statement body) |
ForStmt(Range range,
NodeList<Expression> init,
Expression compare,
NodeList<Expression> update,
Statement body) |
Copyright © 2007–2016. All rights reserved.