Uses of Class
com.github.javaparser.ast.expr.Expression
-
-
Uses of Expression in com.github.javaparser
Fields in com.github.javaparser with type parameters of type Expression Modifier and Type Field Description static ParseStart<Expression>
ParseStart. EXPRESSION
Methods in com.github.javaparser with type parameters of type Expression Modifier and Type Method Description <T extends Expression>
ParseResult<T>JavaParser. parseExpression(java.lang.String expression)
Parses the Java expression contained in aString
and returns aExpression
that represents it.<T extends Expression>
TJavaParserAdapter. parseExpression(java.lang.String expression)
static <T extends Expression>
TStaticJavaParser. parseExpression(java.lang.String expression)
Parses the Java expression contained in aString
and returns aExpression
that represents it.Methods in com.github.javaparser that return Expression Modifier and Type Method Description Expression
GeneratedJavaParser. AdditiveExpression()
https://docs.oracle.com/javase/specs/jls/se15/html/jls-15.html#jls-15.18Expression
GeneratedJavaParser. AllocationExpression(Expression scope)
https://docs.oracle.com/javase/specs/jls/se15/html/jls-15.html#jls-15.9Expression
GeneratedJavaParser. AndExpression()
Note subtle distinctions between inclusive and exclusive expressions.Expression
GeneratedJavaParser. BooleanLiteral()
https://docs.oracle.com/javase/specs/jls/se15/html/jls-3.html#jls-3.10.3Expression
GeneratedJavaParser. CastExpression()
https://docs.oracle.com/javase/specs/jls/se15/html/jls-15.html#jls-15.16Expression
GeneratedJavaParser. ConditionalAndExpression()
Note subtle distinctions between inclusive and exclusive expressions.Expression
GeneratedJavaParser. ConditionalExpression()
// TODO: Examine further re: missing(?)LambdaExpression
or whether it is permissive enough to include it.Expression
GeneratedJavaParser. ConditionalOrExpression()
Note subtle distinctions between inclusive and exclusive expressions.Expression
GeneratedJavaParser. DefaultValue()
https://docs.oracle.com/javase/specs/jls/se15/html/jls-9.html#jls-9.6.2Expression
GeneratedJavaParser. EqualityExpression()
// Note that instanceof is aRelationalExpression
within the JLS, which differs from JavaParser https://docs.oracle.com/javase/specs/jls/se15/html/jls-15.html#jls-15.21Expression
GeneratedJavaParser. ExclusiveOrExpression()
Note subtle distinctions between inclusive and exclusive expressions.Expression
GeneratedJavaParser. Expression()
Expression
GeneratedJavaParser. ExpressionParseStart()
(package private) Expression
GeneratedJavaParserBase. generateLambda(Expression ret, Statement lambdaBody)
Workaround for rather complex ambiguity that lambda's createExpression
GeneratedJavaParser. InclusiveOrExpression()
Note subtle distinctions between inclusive and exclusive expressions.Expression
GeneratedJavaParser. InstanceOfExpression()
// Note that instanceof is aRelationalExpression
within the JLS, which differs from JavaParser https://docs.oracle.com/javase/specs/jls/se15/html/jls-15.html#jls-15.20Expression
GeneratedJavaParser. Literal()
Note that a Long Literal is defined as anIntegerLiteral
, suffixed by "L" https://docs.oracle.com/javase/specs/jls/se15/html/jls-3.html#jls-3.10.1Expression
GeneratedJavaParser. MemberValue()
Note thatMemberValue
(JavaParser) is synonymous withElementValue
(JLS) https://docs.oracle.com/javase/specs/jls/se15/html/jls-9.html#jls-9.7.1 https://docs.oracle.com/javase/specs/jls/se15/html/jls-9.html#jls-ElementValueExpression
GeneratedJavaParser. MemberValueArrayInitializer()
Note thatMemberValueArrayInitializer
(JavaParser) is synonymous withElementValueArrayInitializer
(JLS) https://docs.oracle.com/javase/specs/jls/se15/html/jls-9.html#jls-9.7.1Expression
GeneratedJavaParser. MultiplicativeExpression()
https://docs.oracle.com/javase/specs/jls/se15/html/jls-15.html#jls-15.17Expression
GeneratedJavaParser. NullLiteral()
https://docs.oracle.com/javase/specs/jls/se15/html/jls-3.html#jls-3.10.8Expression
GeneratedJavaParser. PostfixExpression()
https://docs.oracle.com/javase/specs/jls/se15/html/jls-15.html#jls-15.15Expression
GeneratedJavaParser. PreDecrementExpression()
https://docs.oracle.com/javase/specs/jls/se15/html/jls-15.html#jls-15.15Expression
GeneratedJavaParser. PreIncrementExpression()
https://docs.oracle.com/javase/specs/jls/se15/html/jls-15.html#jls-15.15Expression
GeneratedJavaParser. PrimaryExpression()
https://docs.oracle.com/javase/specs/jls/se15/html/jls-15.html#jls-15.8Expression
GeneratedJavaParser. PrimaryExpressionWithoutSuperSuffix()
// TODO: Unclear exactly which part of the JLS this relates to - a JavaParser-specific thing with no 1:1 mapping, perhaps?Expression
GeneratedJavaParser. PrimaryPrefix()
// TODO: Unclear exactly which part of the JLS this relates to - a JavaParser-specific thing with no 1:1 mapping, perhaps?Expression
GeneratedJavaParser. PrimarySuffix(Expression scope)
// TODO: Unclear exactly which part of the JLS this relates to - a JavaParser-specific thing with no 1:1 mapping, perhaps?Expression
GeneratedJavaParser. PrimarySuffixWithoutSuper(Expression scope)
// TODO: Unclear exactly which part of the JLS this relates to - a JavaParser-specific thing with no 1:1 mapping, perhaps?Expression
GeneratedJavaParser. RelationalExpression()
// Note that instanceof is aRelationalExpression
within the JLS, which differs from JavaParser https://docs.oracle.com/javase/specs/jls/se15/html/jls-15.html#jls-15.20Expression
GeneratedJavaParser. Resource()
// TODO: Examine more closely.Expression
GeneratedJavaParser. ShiftExpression()
https://docs.oracle.com/javase/specs/jls/se15/html/jls-15.html#jls-15.19Expression
GeneratedJavaParser. UnaryExpression()
https://docs.oracle.com/javase/specs/jls/se15/html/jls-15.html#jls-15.15Expression
GeneratedJavaParser. UnaryExpressionNotPlusMinus()
https://docs.oracle.com/javase/specs/jls/se15/html/jls-15.html#jls-15.15Expression
GeneratedJavaParser. VariableInitializer()
https://docs.oracle.com/javase/specs/jls/se15/html/jls-8.html#jls-8.3Methods in com.github.javaparser that return types with arguments of type Expression Modifier and Type Method Description NodeList<Expression>
GeneratedJavaParser. ArgumentList()
https://docs.oracle.com/javase/specs/jls/se15/html/jls-15.html#jls-15.12NodeList<Expression>
GeneratedJavaParser. Arguments()
https://docs.oracle.com/javase/specs/jls/se15/html/jls-15.html#jls-15.12NodeList<Expression>
GeneratedJavaParser. ExpressionList()
https://docs.oracle.com/javase/specs/jls/se15/html/jls-14.html#jls-14.14NodeList<Expression>
GeneratedJavaParser. ForInit()
https://docs.oracle.com/javase/specs/jls/se15/html/jls-14.html#jls-14.14NodeList<Expression>
GeneratedJavaParser. ForUpdate()
https://docs.oracle.com/javase/specs/jls/se15/html/jls-14.html#jls-14.14NodeList<Expression>
GeneratedJavaParser. Resources()
https://docs.oracle.com/javase/specs/jls/se15/html/jls-14.html#jls-14.20.3NodeList<Expression>
GeneratedJavaParser. ResourceSpecification()
https://docs.oracle.com/javase/specs/jls/se15/html/jls-14.html#jls-14.20.3Methods in com.github.javaparser with parameters of type Expression Modifier and Type Method Description Expression
GeneratedJavaParser. AllocationExpression(Expression scope)
https://docs.oracle.com/javase/specs/jls/se15/html/jls-15.html#jls-15.9(package private) Expression
GeneratedJavaParserBase. generateLambda(Expression ret, Statement lambdaBody)
Workaround for rather complex ambiguity that lambda's createExpression
GeneratedJavaParser. PrimarySuffix(Expression scope)
// TODO: Unclear exactly which part of the JLS this relates to - a JavaParser-specific thing with no 1:1 mapping, perhaps?Expression
GeneratedJavaParser. PrimarySuffixWithoutSuper(Expression scope)
// TODO: Unclear exactly which part of the JLS this relates to - a JavaParser-specific thing with no 1:1 mapping, perhaps?(package private) Name
GeneratedJavaParserBase. scopeToName(Expression scope)
Converts a NameExpr or a FieldAccessExpr scope to a Name.Method parameters in com.github.javaparser with type arguments of type Expression Modifier and Type Method Description (package private) ArrayCreationExpr
GeneratedJavaParserBase. juggleArrayCreation(TokenRange range, java.util.List<TokenRange> levelRanges, Type type, NodeList<Expression> dimensions, java.util.List<NodeList<AnnotationExpr>> arrayAnnotations, ArrayInitializerExpr arrayInitializerExpr)
Throws together an ArrayCreationExpr from a lot of pieces -
Uses of Expression in com.github.javaparser.ast
Fields in com.github.javaparser.ast declared as Expression Modifier and Type Field Description private Expression
ArrayCreationLevel. dimension
Methods in com.github.javaparser.ast that return types with arguments of type Expression Modifier and Type Method Description java.util.Optional<Expression>
ArrayCreationLevel. getDimension()
Methods in com.github.javaparser.ast with parameters of type Expression Modifier and Type Method Description ArrayCreationLevel
ArrayCreationLevel. setDimension(Expression dimension)
Sets the dimensionConstructors in com.github.javaparser.ast with parameters of type Expression Constructor 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. -
Uses of Expression in com.github.javaparser.ast.body
Fields in com.github.javaparser.ast.body declared as Expression Modifier and Type Field Description private Expression
AnnotationMemberDeclaration. defaultValue
private Expression
VariableDeclarator. initializer
Fields in com.github.javaparser.ast.body with type parameters of type Expression Modifier and Type Field Description private NodeList<Expression>
EnumConstantDeclaration. arguments
Methods in com.github.javaparser.ast.body that return types with arguments of type Expression Modifier and Type Method Description NodeList<Expression>
EnumConstantDeclaration. getArguments()
java.util.Optional<Expression>
AnnotationMemberDeclaration. getDefaultValue()
java.util.Optional<Expression>
VariableDeclarator. getInitializer()
Methods in com.github.javaparser.ast.body with parameters of type Expression Modifier and Type Method Description AnnotationMemberDeclaration
AnnotationMemberDeclaration. setDefaultValue(Expression defaultValue)
Sets the default valueVariableDeclarator
VariableDeclarator. setInitializer(Expression initializer)
Sets the initializer expressionMethod parameters in com.github.javaparser.ast.body with type arguments of type Expression Modifier and Type Method Description EnumConstantDeclaration
EnumConstantDeclaration. setArguments(NodeList<Expression> arguments)
Constructors in com.github.javaparser.ast.body with parameters of type Expression Constructor Description AnnotationMemberDeclaration(NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, Type type, SimpleName name, Expression defaultValue)
AnnotationMemberDeclaration(NodeList<Modifier> modifiers, Type type, java.lang.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(Type type, SimpleName name, Expression initializer)
Defines the declaration of a variable.VariableDeclarator(Type type, java.lang.String variableName, Expression initializer)
VariableDeclarator(TokenRange tokenRange, Type type, SimpleName name, Expression initializer)
This constructor is used by the parser and is considered private. -
Uses of Expression in com.github.javaparser.ast.expr
Subclasses of Expression in com.github.javaparser.ast.expr Modifier and Type Class 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][][]
ornew 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 statementclass
IntegerLiteralExpr
All ways to specify an int literal.class
LambdaExpr
A lambda expressionclass
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.@Mapping(a=5, d=10)
class
NullLiteralExpr
A literal "null".class
ObjectCreationExpr
A constructor call.class
PatternExpr
The instanceof statementclass
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 expressionclass
TextBlockLiteralExpr
A text blockclass
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.Fields in com.github.javaparser.ast.expr declared as Expression Modifier and Type Field Description private Expression
ConditionalExpr. condition
private Expression
ConditionalExpr. elseExpr
private Expression
CastExpr. expression
private Expression
InstanceOfExpr. expression
private Expression
UnaryExpr. expression
private Expression
ArrayAccessExpr. index
private Expression
EnclosedExpr. inner
private Expression
BinaryExpr. left
private Expression
SingleMemberAnnotationExpr. memberValue
private Expression
ArrayAccessExpr. name
private Expression
BinaryExpr. right
private Expression
FieldAccessExpr. scope
private Expression
MethodCallExpr. scope
private Expression
MethodReferenceExpr. scope
private Expression
ObjectCreationExpr. scope
private Expression
SwitchExpr. selector
private Expression
AssignExpr. target
private Expression
ConditionalExpr. thenExpr
private Expression
AssignExpr. value
private Expression
MemberValuePair. value
Fields in com.github.javaparser.ast.expr with type parameters of type Expression Modifier and Type Field Description private NodeList<Expression>
MethodCallExpr. arguments
private NodeList<Expression>
ObjectCreationExpr. arguments
static java.util.function.Function<Expression,Expression>
Expression. EXCLUDE_ENCLOSED_EXPR
AFunction
that returns its argument (anExpression
) when the argument is not anEnclosedExpr
, otherwise the firstExpression
down the argument's 'inner' path that is not anEnclosedExpr
.static java.util.function.Function<Expression,Expression>
Expression. EXCLUDE_ENCLOSED_EXPR
AFunction
that returns its argument (anExpression
) when the argument is not anEnclosedExpr
, otherwise the firstExpression
down the argument's 'inner' path that is not anEnclosedExpr
.private NodeList<Expression>
ArrayInitializerExpr. values
Methods in com.github.javaparser.ast.expr that return Expression Modifier and Type Method Description Expression
Expression. clone()
Expression
ConditionalExpr. getCondition()
Expression
ConditionalExpr. getElseExpr()
Expression
CastExpr. getExpression()
Expression
InstanceOfExpr. getExpression()
Expression
UnaryExpr. getExpression()
Expression
ArrayAccessExpr. getIndex()
Expression
EnclosedExpr. getInner()
Expression
BinaryExpr. getLeft()
Expression
SingleMemberAnnotationExpr. getMemberValue()
Expression
ArrayAccessExpr. getName()
Expression
BinaryExpr. getRight()
Expression
FieldAccessExpr. getScope()
Expression
MethodReferenceExpr. getScope()
Expression
SwitchExpr. getSelector()
Expression
AssignExpr. getTarget()
Expression
ConditionalExpr. getThenExpr()
Expression
AssignExpr. getValue()
Expression
MemberValuePair. getValue()
Methods in com.github.javaparser.ast.expr that return types with arguments of type Expression Modifier and Type Method Description NodeList<Expression>
MethodCallExpr. getArguments()
NodeList<Expression>
ObjectCreationExpr. getArguments()
java.util.Optional<Expression>
LambdaExpr. getExpressionBody()
java.util.Optional<Expression>
MethodCallExpr. getScope()
java.util.Optional<Expression>
ObjectCreationExpr. getScope()
NodeList<Expression>
ArrayInitializerExpr. getValues()
Methods in com.github.javaparser.ast.expr with parameters of type Expression Modifier and Type Method Description NormalAnnotationExpr
NormalAnnotationExpr. addPair(java.lang.String key, Expression value)
adds a pair to this annotationConditionalExpr
ConditionalExpr. setCondition(Expression condition)
ConditionalExpr
ConditionalExpr. setElseExpr(Expression elseExpr)
CastExpr
CastExpr. setExpression(Expression expression)
InstanceOfExpr
InstanceOfExpr. setExpression(Expression expression)
UnaryExpr
UnaryExpr. setExpression(Expression expression)
ArrayAccessExpr
ArrayAccessExpr. setIndex(Expression index)
EnclosedExpr
EnclosedExpr. setInner(Expression inner)
Sets the inner expressionBinaryExpr
BinaryExpr. setLeft(Expression left)
SingleMemberAnnotationExpr
SingleMemberAnnotationExpr. setMemberValue(Expression memberValue)
ArrayAccessExpr
ArrayAccessExpr. setName(Expression name)
BinaryExpr
BinaryExpr. setRight(Expression right)
FieldAccessExpr
FieldAccessExpr. setScope(Expression scope)
Sets the scopeMethodCallExpr
MethodCallExpr. setScope(Expression scope)
MethodReferenceExpr
MethodReferenceExpr. setScope(Expression scope)
ObjectCreationExpr
ObjectCreationExpr. setScope(Expression scope)
Sets the scopeSwitchExpr
SwitchExpr. setSelector(Expression selector)
AssignExpr
AssignExpr. setTarget(Expression target)
ConditionalExpr
ConditionalExpr. setThenExpr(Expression thenExpr)
AssignExpr
AssignExpr. setValue(Expression value)
MemberValuePair
MemberValuePair. setValue(Expression value)
Method parameters in com.github.javaparser.ast.expr with type arguments of type Expression Modifier and Type Method Description MethodCallExpr
MethodCallExpr. setArguments(NodeList<Expression> arguments)
ObjectCreationExpr
ObjectCreationExpr. setArguments(NodeList<Expression> arguments)
ArrayInitializerExpr
ArrayInitializerExpr. setValues(NodeList<Expression> values)
Constructors in com.github.javaparser.ast.expr with parameters of type Expression Constructor 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(Type type, Expression expression)
CastExpr(TokenRange tokenRange, Type type, Expression expression)
This constructor is used by the parser and is considered private.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, java.lang.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(Parameter parameter, Expression body)
Creates a single parameter lambda expression.LambdaExpr(NodeList<Parameter> parameters, Expression body)
Creates a zero or multi-parameter lambda expression with its parameters wrapped in ( ).MemberValuePair(SimpleName name, Expression value)
MemberValuePair(TokenRange tokenRange, SimpleName name, Expression value)
This constructor is used by the parser and is considered private.MemberValuePair(java.lang.String name, Expression value)
MethodCallExpr(Expression scope, SimpleName name)
MethodCallExpr(Expression scope, SimpleName name, NodeList<Expression> arguments)
MethodCallExpr(Expression scope, NodeList<Type> typeArguments, SimpleName name, NodeList<Expression> arguments)
MethodCallExpr(Expression scope, NodeList<Type> typeArguments, java.lang.String name, NodeList<Expression> arguments)
MethodCallExpr(Expression scope, java.lang.String name)
MethodCallExpr(Expression scope, java.lang.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.MethodCallExpr(java.lang.String name, Expression... arguments)
MethodReferenceExpr(Expression scope, NodeList<Type> typeArguments, java.lang.String identifier)
MethodReferenceExpr(TokenRange tokenRange, Expression scope, NodeList<Type> typeArguments, java.lang.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 parameters in com.github.javaparser.ast.expr with type arguments of type Expression Constructor 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, SimpleName name, NodeList<Expression> arguments)
MethodCallExpr(Expression scope, java.lang.String name, NodeList<Expression> arguments)
ObjectCreationExpr(Expression scope, ClassOrInterfaceType type, NodeList<Expression> arguments)
Defines a call to a constructor. -
Uses of Expression in com.github.javaparser.ast.nodeTypes
Methods in com.github.javaparser.ast.nodeTypes that return Expression Modifier and Type Method Description default Expression
NodeWithArguments. getArgument(int i)
Expression
NodeWithCondition. getCondition()
Expression
NodeWithExpression. getExpression()
Expression
NodeWithScope. getScope()
Expression
SwitchNode. getSelector()
Methods in com.github.javaparser.ast.nodeTypes that return types with arguments of type Expression Modifier and Type Method Description NodeList<Expression>
NodeWithArguments. getArguments()
java.util.Optional<Expression>
NodeWithOptionalScope. getScope()
default java.util.Optional<Expression>
NodeWithOptionalScope. traverseScope()
default java.util.Optional<Expression>
NodeWithScope. traverseScope()
java.util.Optional<Expression>
NodeWithTraversableScope. traverseScope()
Methods in com.github.javaparser.ast.nodeTypes with parameters of type Expression Modifier and Type Method Description default ExpressionStmt
NodeWithStatements. addAndGetStatement(Expression expr)
default N
NodeWithArguments. addArgument(Expression arg)
default FieldDeclaration
NodeWithMembers. addFieldWithInitializer(Type type, java.lang.String name, Expression initializer, Modifier.Keyword... modifiers)
Add a field to this.default FieldDeclaration
NodeWithMembers. addFieldWithInitializer(java.lang.Class<?> typeClass, java.lang.String name, Expression initializer, Modifier.Keyword... modifiers)
Add a field to this and automatically add the import of the type if neededdefault FieldDeclaration
NodeWithMembers. addFieldWithInitializer(java.lang.String type, java.lang.String name, Expression initializer, Modifier.Keyword... modifiers)
Add a field to this.default N
NodeWithAnnotations. addSingleMemberAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> clazz, Expression expression)
Annotates this with a single member annotationdefault N
NodeWithAnnotations. addSingleMemberAnnotation(java.lang.String name, Expression expression)
Annotates this with a single member annotationdefault N
NodeWithStatements. addStatement(int index, Expression expr)
default N
NodeWithStatements. addStatement(Expression expr)
default int
NodeWithArguments. getArgumentPosition(Expression argument)
default int
NodeWithArguments. getArgumentPosition(Expression argument, java.util.function.Function<Expression,Expression> converter)
default N
NodeWithArguments. setArgument(int i, Expression arg)
N
NodeWithCondition. setCondition(Expression condition)
N
NodeWithExpression. setExpression(Expression expression)
N
NodeWithOptionalScope. setScope(Expression scope)
N
NodeWithScope. setScope(Expression scope)
SwitchNode
SwitchNode. setSelector(Expression selector)
Method parameters in com.github.javaparser.ast.nodeTypes with type arguments of type Expression Modifier and Type Method Description default int
NodeWithArguments. getArgumentPosition(Expression argument, java.util.function.Function<Expression,Expression> converter)
default int
NodeWithArguments. getArgumentPosition(Expression argument, java.util.function.Function<Expression,Expression> converter)
N
NodeWithArguments. setArguments(NodeList<Expression> arguments)
-
Uses of Expression in com.github.javaparser.ast.stmt
Fields in com.github.javaparser.ast.stmt declared as Expression Modifier and Type Field Description private Expression
AssertStmt. check
private Expression
ForStmt. compare
private Expression
DoStmt. condition
private Expression
IfStmt. condition
private Expression
WhileStmt. condition
private Expression
ExplicitConstructorInvocationStmt. expression
private Expression
ExpressionStmt. expression
private Expression
ReturnStmt. expression
private Expression
SynchronizedStmt. expression
private Expression
ThrowStmt. expression
private Expression
YieldStmt. expression
private Expression
ForEachStmt. iterable
private Expression
AssertStmt. message
private Expression
SwitchStmt. selector
Fields in com.github.javaparser.ast.stmt with type parameters of type Expression Modifier and Type Field Description private NodeList<Expression>
ExplicitConstructorInvocationStmt. arguments
private NodeList<Expression>
ForStmt. initialization
private NodeList<Expression>
SwitchEntry. labels
private NodeList<Expression>
TryStmt. resources
private NodeList<Expression>
ForStmt. update
Methods in com.github.javaparser.ast.stmt that return Expression Modifier and Type Method Description Expression
AssertStmt. getCheck()
Expression
DoStmt. getCondition()
Expression
IfStmt. getCondition()
Expression
WhileStmt. getCondition()
Expression
ExpressionStmt. getExpression()
Expression
SynchronizedStmt. getExpression()
Expression
ThrowStmt. getExpression()
Expression
YieldStmt. getExpression()
Expression
ForEachStmt. getIterable()
Expression
SwitchStmt. getSelector()
Methods in com.github.javaparser.ast.stmt that return types with arguments of type Expression Modifier and Type Method Description NodeList<Expression>
ExplicitConstructorInvocationStmt. getArguments()
java.util.Optional<Expression>
ForStmt. getCompare()
java.util.Optional<Expression>
ExplicitConstructorInvocationStmt. getExpression()
java.util.Optional<Expression>
ReturnStmt. getExpression()
NodeList<Expression>
ForStmt. getInitialization()
NodeList<Expression>
SwitchEntry. getLabels()
java.util.Optional<Expression>
AssertStmt. getMessage()
NodeList<Expression>
TryStmt. getResources()
NodeList<Expression>
ForStmt. getUpdate()
Methods in com.github.javaparser.ast.stmt with parameters of type Expression Modifier and Type Method Description AssertStmt
AssertStmt. setCheck(Expression check)
ForStmt
ForStmt. setCompare(Expression compare)
Sets the compareDoStmt
DoStmt. setCondition(Expression condition)
IfStmt
IfStmt. setCondition(Expression condition)
WhileStmt
WhileStmt. setCondition(Expression condition)
ExplicitConstructorInvocationStmt
ExplicitConstructorInvocationStmt. setExpression(Expression expression)
Sets the expressionExpressionStmt
ExpressionStmt. setExpression(Expression expression)
ReturnStmt
ReturnStmt. setExpression(Expression expression)
Sets the expressionSynchronizedStmt
SynchronizedStmt. setExpression(Expression expression)
ThrowStmt
ThrowStmt. setExpression(Expression expression)
YieldStmt
YieldStmt. setExpression(Expression expression)
Sets the labelForEachStmt
ForEachStmt. setIterable(Expression iterable)
AssertStmt
AssertStmt. setMessage(Expression message)
Sets the messageSwitchStmt
SwitchStmt. setSelector(Expression selector)
Method parameters in com.github.javaparser.ast.stmt with type arguments of type Expression Modifier and Type Method Description ExplicitConstructorInvocationStmt
ExplicitConstructorInvocationStmt. setArguments(NodeList<Expression> arguments)
ForStmt
ForStmt. setInitialization(NodeList<Expression> initialization)
SwitchEntry
SwitchEntry. setLabels(NodeList<Expression> labels)
Sets the labelTryStmt
TryStmt. setResources(NodeList<Expression> resources)
ForStmt
ForStmt. setUpdate(NodeList<Expression> update)
Constructors in com.github.javaparser.ast.stmt with parameters of type Expression Constructor 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(VariableDeclarationExpr variable, Expression iterable, Statement body)
ForEachStmt(TokenRange tokenRange, VariableDeclarationExpr variable, Expression iterable, Statement body)
This constructor is used by the parser and is considered private.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.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 parameters in com.github.javaparser.ast.stmt with type arguments of type Expression Constructor Description ExplicitConstructorInvocationStmt(boolean isThis, Expression expression, NodeList<Expression> arguments)
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.SwitchEntry(NodeList<Expression> labels, SwitchEntry.Type type, NodeList<Statement> statements)
SwitchEntry(TokenRange tokenRange, NodeList<Expression> labels, SwitchEntry.Type type, NodeList<Statement> statements)
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. -
Uses of Expression in com.github.javaparser.printer
Method parameters in com.github.javaparser.printer with type arguments of type Expression Modifier and Type Method Description protected void
DefaultPrettyPrinterVisitor. printArguments(NodeList<Expression> args, java.lang.Void arg)
protected void
PrettyPrintVisitor. printArguments(NodeList<Expression> args, java.lang.Void arg)
Deprecated. -
Uses of Expression in com.github.javaparser.resolution
Methods in com.github.javaparser.resolution with parameters of type Expression Modifier and Type Method Description ResolvedType
SymbolResolver. calculateType(Expression expression)
For an expression it would find the corresponding resolved type. -
Uses of Expression in com.github.javaparser.resolution.declarations
Methods in com.github.javaparser.resolution.declarations that return Expression Modifier and Type Method Description Expression
ResolvedAnnotationMemberDeclaration. getDefaultValue()
-