Modifier and Type | Field and Description |
---|---|
static ParseStart<Expression> |
ParseStart.EXPRESSION |
Modifier and Type | Method and Description |
---|---|
static <T extends Expression> |
StaticJavaParser.parseExpression(String expression)
Parses the Java expression contained in a
String and returns a
Expression that represents it. |
<T extends Expression> |
JavaParserAdapter.parseExpression(String expression) |
<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(TokenRange tokenRange,
Expression dimension,
NodeList<AnnotationExpr> annotations)
This constructor is used by the parser and is considered private.
|
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(NodeList<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
Type type,
SimpleName name,
Expression defaultValue) |
AnnotationMemberDeclaration(NodeList<Modifier> modifiers,
Type type,
String name,
Expression defaultValue) |
AnnotationMemberDeclaration(TokenRange tokenRange,
NodeList<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
Type type,
SimpleName name,
Expression defaultValue)
This constructor is used by the parser and is considered private.
|
VariableDeclarator(TokenRange tokenRange,
Type type,
SimpleName name,
Expression initializer)
This constructor is used by the parser and is considered private.
|
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(TokenRange tokenRange,
NodeList<AnnotationExpr> annotations,
SimpleName name,
NodeList<Expression> arguments,
NodeList<BodyDeclaration<?>> classBody)
This constructor is used by the parser and is considered private.
|
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
The ternary conditional expression.
|
class |
DoubleLiteralExpr
A float or a double constant.
|
class |
EnclosedExpr
An expression between ( ).
|
class |
FieldAccessExpr
Access of a field of an object or a class.
|
class |
InstanceOfExpr
The instanceof statement
Java ??
|
class |
IntegerLiteralExpr
All ways to specify an int literal.
|
class |
LambdaExpr
A lambda expression
Java 1-7
Does not exist.
|
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 or a class.
|
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.
|
class |
NullLiteralExpr
A literal "null".
|
class |
ObjectCreationExpr
A constructor call.
|
class |
PatternExpr
Pattern Matching in Java
Java 1.0 to 13
Not available.
|
class |
RecordPatternExpr
Record Patterns
Record patterns were officially added in Java 21 to allow the deconstruction of
record values and provide convenient access to inner fields through pattern matching.
|
class |
SingleMemberAnnotationExpr
An annotation that has a single value.
|
class |
StringLiteralExpr
A literal string.
|
class |
SuperExpr
An occurrence of the "super" keyword.
|
class |
SwitchExpr
The switch expression
Java 1.0-11
Not available.
|
class |
TextBlockLiteralExpr
A text block
Java 13-
A text block is a multi-line string.
|
class |
ThisExpr
An occurrence of the "this" keyword.
|
class |
TypeExpr
This class is just instantiated as scopes for MethodReferenceExpr nodes to encapsulate Types.
|
class |
TypePatternExpr
The instanceof statement
Java 1.0 to 13
Not available.
|
class |
UnaryExpr
An expression where an operator is applied to a single expression.
|
class |
VariableDeclarationExpr
A declaration of variables.
|
Modifier and Type | Field and Description |
---|---|
static Function<Expression,Expression> |
Expression.EXCLUDE_ENCLOSED_EXPR
A
Function that returns its argument (an Expression ) when
the argument is not an EnclosedExpr , otherwise the first
Expression down the argument's 'inner' path that is not an
EnclosedExpr . |
static Function<Expression,Expression> |
Expression.EXCLUDE_ENCLOSED_EXPR
A
Function that returns its argument (an Expression ) when
the argument is not an EnclosedExpr , otherwise the first
Expression down the argument's 'inner' path that is not an
EnclosedExpr . |
Modifier and Type | Method and Description |
---|---|
Expression |
Expression.clone() |
Expression |
ConditionalExpr.getCondition() |
Expression |
ConditionalExpr.getElseExpr() |
Expression |
UnaryExpr.getExpression() |
Expression |
InstanceOfExpr.getExpression() |
Expression |
CastExpr.getExpression() |
Expression |
ArrayAccessExpr.getIndex() |
Expression |
EnclosedExpr.getInner() |
Expression |
BinaryExpr.getLeft() |
Expression |
SingleMemberAnnotationExpr.getMemberValue() |
Expression |
ArrayAccessExpr.getName() |
Expression |
BinaryExpr.getRight() |
Expression |
MethodReferenceExpr.getScope() |
Expression |
FieldAccessExpr.getScope() |
Expression |
SwitchExpr.getSelector() |
Expression |
AssignExpr.getTarget() |
Expression |
ConditionalExpr.getThenExpr() |
Expression |
MemberValuePair.getValue() |
Expression |
AssignExpr.getValue() |
Modifier and Type | Method and Description |
---|---|
NodeList<Expression> |
ObjectCreationExpr.getArguments() |
NodeList<Expression> |
MethodCallExpr.getArguments() |
Optional<Expression> |
LambdaExpr.getExpressionBody() |
Optional<Expression> |
ObjectCreationExpr.getScope() |
Optional<Expression> |
MethodCallExpr.getScope() |
NodeList<Expression> |
ArrayInitializerExpr.getValues() |
Modifier and Type | Method and Description |
---|---|
ObjectCreationExpr |
ObjectCreationExpr.setArguments(NodeList<Expression> arguments) |
MethodCallExpr |
MethodCallExpr.setArguments(NodeList<Expression> arguments) |
ArrayInitializerExpr |
ArrayInitializerExpr.setValues(NodeList<Expression> values) |
Constructor and Description |
---|
ArrayAccessExpr(Expression name,
Expression index) |
ArrayAccessExpr(TokenRange tokenRange,
Expression name,
Expression index)
This constructor is used by the parser and is considered private.
|
AssignExpr(Expression target,
Expression value,
AssignExpr.Operator operator) |
AssignExpr(TokenRange tokenRange,
Expression target,
Expression value,
AssignExpr.Operator operator)
This constructor is used by the parser and is considered private.
|
BinaryExpr(Expression left,
Expression right,
BinaryExpr.Operator operator) |
BinaryExpr(TokenRange tokenRange,
Expression left,
Expression right,
BinaryExpr.Operator operator)
This constructor is used by the parser and is considered private.
|
CastExpr(TokenRange tokenRange,
Type type,
Expression expression)
This constructor is used by the parser and is considered private.
|
CastExpr(Type type,
Expression expression) |
ConditionalExpr(Expression condition,
Expression thenExpr,
Expression elseExpr) |
ConditionalExpr(TokenRange tokenRange,
Expression condition,
Expression thenExpr,
Expression elseExpr)
This constructor is used by the parser and is considered private.
|
EnclosedExpr(Expression inner) |
EnclosedExpr(TokenRange tokenRange,
Expression inner)
This constructor is used by the parser and is considered private.
|
FieldAccessExpr(Expression scope,
NodeList<Type> typeArguments,
SimpleName name) |
FieldAccessExpr(Expression scope,
String name) |
FieldAccessExpr(TokenRange tokenRange,
Expression scope,
NodeList<Type> typeArguments,
SimpleName name)
This constructor is used by the parser and is considered private.
|
InstanceOfExpr(Expression expression,
ReferenceType type) |
InstanceOfExpr(Expression expression,
ReferenceType type,
PatternExpr pattern) |
InstanceOfExpr(TokenRange tokenRange,
Expression expression,
ReferenceType type,
PatternExpr pattern)
This constructor is used by the parser and is considered private.
|
LambdaExpr(NodeList<Parameter> parameters,
Expression body)
Creates a zero or multi-parameter lambda expression with its parameters wrapped in ( ).
|
LambdaExpr(Parameter parameter,
Expression body)
Creates a single parameter lambda expression.
|
MemberValuePair(SimpleName name,
Expression value) |
MemberValuePair(String name,
Expression value) |
MemberValuePair(TokenRange tokenRange,
SimpleName name,
Expression value)
This constructor is used by the parser and is considered private.
|
MethodCallExpr(Expression scope,
NodeList<Type> typeArguments,
SimpleName name,
NodeList<Expression> arguments) |
MethodCallExpr(Expression scope,
NodeList<Type> typeArguments,
String name,
NodeList<Expression> arguments) |
MethodCallExpr(Expression scope,
SimpleName name) |
MethodCallExpr(Expression scope,
SimpleName name,
NodeList<Expression> arguments) |
MethodCallExpr(Expression scope,
String name) |
MethodCallExpr(Expression scope,
String name,
NodeList<Expression> arguments) |
MethodCallExpr(String name,
Expression... arguments) |
MethodCallExpr(TokenRange tokenRange,
Expression scope,
NodeList<Type> typeArguments,
SimpleName name,
NodeList<Expression> arguments)
This constructor is used by the parser and is considered private.
|
MethodReferenceExpr(Expression scope,
NodeList<Type> typeArguments,
String identifier) |
MethodReferenceExpr(TokenRange tokenRange,
Expression scope,
NodeList<Type> typeArguments,
String identifier)
This constructor is used by the parser and is considered private.
|
ObjectCreationExpr(Expression scope,
ClassOrInterfaceType type,
NodeList<Expression> arguments)
Defines a call to a constructor.
|
ObjectCreationExpr(Expression scope,
ClassOrInterfaceType type,
NodeList<Type> typeArguments,
NodeList<Expression> arguments,
NodeList<BodyDeclaration<?>> anonymousClassBody) |
ObjectCreationExpr(TokenRange tokenRange,
Expression scope,
ClassOrInterfaceType type,
NodeList<Type> typeArguments,
NodeList<Expression> arguments,
NodeList<BodyDeclaration<?>> anonymousClassBody)
This constructor is used by the parser and is considered private.
|
SingleMemberAnnotationExpr(Name name,
Expression memberValue) |
SingleMemberAnnotationExpr(TokenRange tokenRange,
Name name,
Expression memberValue)
This constructor is used by the parser and is considered private.
|
SwitchExpr(Expression selector,
NodeList<SwitchEntry> entries) |
SwitchExpr(TokenRange tokenRange,
Expression selector,
NodeList<SwitchEntry> entries)
This constructor is used by the parser and is considered private.
|
UnaryExpr(Expression expression,
UnaryExpr.Operator operator) |
UnaryExpr(TokenRange tokenRange,
Expression expression,
UnaryExpr.Operator operator)
This constructor is used by the parser and is considered private.
|
Constructor and Description |
---|
ArrayInitializerExpr(NodeList<Expression> values) |
ArrayInitializerExpr(TokenRange tokenRange,
NodeList<Expression> values)
This constructor is used by the parser and is considered private.
|
MethodCallExpr(Expression scope,
NodeList<Type> typeArguments,
SimpleName name,
NodeList<Expression> arguments) |
MethodCallExpr(Expression scope,
NodeList<Type> typeArguments,
String name,
NodeList<Expression> arguments) |
MethodCallExpr(Expression scope,
SimpleName name,
NodeList<Expression> arguments) |
MethodCallExpr(Expression scope,
String name,
NodeList<Expression> arguments) |
MethodCallExpr(TokenRange tokenRange,
Expression scope,
NodeList<Type> typeArguments,
SimpleName name,
NodeList<Expression> arguments)
This constructor is used by the parser and is considered private.
|
ObjectCreationExpr(Expression scope,
ClassOrInterfaceType type,
NodeList<Expression> arguments)
Defines a call to a constructor.
|
ObjectCreationExpr(Expression scope,
ClassOrInterfaceType type,
NodeList<Type> typeArguments,
NodeList<Expression> arguments,
NodeList<BodyDeclaration<?>> anonymousClassBody) |
ObjectCreationExpr(TokenRange tokenRange,
Expression scope,
ClassOrInterfaceType type,
NodeList<Type> typeArguments,
NodeList<Expression> arguments,
NodeList<BodyDeclaration<?>> anonymousClassBody)
This constructor is used by the parser and is considered private.
|
Modifier and Type | Method and Description |
---|---|
default Expression |
NodeWithArguments.getArgument(int i) |
Expression |
NodeWithCondition.getCondition() |
Expression |
NodeWithExpression.getExpression() |
Expression |
NodeWithScope.getScope() |
Expression |
SwitchNode.getSelector() |
Modifier and Type | Method and Description |
---|---|
NodeList<Expression> |
NodeWithArguments.getArguments() |
Optional<Expression> |
NodeWithOptionalScope.getScope() |
Optional<Expression> |
NodeWithTraversableScope.traverseScope() |
default Optional<Expression> |
NodeWithScope.traverseScope() |
default Optional<Expression> |
NodeWithOptionalScope.traverseScope() |
Modifier and Type | Method and Description |
---|---|
default ExpressionStmt |
NodeWithStatements.addAndGetStatement(Expression expr) |
default N |
NodeWithArguments.addArgument(Expression arg) |
default FieldDeclaration |
NodeWithMembers.addFieldWithInitializer(Class<?> typeClass,
String name,
Expression initializer,
Modifier.Keyword... modifiers)
Add a field to this and automatically add the import of the type if needed
|
default FieldDeclaration |
NodeWithMembers.addFieldWithInitializer(String type,
String name,
Expression initializer,
Modifier.Keyword... modifiers)
Add a field to this.
|
default FieldDeclaration |
NodeWithMembers.addFieldWithInitializer(Type type,
String name,
Expression initializer,
Modifier.Keyword... modifiers)
Add a field to this.
|
default N |
NodeWithAnnotations.addSingleMemberAnnotation(Class<? extends Annotation> clazz,
Expression expression)
Annotates this with a single member annotation
|
default N |
NodeWithAnnotations.addSingleMemberAnnotation(String name,
Expression expression)
Annotates this with a single member annotation
|
default N |
NodeWithStatements.addStatement(Expression expr) |
default N |
NodeWithStatements.addStatement(int index,
Expression expr) |
default int |
NodeWithArguments.getArgumentPosition(Expression argument) |
default int |
NodeWithArguments.getArgumentPosition(Expression argument,
Function<Expression,Expression> converter) |
default N |
NodeWithArguments.setArgument(int i,
Expression arg) |
N |
NodeWithCondition.setCondition(Expression condition) |
N |
NodeWithExpression.setExpression(Expression expression) |
N |
NodeWithScope.setScope(Expression scope) |
N |
NodeWithOptionalScope.setScope(Expression scope) |
SwitchNode |
SwitchNode.setSelector(Expression selector) |
Modifier and Type | Method and Description |
---|---|
default int |
NodeWithArguments.getArgumentPosition(Expression argument,
Function<Expression,Expression> converter) |
default int |
NodeWithArguments.getArgumentPosition(Expression argument,
Function<Expression,Expression> converter) |
N |
NodeWithArguments.setArguments(NodeList<Expression> arguments) |
Modifier and Type | Method and Description |
---|---|
Expression |
AssertStmt.getCheck() |
Expression |
WhileStmt.getCondition() |
Expression |
IfStmt.getCondition() |
Expression |
DoStmt.getCondition() |
Expression |
YieldStmt.getExpression() |
Expression |
ThrowStmt.getExpression() |
Expression |
SynchronizedStmt.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> |
ReturnStmt.getExpression() |
Optional<Expression> |
ExplicitConstructorInvocationStmt.getExpression() |
Optional<Expression> |
SwitchEntry.getGuard() |
NodeList<Expression> |
ForStmt.getInitialization() |
NodeList<Expression> |
SwitchEntry.getLabels() |
Optional<Expression> |
AssertStmt.getMessage() |
NodeList<Expression> |
TryStmt.getResources() |
NodeList<Expression> |
ForStmt.getUpdate() |
Modifier and Type | Method and Description |
---|---|
AssertStmt |
AssertStmt.setCheck(Expression check) |
ForStmt |
ForStmt.setCompare(Expression compare)
Sets the compare
|
WhileStmt |
WhileStmt.setCondition(Expression condition) |
IfStmt |
IfStmt.setCondition(Expression condition) |
DoStmt |
DoStmt.setCondition(Expression condition) |
YieldStmt |
YieldStmt.setExpression(Expression expression)
Sets the label
|
ThrowStmt |
ThrowStmt.setExpression(Expression expression) |
SynchronizedStmt |
SynchronizedStmt.setExpression(Expression expression) |
ReturnStmt |
ReturnStmt.setExpression(Expression expression)
Sets the expression
|
ExpressionStmt |
ExpressionStmt.setExpression(Expression expression) |
ExplicitConstructorInvocationStmt |
ExplicitConstructorInvocationStmt.setExpression(Expression expression)
Sets the expression
|
SwitchEntry |
SwitchEntry.setGuard(Expression guard) |
ForEachStmt |
ForEachStmt.setIterable(Expression iterable) |
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) |
SwitchEntry |
SwitchEntry.setLabels(NodeList<Expression> labels)
Sets the label
|
TryStmt |
TryStmt.setResources(NodeList<Expression> resources) |
ForStmt |
ForStmt.setUpdate(NodeList<Expression> update) |
Constructor and Description |
---|
AssertStmt(Expression check) |
AssertStmt(Expression check,
Expression message) |
AssertStmt(TokenRange tokenRange,
Expression check,
Expression message)
This constructor is used by the parser and is considered private.
|
DoStmt(Statement body,
Expression condition) |
DoStmt(TokenRange tokenRange,
Statement body,
Expression condition)
This constructor is used by the parser and is considered private.
|
ExplicitConstructorInvocationStmt(boolean isThis,
Expression expression,
NodeList<Expression> arguments) |
ExplicitConstructorInvocationStmt(NodeList<Type> typeArguments,
boolean isThis,
Expression expression,
NodeList<Expression> arguments) |
ExplicitConstructorInvocationStmt(TokenRange tokenRange,
NodeList<Type> typeArguments,
boolean isThis,
Expression expression,
NodeList<Expression> arguments)
This constructor is used by the parser and is considered private.
|
ExpressionStmt(Expression expression) |
ExpressionStmt(TokenRange tokenRange,
Expression expression)
This constructor is used by the parser and is considered private.
|
ForEachStmt(TokenRange tokenRange,
VariableDeclarationExpr variable,
Expression iterable,
Statement body)
This constructor is used by the parser and is considered private.
|
ForEachStmt(VariableDeclarationExpr variable,
Expression iterable,
Statement body) |
ForStmt(NodeList<Expression> initialization,
Expression compare,
NodeList<Expression> update,
Statement body) |
ForStmt(TokenRange tokenRange,
NodeList<Expression> initialization,
Expression compare,
NodeList<Expression> update,
Statement body)
This constructor is used by the parser and is considered private.
|
IfStmt(Expression condition,
Statement thenStmt,
Statement elseStmt) |
IfStmt(TokenRange tokenRange,
Expression condition,
Statement thenStmt,
Statement elseStmt)
This constructor is used by the parser and is considered private.
|
ReturnStmt(Expression expression) |
ReturnStmt(TokenRange tokenRange,
Expression expression)
This constructor is used by the parser and is considered private.
|
SwitchEntry(NodeList<Expression> labels,
SwitchEntry.Type type,
NodeList<Statement> statements,
boolean isDefault,
Expression guard) |
SwitchEntry(TokenRange tokenRange,
NodeList<Expression> labels,
SwitchEntry.Type type,
NodeList<Statement> statements,
boolean isDefault,
Expression guard)
This constructor is used by the parser and is considered private.
|
SwitchStmt(Expression selector,
NodeList<SwitchEntry> entries) |
SwitchStmt(TokenRange tokenRange,
Expression selector,
NodeList<SwitchEntry> entries)
This constructor is used by the parser and is considered private.
|
SynchronizedStmt(Expression expression,
BlockStmt body) |
SynchronizedStmt(TokenRange tokenRange,
Expression expression,
BlockStmt body)
This constructor is used by the parser and is considered private.
|
ThrowStmt(Expression expression) |
ThrowStmt(TokenRange tokenRange,
Expression expression)
This constructor is used by the parser and is considered private.
|
WhileStmt(Expression condition,
Statement body) |
WhileStmt(TokenRange tokenRange,
Expression condition,
Statement body)
This constructor is used by the parser and is considered private.
|
YieldStmt(Expression expression) |
YieldStmt(TokenRange tokenRange,
Expression expression)
This constructor is used by the parser and is considered private.
|
Constructor and Description |
---|
ExplicitConstructorInvocationStmt(boolean isThis,
Expression expression,
NodeList<Expression> arguments) |
ExplicitConstructorInvocationStmt(NodeList<Type> typeArguments,
boolean isThis,
Expression expression,
NodeList<Expression> arguments) |
ExplicitConstructorInvocationStmt(TokenRange tokenRange,
NodeList<Type> typeArguments,
boolean isThis,
Expression expression,
NodeList<Expression> arguments)
This constructor is used by the parser and is considered private.
|
ForStmt(NodeList<Expression> initialization,
Expression compare,
NodeList<Expression> update,
Statement body) |
ForStmt(NodeList<Expression> initialization,
Expression compare,
NodeList<Expression> update,
Statement body) |
ForStmt(TokenRange tokenRange,
NodeList<Expression> initialization,
Expression compare,
NodeList<Expression> update,
Statement body)
This constructor is used by the parser and is considered private.
|
ForStmt(TokenRange tokenRange,
NodeList<Expression> initialization,
Expression compare,
NodeList<Expression> update,
Statement body)
This constructor is used by the parser and is considered private.
|
SwitchEntry(NodeList<Expression> labels,
SwitchEntry.Type type,
NodeList<Statement> statements)
This constructor exists for backwards compatibility for code that instantiated `SwitchEntries` before
the `isDefault` and guard fields were added.
|
SwitchEntry(NodeList<Expression> labels,
SwitchEntry.Type type,
NodeList<Statement> statements,
boolean isDefault,
Expression guard) |
SwitchEntry(TokenRange tokenRange,
NodeList<Expression> labels,
SwitchEntry.Type type,
NodeList<Statement> statements)
This constructor exists for backwards compatibility for code that instantiated `SwitchEntries` before
the `isDefault` and guard fields were added.
|
SwitchEntry(TokenRange tokenRange,
NodeList<Expression> labels,
SwitchEntry.Type type,
NodeList<Statement> statements,
boolean isDefault)
This constructor is used by the parser and is considered private.
|
SwitchEntry(TokenRange tokenRange,
NodeList<Expression> labels,
SwitchEntry.Type type,
NodeList<Statement> statements,
boolean isDefault,
Expression guard)
This constructor is used by the parser and is considered private.
|
TryStmt(NodeList<Expression> resources,
BlockStmt tryBlock,
NodeList<CatchClause> catchClauses,
BlockStmt finallyBlock) |
TryStmt(TokenRange tokenRange,
NodeList<Expression> resources,
BlockStmt tryBlock,
NodeList<CatchClause> catchClauses,
BlockStmt finallyBlock)
This constructor is used by the parser and is considered private.
|
Modifier and Type | Method and Description |
---|---|
protected <T extends Expression> |
PrettyPrintVisitor.printArguments(NodeList<T> args,
Void arg)
Deprecated.
|
protected <T extends Expression> |
DefaultPrettyPrinterVisitor.printArguments(NodeList<T> args,
Void arg) |
Modifier and Type | Method and Description |
---|---|
ResolvedType |
SymbolResolver.calculateType(Expression expression)
For an expression it would find the corresponding resolved type.
|
Modifier and Type | Method and Description |
---|---|
Expression |
ResolvedAnnotationMemberDeclaration.getDefaultValue() |
Copyright © 2007–2024. All rights reserved.