Uses of Class
com.github.javaparser.ast.expr.Expression
-
Packages that use Expression Package Description com.github.javaparser com.github.javaparser.ast com.github.javaparser.ast.body com.github.javaparser.ast.expr com.github.javaparser.ast.nodeTypes com.github.javaparser.ast.stmt com.github.javaparser.printer com.github.javaparser.resolution com.github.javaparser.resolution.declarations com.github.javaparser.symbolsolver com.github.javaparser.symbolsolver.javaparsermodel Implementation of model based on JavaParser.com.github.javaparser.symbolsolver.javaparsermodel.contexts com.github.javaparser.symbolsolver.javaparsermodel.declarations com.github.javaparser.symbolsolver.javassistmodel Implementation of model based on Javassist.com.github.javaparser.symbolsolver.reflectionmodel Implementation of model based on reflection.com.github.javaparser.symbolsolver.resolution.typeinference com.github.javaparser.symbolsolver.resolution.typeinference.constraintformulas -
-
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. EXPRESSIONMethods 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 aStringand returns aExpressionthat 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 aStringand returns aExpressionthat represents it.Methods in com.github.javaparser that return Expression Modifier and Type Method Description ExpressionGeneratedJavaParser. AdditiveExpression()https://docs.oracle.com/javase/specs/jls/se15/html/jls-15.html#jls-15.18ExpressionGeneratedJavaParser. AllocationExpression(Expression scope)https://docs.oracle.com/javase/specs/jls/se15/html/jls-15.html#jls-15.9ExpressionGeneratedJavaParser. AndExpression()Note subtle distinctions between inclusive and exclusive expressions.ExpressionGeneratedJavaParser. BooleanLiteral()https://docs.oracle.com/javase/specs/jls/se15/html/jls-3.html#jls-3.10.3ExpressionGeneratedJavaParser. CastExpression()https://docs.oracle.com/javase/specs/jls/se15/html/jls-15.html#jls-15.16ExpressionGeneratedJavaParser. ConditionalAndExpression()Note subtle distinctions between inclusive and exclusive expressions.ExpressionGeneratedJavaParser. ConditionalExpression()// TODO: Examine further re: missing(?)LambdaExpressionor whether it is permissive enough to include it.ExpressionGeneratedJavaParser. ConditionalOrExpression()Note subtle distinctions between inclusive and exclusive expressions.ExpressionGeneratedJavaParser. DefaultValue()https://docs.oracle.com/javase/specs/jls/se15/html/jls-9.html#jls-9.6.2ExpressionGeneratedJavaParser. EqualityExpression()// Note that instanceof is aRelationalExpressionwithin the JLS, which differs from JavaParser https://docs.oracle.com/javase/specs/jls/se15/html/jls-15.html#jls-15.21ExpressionGeneratedJavaParser. ExclusiveOrExpression()Note subtle distinctions between inclusive and exclusive expressions.ExpressionGeneratedJavaParser. Expression()ExpressionGeneratedJavaParser. ExpressionParseStart()(package private) ExpressionGeneratedJavaParserBase. generateLambda(Expression ret, Statement lambdaBody)Workaround for rather complex ambiguity that lambda's createExpressionGeneratedJavaParser. InclusiveOrExpression()Note subtle distinctions between inclusive and exclusive expressions.ExpressionGeneratedJavaParser. InstanceOfExpression()// Note that instanceof is aRelationalExpressionwithin the JLS, which differs from JavaParser https://docs.oracle.com/javase/specs/jls/se15/html/jls-15.html#jls-15.20ExpressionGeneratedJavaParser. 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.1ExpressionGeneratedJavaParser. 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-ElementValueExpressionGeneratedJavaParser. MemberValueArrayInitializer()Note thatMemberValueArrayInitializer(JavaParser) is synonymous withElementValueArrayInitializer(JLS) https://docs.oracle.com/javase/specs/jls/se15/html/jls-9.html#jls-9.7.1ExpressionGeneratedJavaParser. MultiplicativeExpression()https://docs.oracle.com/javase/specs/jls/se15/html/jls-15.html#jls-15.17ExpressionGeneratedJavaParser. NullLiteral()https://docs.oracle.com/javase/specs/jls/se15/html/jls-3.html#jls-3.10.8ExpressionGeneratedJavaParser. PostfixExpression()https://docs.oracle.com/javase/specs/jls/se15/html/jls-15.html#jls-15.15ExpressionGeneratedJavaParser. PreDecrementExpression()https://docs.oracle.com/javase/specs/jls/se15/html/jls-15.html#jls-15.15ExpressionGeneratedJavaParser. PreIncrementExpression()https://docs.oracle.com/javase/specs/jls/se15/html/jls-15.html#jls-15.15ExpressionGeneratedJavaParser. PrimaryExpression()https://docs.oracle.com/javase/specs/jls/se15/html/jls-15.html#jls-15.8ExpressionGeneratedJavaParser. PrimaryExpressionWithoutSuperSuffix()// TODO: Unclear exactly which part of the JLS this relates to - a JavaParser-specific thing with no 1:1 mapping, perhaps?ExpressionGeneratedJavaParser. PrimaryPrefix()// TODO: Unclear exactly which part of the JLS this relates to - a JavaParser-specific thing with no 1:1 mapping, perhaps?ExpressionGeneratedJavaParser. PrimarySuffix(Expression scope)// TODO: Unclear exactly which part of the JLS this relates to - a JavaParser-specific thing with no 1:1 mapping, perhaps?ExpressionGeneratedJavaParser. PrimarySuffixWithoutSuper(Expression scope)// TODO: Unclear exactly which part of the JLS this relates to - a JavaParser-specific thing with no 1:1 mapping, perhaps?ExpressionGeneratedJavaParser. RelationalExpression()// Note that instanceof is aRelationalExpressionwithin the JLS, which differs from JavaParser https://docs.oracle.com/javase/specs/jls/se15/html/jls-15.html#jls-15.20ExpressionGeneratedJavaParser. Resource()// TODO: Examine more closely.ExpressionGeneratedJavaParser. ShiftExpression()https://docs.oracle.com/javase/specs/jls/se15/html/jls-15.html#jls-15.19ExpressionGeneratedJavaParser. UnaryExpression()https://docs.oracle.com/javase/specs/jls/se15/html/jls-15.html#jls-15.15ExpressionGeneratedJavaParser. UnaryExpressionNotPlusMinus()https://docs.oracle.com/javase/specs/jls/se15/html/jls-15.html#jls-15.15ExpressionGeneratedJavaParser. 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 ExpressionGeneratedJavaParser. AllocationExpression(Expression scope)https://docs.oracle.com/javase/specs/jls/se15/html/jls-15.html#jls-15.9(package private) ExpressionGeneratedJavaParserBase. generateLambda(Expression ret, Statement lambdaBody)Workaround for rather complex ambiguity that lambda's createExpressionGeneratedJavaParser. PrimarySuffix(Expression scope)// TODO: Unclear exactly which part of the JLS this relates to - a JavaParser-specific thing with no 1:1 mapping, perhaps?ExpressionGeneratedJavaParser. 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) NameGeneratedJavaParserBase. 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) ArrayCreationExprGeneratedJavaParserBase. 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 ExpressionArrayCreationLevel. dimensionMethods 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 ArrayCreationLevelArrayCreationLevel. 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 ExpressionAnnotationMemberDeclaration. defaultValueprivate ExpressionVariableDeclarator. initializerFields in com.github.javaparser.ast.body with type parameters of type Expression Modifier and Type Field Description private NodeList<Expression>EnumConstantDeclaration. argumentsMethods 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 AnnotationMemberDeclarationAnnotationMemberDeclaration. setDefaultValue(Expression defaultValue)Sets the default valueVariableDeclaratorVariableDeclarator. 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 EnumConstantDeclarationEnumConstantDeclaration. 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 classAnnotationExprA base class for the different types of annotations.classArrayAccessExprArray brackets [] being used to get a value from an array.classArrayCreationExprnew int[5][4][][]ornew int[][]{{1},{2,3}}.classArrayInitializerExprThe initialization of an array.classAssignExprAn assignment expression.classBinaryExprAn expression with an expression on the left, an expression on the right, and an operator in the middle.classBooleanLiteralExprThe boolean literals.classCastExprA typecast.classCharLiteralExprA literal character.classClassExprDefines an expression that accesses the class of a type.classComponentPatternExprPattern Matching in JavaclassConditionalExprThe ternary conditional expression.classDoubleLiteralExprA float or a double constant.classEnclosedExprAn expression between ( ).classFieldAccessExprAccess of a field of an object or a class.classInstanceOfExprThe instanceof statementclassIntegerLiteralExprAll ways to specify an int literal.classLambdaExprA lambda expressionclassLiteralExprA base class for all literal expressions.classLiteralStringValueExprAny literal value that is stored internally as a String.classLongLiteralExprAll ways to specify a long literal.classMarkerAnnotationExprAn annotation that uses only the annotation type name.classMatchAllPatternExprMatchAllPatternExpressions were added in JEP456.classMethodCallExprA method call on an object or a class.classMethodReferenceExprMethod reference expressions introduced in Java 8 specifically designed to simplify lambda Expressions.classNameExprWhenever a SimpleName is used in an expression, it is wrapped in NameExpr.classNormalAnnotationExprAn annotation that has one or more key-value pairs.@Mapping(a=5, d=10)classNullLiteralExprA literal "null".classObjectCreationExprA constructor call.classPatternExprPatternExpr serves as the abstract base class for typed pattern expressions.classRecordPatternExprRecord PatternsclassSingleMemberAnnotationExprAn annotation that has a single value.classStringLiteralExprA literal string.classSuperExprAn occurrence of the "super" keyword.classSwitchExprThe switch expressionclassTextBlockLiteralExprA text blockclassThisExprAn occurrence of the "this" keyword.classTypeExprThis class is just instantiated as scopes for MethodReferenceExpr nodes to encapsulate Types.classTypePatternExprThe instanceof statementclassUnaryExprAn expression where an operator is applied to a single expression.classVariableDeclarationExprA declaration of variables.Fields in com.github.javaparser.ast.expr declared as Expression Modifier and Type Field Description private ExpressionConditionalExpr. conditionprivate ExpressionConditionalExpr. elseExprprivate ExpressionCastExpr. expressionprivate ExpressionInstanceOfExpr. expressionprivate ExpressionUnaryExpr. expressionprivate ExpressionArrayAccessExpr. indexprivate ExpressionEnclosedExpr. innerprivate ExpressionBinaryExpr. leftprivate ExpressionSingleMemberAnnotationExpr. memberValueprivate ExpressionArrayAccessExpr. nameprivate ExpressionBinaryExpr. rightprivate ExpressionFieldAccessExpr. scopeprivate ExpressionMethodCallExpr. scopeprivate ExpressionMethodReferenceExpr. scopeprivate ExpressionObjectCreationExpr. scopeprivate ExpressionSwitchExpr. selectorprivate ExpressionAssignExpr. targetprivate ExpressionConditionalExpr. thenExprprivate ExpressionAssignExpr. valueprivate ExpressionMemberValuePair. valueFields in com.github.javaparser.ast.expr with type parameters of type Expression Modifier and Type Field Description private NodeList<Expression>MethodCallExpr. argumentsprivate NodeList<Expression>ObjectCreationExpr. argumentsstatic java.util.function.Function<Expression,Expression>Expression. EXCLUDE_ENCLOSED_EXPRAFunctionthat returns its argument (anExpression) when the argument is not anEnclosedExpr, otherwise the firstExpressiondown the argument's 'inner' path that is not anEnclosedExpr.static java.util.function.Function<Expression,Expression>Expression. EXCLUDE_ENCLOSED_EXPRAFunctionthat returns its argument (anExpression) when the argument is not anEnclosedExpr, otherwise the firstExpressiondown the argument's 'inner' path that is not anEnclosedExpr.private NodeList<Expression>ArrayInitializerExpr. valuesMethods in com.github.javaparser.ast.expr that return Expression Modifier and Type Method Description ExpressionExpression. clone()ExpressionConditionalExpr. getCondition()ExpressionConditionalExpr. getElseExpr()ExpressionCastExpr. getExpression()ExpressionInstanceOfExpr. getExpression()ExpressionUnaryExpr. getExpression()ExpressionArrayAccessExpr. getIndex()ExpressionEnclosedExpr. getInner()ExpressionBinaryExpr. getLeft()ExpressionSingleMemberAnnotationExpr. getMemberValue()ExpressionArrayAccessExpr. getName()ExpressionBinaryExpr. getRight()ExpressionFieldAccessExpr. getScope()ExpressionMethodReferenceExpr. getScope()ExpressionSwitchExpr. getSelector()ExpressionAssignExpr. getTarget()ExpressionConditionalExpr. getThenExpr()ExpressionAssignExpr. getValue()ExpressionMemberValuePair. 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 NormalAnnotationExprNormalAnnotationExpr. addPair(java.lang.String key, Expression value)adds a pair to this annotationConditionalExprConditionalExpr. setCondition(Expression condition)ConditionalExprConditionalExpr. setElseExpr(Expression elseExpr)CastExprCastExpr. setExpression(Expression expression)InstanceOfExprInstanceOfExpr. setExpression(Expression expression)UnaryExprUnaryExpr. setExpression(Expression expression)ArrayAccessExprArrayAccessExpr. setIndex(Expression index)EnclosedExprEnclosedExpr. setInner(Expression inner)Sets the inner expressionBinaryExprBinaryExpr. setLeft(Expression left)SingleMemberAnnotationExprSingleMemberAnnotationExpr. setMemberValue(Expression memberValue)ArrayAccessExprArrayAccessExpr. setName(Expression name)BinaryExprBinaryExpr. setRight(Expression right)FieldAccessExprFieldAccessExpr. setScope(Expression scope)Sets the scopeMethodCallExprMethodCallExpr. setScope(Expression scope)MethodReferenceExprMethodReferenceExpr. setScope(Expression scope)ObjectCreationExprObjectCreationExpr. setScope(Expression scope)Sets the scopeSwitchExprSwitchExpr. setSelector(Expression selector)AssignExprAssignExpr. setTarget(Expression target)ConditionalExprConditionalExpr. setThenExpr(Expression thenExpr)AssignExprAssignExpr. setValue(Expression value)MemberValuePairMemberValuePair. setValue(Expression value)Method parameters in com.github.javaparser.ast.expr with type arguments of type Expression Modifier and Type Method Description MethodCallExprMethodCallExpr. setArguments(NodeList<Expression> arguments)ObjectCreationExprObjectCreationExpr. setArguments(NodeList<Expression> arguments)ArrayInitializerExprArrayInitializerExpr. 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 ExpressionNodeWithArguments. getArgument(int i)ExpressionNodeWithCondition. getCondition()ExpressionNodeWithExpression. getExpression()ExpressionNodeWithScope. getScope()ExpressionSwitchNode. 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 ExpressionStmtNodeWithStatements. addAndGetStatement(Expression expr)default NNodeWithArguments. addArgument(Expression arg)default FieldDeclarationNodeWithMembers. addFieldWithInitializer(Type type, java.lang.String name, Expression initializer, Modifier.Keyword... modifiers)Add a field to this.default FieldDeclarationNodeWithMembers. 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 FieldDeclarationNodeWithMembers. addFieldWithInitializer(java.lang.String type, java.lang.String name, Expression initializer, Modifier.Keyword... modifiers)Add a field to this.default NNodeWithAnnotations. addSingleMemberAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> clazz, Expression expression)Annotates this with a single member annotationdefault NNodeWithAnnotations. addSingleMemberAnnotation(java.lang.String name, Expression expression)Annotates this with a single member annotationdefault NNodeWithStatements. addStatement(int index, Expression expr)default NNodeWithStatements. addStatement(Expression expr)default intNodeWithArguments. getArgumentPosition(Expression argument)default intNodeWithArguments. getArgumentPosition(Expression argument, java.util.function.Function<Expression,Expression> converter)default NNodeWithArguments. setArgument(int i, Expression arg)NNodeWithCondition. setCondition(Expression condition)NNodeWithExpression. setExpression(Expression expression)NNodeWithOptionalScope. setScope(Expression scope)NNodeWithScope. setScope(Expression scope)SwitchNodeSwitchNode. setSelector(Expression selector)Method parameters in com.github.javaparser.ast.nodeTypes with type arguments of type Expression Modifier and Type Method Description default intNodeWithArguments. getArgumentPosition(Expression argument, java.util.function.Function<Expression,Expression> converter)default intNodeWithArguments. getArgumentPosition(Expression argument, java.util.function.Function<Expression,Expression> converter)NNodeWithArguments. 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 ExpressionAssertStmt. checkprivate ExpressionForStmt. compareprivate ExpressionDoStmt. conditionprivate ExpressionIfStmt. conditionprivate ExpressionWhileStmt. conditionprivate ExpressionExplicitConstructorInvocationStmt. expressionprivate ExpressionExpressionStmt. expressionprivate ExpressionReturnStmt. expressionprivate ExpressionSynchronizedStmt. expressionprivate ExpressionThrowStmt. expressionprivate ExpressionYieldStmt. expressionprivate ExpressionSwitchEntry. guardprivate ExpressionForEachStmt. iterableprivate ExpressionAssertStmt. messageprivate ExpressionSwitchStmt. selectorFields in com.github.javaparser.ast.stmt with type parameters of type Expression Modifier and Type Field Description private NodeList<Expression>ExplicitConstructorInvocationStmt. argumentsprivate NodeList<Expression>ForStmt. initializationprivate NodeList<Expression>SwitchEntry. labelsprivate NodeList<Expression>TryStmt. resourcesprivate NodeList<Expression>ForStmt. updateMethods in com.github.javaparser.ast.stmt that return Expression Modifier and Type Method Description ExpressionAssertStmt. getCheck()ExpressionDoStmt. getCondition()ExpressionIfStmt. getCondition()ExpressionWhileStmt. getCondition()ExpressionExpressionStmt. getExpression()ExpressionSynchronizedStmt. getExpression()ExpressionThrowStmt. getExpression()ExpressionYieldStmt. getExpression()ExpressionForEachStmt. getIterable()ExpressionSwitchStmt. 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()java.util.Optional<Expression>SwitchEntry. getGuard()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 AssertStmtAssertStmt. setCheck(Expression check)ForStmtForStmt. setCompare(Expression compare)Sets the compareDoStmtDoStmt. setCondition(Expression condition)IfStmtIfStmt. setCondition(Expression condition)WhileStmtWhileStmt. setCondition(Expression condition)ExplicitConstructorInvocationStmtExplicitConstructorInvocationStmt. setExpression(Expression expression)Sets the expressionExpressionStmtExpressionStmt. setExpression(Expression expression)ReturnStmtReturnStmt. setExpression(Expression expression)Sets the expressionSynchronizedStmtSynchronizedStmt. setExpression(Expression expression)ThrowStmtThrowStmt. setExpression(Expression expression)YieldStmtYieldStmt. setExpression(Expression expression)Sets the labelSwitchEntrySwitchEntry. setGuard(Expression guard)ForEachStmtForEachStmt. setIterable(Expression iterable)AssertStmtAssertStmt. setMessage(Expression message)Sets the messageSwitchStmtSwitchStmt. setSelector(Expression selector)Method parameters in com.github.javaparser.ast.stmt with type arguments of type Expression Modifier and Type Method Description ExplicitConstructorInvocationStmtExplicitConstructorInvocationStmt. setArguments(NodeList<Expression> arguments)ForStmtForStmt. setInitialization(NodeList<Expression> initialization)SwitchEntrySwitchEntry. setLabels(NodeList<Expression> labels)Sets the labelTryStmtTryStmt. setResources(NodeList<Expression> resources)ForStmtForStmt. 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.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 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)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. -
Uses of Expression in com.github.javaparser.printer
Methods in com.github.javaparser.printer with type parameters of type Expression Modifier and Type Method Description protected <T extends Expression>
voidDefaultPrettyPrinterVisitor. printArguments(NodeList<T> args, java.lang.Void arg)Outputs arguments to a method/constructor call.protected <T extends Expression>
voidPrettyPrintVisitor. printArguments(NodeList<T> 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 ResolvedTypeSymbolResolver. 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 ExpressionResolvedAnnotationMemberDeclaration. getDefaultValue() -
Uses of Expression in com.github.javaparser.symbolsolver
Methods in com.github.javaparser.symbolsolver with parameters of type Expression Modifier and Type Method Description ResolvedTypeJavaSymbolSolver. calculateType(Expression expression) -
Uses of Expression in com.github.javaparser.symbolsolver.javaparsermodel
Methods in com.github.javaparser.symbolsolver.javaparsermodel with parameters of type Expression Modifier and Type Method Description private static intTypeExtractor. getParamPos(Expression node)SymbolReference<? extends ResolvedValueDeclaration>JavaParserFacade. solve(Expression expr)Method parameters in com.github.javaparser.symbolsolver.javaparsermodel with type arguments of type Expression Modifier and Type Method Description private voidJavaParserFacade. solveArguments(Node node, NodeList<Expression> args, boolean solveLambdas, java.util.List<ResolvedType> argumentTypes, java.util.List<LambdaArgumentTypePlaceholder> placeholders) -
Uses of Expression in com.github.javaparser.symbolsolver.javaparsermodel.contexts
Classes in com.github.javaparser.symbolsolver.javaparsermodel.contexts with type parameters of type Expression Modifier and Type Class Description classExpressionContext<N extends Expression>Method parameters in com.github.javaparser.symbolsolver.javaparsermodel.contexts with type arguments of type Expression Modifier and Type Method Description protected java.util.Collection<ResolvedReferenceTypeDeclaration>AbstractJavaParserContext. findTypeDeclarations(java.util.Optional<Expression> optScope) -
Uses of Expression in com.github.javaparser.symbolsolver.javaparsermodel.declarations
Methods in com.github.javaparser.symbolsolver.javaparsermodel.declarations that return Expression Modifier and Type Method Description ExpressionJavaParserAnnotationMemberDeclaration. getDefaultValue() -
Uses of Expression in com.github.javaparser.symbolsolver.javassistmodel
Fields in com.github.javaparser.symbolsolver.javassistmodel with type parameters of type Expression Modifier and Type Field Description private static java.util.Map<java.lang.Class<? extends javassist.bytecode.annotation.MemberValue>,java.util.function.Function<javassist.bytecode.annotation.MemberValue,? extends Expression>>JavassistAnnotationMemberDeclaration. memberValueAsExressionConverterMethods in com.github.javaparser.symbolsolver.javassistmodel that return Expression Modifier and Type Method Description ExpressionJavassistAnnotationMemberDeclaration. getDefaultValue() -
Uses of Expression in com.github.javaparser.symbolsolver.reflectionmodel
Fields in com.github.javaparser.symbolsolver.reflectionmodel with type parameters of type Expression Modifier and Type Field Description private static java.util.Map<java.lang.Class<?>,java.util.function.Function<java.lang.Object,? extends Expression>>ReflectionAnnotationMemberDeclaration. valueAsExpressionConvertersMethods in com.github.javaparser.symbolsolver.reflectionmodel that return Expression Modifier and Type Method Description ExpressionReflectionAnnotationMemberDeclaration. getDefaultValue()private ExpressionReflectionAnnotationMemberDeclaration. transformDefaultValue(java.lang.Object value) -
Uses of Expression in com.github.javaparser.symbolsolver.resolution.typeinference
Methods in com.github.javaparser.symbolsolver.resolution.typeinference with parameters of type Expression Modifier and Type Method Description static booleanTypeHelper. isCompatibleInALooseInvocationContext(TypeSolver typeSolver, Expression expression, ResolvedType t)see https://docs.oracle.com/javase/specs/jls/se8/html/jls-5.html#jls-5.3static booleanTypeHelper. isCompatibleInAStrictInvocationContext(Expression expression, ResolvedType t)see https://docs.oracle.com/javase/specs/jls/se8/html/jls-5.html#jls-5.3private booleanTypeInference. isPertinentToApplicability(Expression argument)Method parameters in com.github.javaparser.symbolsolver.resolution.typeinference with type arguments of type Expression Modifier and Type Method Description java.util.Optional<InstantiationSet>TypeInference. instantiationInference(java.util.List<Expression> argumentExpressions, ResolvedMethodDeclaration methodDeclaration) -
Uses of Expression in com.github.javaparser.symbolsolver.resolution.typeinference.constraintformulas
Fields in com.github.javaparser.symbolsolver.resolution.typeinference.constraintformulas declared as Expression Modifier and Type Field Description private ExpressionExpressionCompatibleWithType. expressionMethods in com.github.javaparser.symbolsolver.resolution.typeinference.constraintformulas that return types with arguments of type Expression Modifier and Type Method Description private java.util.List<Expression>ExpressionCompatibleWithType. getAllReturnExpressions(BlockStmt blockStmt)private java.util.List<Expression>ExpressionCompatibleWithType. getResultExpressions(BlockStmt blockStmt)Methods in com.github.javaparser.symbolsolver.resolution.typeinference.constraintformulas with parameters of type Expression Modifier and Type Method Description private booleanExpressionCompatibleWithType. isCompatibleInAssignmentContext(Expression expression, ResolvedType type, TypeSolver typeSolver)Constructors in com.github.javaparser.symbolsolver.resolution.typeinference.constraintformulas with parameters of type Expression Constructor Description ExpressionCompatibleWithType(TypeSolver typeSolver, Expression expression, ResolvedType T)
-