Class Expressions
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionstatic BinaryExpressionadd(Expression left, Expression right) Creates a BinaryExpression that represents an arithmetic addition operation that does not have overflow checking.static BinaryExpressionadd(Expression left, Expression right, Method method) Creates a BinaryExpression that represents an arithmetic addition operation that does not have overflow checking.static BinaryExpressionaddAssign(Expression left, Expression right) Creates a BinaryExpression that represents an addition assignment operation that does not have overflow checking.static BinaryExpressionaddAssign(Expression left, Expression right, Method method) Creates a BinaryExpression that represents an addition assignment operation that does not have overflow checking.static BinaryExpressionaddAssign(Expression left, Expression right, Method method, LambdaExpression lambdaLeft, LambdaExpression lambdaRight) Creates a BinaryExpression that represents an addition assignment operation that does not have overflow checking.static BinaryExpressionaddAssignChecked(Expression left, Expression right) Creates a BinaryExpression that represents an addition assignment operation that has overflow checking.static BinaryExpressionaddAssignChecked(Expression left, Expression right, Method method) Creates a BinaryExpression that represents an addition assignment operation that has overflow checking.static BinaryExpressionaddAssignChecked(Expression left, Expression right, Method method, LambdaExpression lambdaExpression) Creates a BinaryExpression that represents an addition assignment operation that has overflow checking.static BinaryExpressionaddChecked(Expression left, Expression right) Creates a BinaryExpression that represents an arithmetic addition operation that has overflow checking.static BinaryExpressionaddChecked(Expression left, Expression right, Method method) Creates a BinaryExpression that represents an arithmetic addition operation that has overflow checking.static BinaryExpressionand(Expression left, Expression right) Creates a BinaryExpression that represents a bitwise AND operation.static BinaryExpressionand(Expression left, Expression right, Method method) Creates a BinaryExpression that represents a bitwise AND operation.static BinaryExpressionandAlso(Expression left, Expression right) Creates a BinaryExpression that represents a conditional AND operation that evaluates the second operand only if the first operand evaluates to true.static BinaryExpressionandAlso(Expression left, Expression right, Method method) Creates a BinaryExpression that represents a conditional AND operation that evaluates the second operand only if the first operand is resolved to true.static BinaryExpressionandAssign(Expression left, Expression right) Creates a BinaryExpression that represents a bitwise AND assignment operation.static BinaryExpressionandAssign(Expression left, Expression right, Method method) Creates a BinaryExpression that represents a bitwise AND assignment operation.static BinaryExpressionandAssign(Expression left, Expression right, Method method, LambdaExpression lambdaExpression) Creates a BinaryExpression that represents a bitwise AND assignment operation.static IndexExpressionarrayIndex(Expression array, Expression indexExpression) Creates an expression that represents applying an array index operator to an array of rank one.static UnaryExpressionarrayLength(Expression array) Creates a UnaryExpression that represents an expression for obtaining the length of a one-dimensional array.static BinaryExpressionassign(Expression left, Expression right) Creates a BinaryExpression that represents an assignment operation.static MemberAssignmentbind(Member member, Expression right) Creates a MemberAssignment that represents the initialization of a field or property.static MemberAssignmentbind(Method method, Expression expression) Creates a MemberAssignment that represents the initialization of a member by using a property accessor method.static BlockStatementCreates a BlockExpression that contains the given statements.static BlockStatementCreates a BlockExpression that contains the given expressions, has no variables and has specific result type.static BlockStatementCreates a BlockExpression that contains the given statements and has a specific result type, using varargs.static BlockStatementCreates a BlockExpression that contains the given statements, using varargs.static Expressionbox(Expression expression) Converts e.g.static Expressionbox(Expression expression, Primitive primitive) Returns an expression to box the value of a primitive expression.static GotoStatementbreak_(@Nullable LabelTarget labelTarget) Creates a GotoExpression representing a break statement.static GotoStatementbreak_(@Nullable LabelTarget labelTarget, Expression expression) Creates a GotoExpression representing a break statement.static GotoStatementbreak_(LabelTarget labelTarget, Type type) Creates a GotoExpression representing a break statement with the specified type.static GotoStatementbreak_(LabelTarget labelTarget, Expression expression, Type type) Creates a GotoExpression representing a break statement with the specified type.static MethodCallExpressioncall(Method method, Iterable<? extends Expression> arguments) Creates a MethodCallExpression that represents a call to a static method that has arguments.static MethodCallExpressioncall(Method method, Expression... arguments) Creates a MethodCallExpression that represents a call to a static method that has arguments, using varargs.static MethodCallExpressioncall(Type type, String methodName, Iterable<? extends Expression> arguments) Creates a MethodCallExpression that represents a call to a static method by calling the appropriate factory method.static MethodCallExpressioncall(Type type, String methodName, Expression... arguments) Creates a MethodCallExpression that represents a call to a static method by calling the appropriate factory method, using varargs.static MethodCallExpressioncall(Type returnType, @Nullable Expression expression, Method method, Iterable<? extends Expression> arguments) Creates a MethodCallExpression that represents a call to a method that takes arguments, with an explicit return type.static MethodCallExpressioncall(Type returnType, @Nullable Expression expression, Method method, Expression... arguments) Creates a MethodCallExpression that represents a call to a method that takes arguments, with an explicit return type, with varargs.static MethodCallExpressioncall(@Nullable Expression expression, Method method, Iterable<? extends Expression> arguments) Creates a MethodCallExpression that represents a call to a method that takes arguments.static MethodCallExpressioncall(@Nullable Expression expression, Method method, Expression... arguments) Creates a MethodCallExpression that represents a call to a method that takes arguments, using varargs.static MethodCallExpressioncall(Expression target, String methodName, Iterable<? extends Expression> arguments) Creates a MethodCallExpression that represents a call to an instance method by calling the appropriate factory method.static MethodCallExpressioncall(Expression target, String methodName, Expression... arguments) Creates a MethodCallExpression that represents a call to an instance method by calling the appropriate factory method, using varargs.static CatchBlockcatch_(ParameterExpression parameter, Statement statement) Creates a CatchBlock representing a catch statement with a reference to the caught Exception object for use in the handler body.static ClassDeclarationclassDecl(int modifier, String name, @Nullable Type extended, List<Type> implemented, List<MemberDeclaration> memberDeclarations) Declares a class.static voidCreates a DebugInfoExpression for clearing a sequence point.static BinaryExpressioncoalesce(Expression left, Expression right) Creates a BinaryExpression that represents a coalescing operation.static BinaryExpressioncoalesce(Expression left, Expression right, LambdaExpression lambdaExpression) Creates a BinaryExpression that represents a coalescing operation, given a conversion function.static Expressioncondition(Expression test, Expression ifTrue, Expression ifFalse) Creates a ConditionalExpression that represents a conditional statement.static ConditionalExpressioncondition(Expression test, Expression ifTrue, Expression ifFalse, Type type) Creates a ConditionalExpression that represents a conditional statement.static ConstantExpressionCreates a ConstantExpression that has the Value property set to the specified value.static ConstantExpressionCreates a ConstantExpression that has the Value and Type properties set to the specified values.static ConstantExpressionconstant(@Nullable Object value, Type type, RoundingMode roundingMode) Creates a ConstantExpression that has the Value 、Type 、RoundingMode properties set to the specified values.static ConstructorDeclarationconstructorDecl(int modifier, Type declaredAgainst, Iterable<? extends ParameterExpression> parameters, BlockStatement body) Declares a constructor.static GotoStatementcontinue_(LabelTarget labelTarget) Creates a GotoExpression representing a continue statement.static GotoStatementcontinue_(LabelTarget labelTarget, Type type) Creates a GotoExpression representing a continue statement with the specified type.static UnaryExpressionconvert_(Expression expression, Type type) Creates a UnaryExpression that represents a type conversion operation.static UnaryExpressionconvert_(Expression expression, Type type, Method method) Creates a UnaryExpression that represents a conversion operation for which the implementing method is specified.static ExpressionconvertChecked(Expression expression, Type type) Creates a UnaryExpression that represents a conversion operation that throws an exception if the target type is overflowed.static UnaryExpressionconvertChecked_(Expression expression, Type type, Method method) Creates a UnaryExpression that represents a conversion operation that throws an exception if the target type is overflowed and for which the implementing method is specified.static voidCreates a DebugInfoExpression with the specified span.static DeclarationStatementdeclare(int modifiers, String name, Expression initializer) Creates an expression that declares and initializes a variable.static DeclarationStatementdeclare(int modifiers, ParameterExpression parameter, @Nullable Expression initializer) Creates a statement that declares a variable.static UnaryExpressiondecrement(Expression expression) Creates a UnaryExpression that represents the decrementing of the expression by 1.static UnaryExpressiondecrement(Expression expression, Method method) Creates a UnaryExpression that represents the decrementing of the expression by 1.static DefaultExpressiondefault_()Creates a DefaultExpression that has the Type property set to the specified type.static BinaryExpressiondivide(Expression left, Expression right) Creates a BinaryExpression that represents an arithmetic division operation.static BinaryExpressiondivide(Expression left, Expression right, Method method) Creates a BinaryExpression that represents an arithmetic division operation.static BinaryExpressiondivideAssign(Expression left, Expression right) Creates a BinaryExpression that represents a division assignment operation that does not have overflow checking.static BinaryExpressiondivideAssign(Expression left, Expression right, Method method) Creates a BinaryExpression that represents a division assignment operation that does not have overflow checking.static BinaryExpressiondivideAssign(Expression left, Expression right, Method method, LambdaExpression lambdaExpression) Creates a BinaryExpression that represents a division assignment operation that does not have overflow checking.static DynamicExpressiondynamic(CallSiteBinder binder, Type type, Iterable<? extends Expression> expressions) Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder.static DynamicExpressiondynamic(CallSiteBinder binder, Type type, Expression... expression) Creates aDynamicExpressionthat represents a dynamic operation bound by the providedCallSiteBinder, using varargs.static ElementInitelementInit(Method method, Iterable<? extends Expression> expressions) Creates anElementInit, given anIterable<T>as the second argument.static ElementInitelementInit(Method method, Expression... expressions) Creates an ElementInit, given an array of values as the second argument, using varargs.static DefaultExpressionempty()Creates an empty expression that has Void type.static BinaryExpressionequal(Expression left, Expression right) Creates a BinaryExpression that represents an equality comparison.static BinaryExpressionequal(Expression expression0, Expression expression1, boolean liftToNull, Method method) Creates a BinaryExpression that represents an equality comparison.static @Nullable ObjectEvaluates an expression and returns the result.static BinaryExpressionexclusiveOr(Expression left, Expression right) Creates a BinaryExpression that represents a bitwise XOR operation, using op_ExclusiveOr for user-defined types.static BinaryExpressionexclusiveOr(Expression left, Expression right, Method method) Creates a BinaryExpression that represents a bitwise XOR operation, using op_ExclusiveOr for user-defined types.static BinaryExpressionexclusiveOrAssign(Expression left, Expression right) Creates a BinaryExpression that represents a bitwise XOR assignment operation, using op_ExclusiveOr for user-defined types.static BinaryExpressionexclusiveOrAssign(Expression left, Expression right, Method method) Creates a BinaryExpression that represents a bitwise XOR assignment operation, using op_ExclusiveOr for user-defined types.static BinaryExpressionexclusiveOrAssign(Expression left, Expression right, Method method, LambdaExpression lambdaExpression) Creates a BinaryExpression that represents a bitwise XOR assignment operation, using op_ExclusiveOr for user-defined types.static MemberExpressionfield(@Nullable Expression expression, Field field) Creates a MemberExpression that represents accessing a field.static MemberExpressionfield(@Nullable Expression expression, Type type, String fieldName) Creates a MemberExpression that represents accessing a field.static MemberExpressionfield(@Nullable Expression expression, PseudoField field) Creates a MemberExpression that represents accessing a field.static MemberExpressionfield(Expression expression, String fieldName) Creates a MemberExpression that represents accessing a field given the name of the field.static FieldDeclarationfieldDecl(int modifier, ParameterExpression parameter) Declares a field.static FieldDeclarationfieldDecl(int modifier, ParameterExpression parameter, @Nullable Expression initializer) Declares a field with an initializer.static ExpressionfoldAnd(List<Expression> conditions) Combines a list of expressions using AND.static ExpressionfoldOr(List<Expression> conditions) Combines a list of expressions using OR.static ForStatementfor_(Iterable<? extends DeclarationStatement> declarations, @Nullable Expression condition, @Nullable Expression post, Statement body) Creates a LoopExpression with the given body.static ForStatementfor_(DeclarationStatement declaration, @Nullable Expression condition, @Nullable Expression post, Statement body) Creates a LoopExpression with the given body.static ForEachStatementforEach(ParameterExpression parameter, Expression iterable, Statement body) Creates a ForEachExpression with the given body.static ExpressionfromStatement(Statement statement) Create an expression from a statement.static ClassgetActionType(Class... typeArgs) Creates a Type object that represents a generic System.Action delegate type that has specific type arguments.static ClassgetDelegateType(Class... typeArgs) Gets a Type object that represents a generic System.Func or System.Action delegate type that has specific type arguments.static ClassgetFuncType(Class... typeArgs) Creates a Type object that represents a generic System.Func delegate type that has specific type arguments.static GotoStatementgoto_(LabelTarget labelTarget) Creates a GotoExpression representing a "go to" statement.static GotoStatementgoto_(LabelTarget labelTarget, Type type) Creates a GotoExpression representing a "go to" statement with the specified type.static GotoStatementgoto_(LabelTarget labelTarget, Expression expression) Creates a GotoExpression representing a "go to" statement.static GotoStatementgoto_(LabelTarget labelTarget, Expression expression, Type type) Creates a GotoExpression representing a "go to" statement with the specified type.static BinaryExpressiongreaterThan(Expression left, Expression right) Creates a BinaryExpression that represents a "greater than" numeric comparison.static BinaryExpressiongreaterThan(Expression left, Expression right, boolean liftToNull, Method method) Creates a BinaryExpression that represents a "greater than" numeric comparison.static BinaryExpressiongreaterThanOrEqual(Expression left, Expression right) Creates a BinaryExpression that represents a "greater than or equal" numeric comparison.static BinaryExpressiongreaterThanOrEqual(Expression left, Expression right, boolean liftToNull, Method method) Creates a BinaryExpression that represents a "greater than or equal" numeric comparison.static ConditionalStatementifThen(Expression test, Node ifTrue) Creates a ConditionalExpression that represents a conditional block with an if statement.static ConditionalStatementifThenElse(Iterable<? extends Node> nodes) Creates a ConditionalExpression that represents a conditional block with if and else statements:if (test) stmt1 [ else if (test2) stmt2 ]...static ConditionalStatementifThenElse(Expression test, Node... nodes) Creates a ConditionalExpression that represents a conditional block with if and else statements:if (test) stmt1 [ else if (test2) stmt2 ]...static ConditionalStatementifThenElse(Expression test, Node ifTrue, Node ifFalse) Creates a ConditionalExpression that represents a conditional block with if and else statements.static UnaryExpressionincrement(Expression expression) Creates a UnaryExpression that represents the incrementing of the expression value by 1.static UnaryExpressionincrement(Expression expression, Method method) Creates a UnaryExpression that represents the incrementing of the expression by 1.static InvocationExpressioninvoke(Expression expression, Iterable<? extends Expression> arguments) Creates an InvocationExpression that applies a delegate or lambda expression to a list of argument expressions.static InvocationExpressioninvoke(Expression expression, Expression... arguments) Creates an InvocationExpression that applies a delegate or lambda expression to a list of argument expressions, using varargs.static booleanReturns whether an expression always evaluates to null.static UnaryExpressionisFalse(Expression expression) Returns whether the expression evaluates to false.static UnaryExpressionisFalse(Expression expression, Method method) Returns whether the expression evaluates to false.static UnaryExpressionisTrue(Expression expression) Returns whether the expression evaluates to true.static UnaryExpressionisTrue(Expression expression, Method method) Returns whether the expression evaluates to true.static LabelTargetlabel()Creates a LabelTarget representing a label with X type and no name.static LabelTargetCreates a LabelTarget representing a label with the given type.static LabelTargetCreates a LabelTarget representing a label with the given type and name.static LabelTargetCreates a LabelTarget representing a label with X type and the given name.static LabelStatementlabel(LabelTarget labelTarget) Creates a LabelExpression representing a label without a default value.static LabelStatementlabel(LabelTarget labelTarget, Expression expression) Creates a LabelExpression representing a label with the given default value.static <F extends Function<?>>
 FunctionExpression<F>lambda(F function) Creates a FunctionExpression from an actual function.static <T,F extends Function<? extends T>> 
 FunctionExpression<F>lambda(Class<F> type, BlockStatement body, Iterable<? extends ParameterExpression> parameters) Creates a LambdaExpression by first constructing a delegate type.static <T,F extends Function<? extends T>> 
 FunctionExpression<F>lambda(Class<F> type, BlockStatement body, ParameterExpression... parameters) Creates a LambdaExpression by first constructing a delegate type, using varargs.static <T,F extends Function<? extends T>> 
 FunctionExpression<F>lambda(Class<F> type, Expression body, Iterable<? extends ParameterExpression> parameters) Creates a LambdaExpression by first constructing a delegate type.static <T,F extends Function<? extends T>> 
 FunctionExpression<F>lambda(Class<F> type, Expression body, ParameterExpression... parameters) Creates a LambdaExpression by first constructing a delegate type, using varargs.static <F extends Function<?>>
 FunctionExpression<F>lambda(BlockStatement body, Iterable<? extends ParameterExpression> parameters) Creates a LambdaExpression by first constructing a delegate type.static <F extends Function<?>>
 FunctionExpression<F>lambda(BlockStatement body, ParameterExpression... parameters) Creates a LambdaExpression by first constructing a delegate type, using varargs.static <F extends Function<?>>
 FunctionExpression<F>lambda(Expression body, Iterable<? extends ParameterExpression> parameters) Creates an Expression where the delegate typeFis known at compile time.static <F extends Function<?>>
 FunctionExpression<F>lambda(Expression body, ParameterExpression... parameters) Creates an Expression where the delegate typeFis known at compile time, using varargs.static BinaryExpressionleftShift(Expression left, Expression right) Creates a BinaryExpression that represents a bitwise left-shift operation.static BinaryExpressionleftShift(Expression left, Expression right, Method method) Creates a BinaryExpression that represents a bitwise left-shift operation.static BinaryExpressionleftShiftAssign(Expression left, Expression right) Creates a BinaryExpression that represents a bitwise left-shift assignment operation.static BinaryExpressionleftShiftAssign(Expression left, Expression right, Method method) Creates a BinaryExpression that represents a bitwise left-shift assignment operation.static BinaryExpressionleftShiftAssign(Expression left, Expression right, Method method, LambdaExpression lambdaExpression) Creates a BinaryExpression that represents a bitwise left-shift assignment operation.static BinaryExpressionlessThan(Expression left, Expression right) Creates a BinaryExpression that represents a "less than" numeric comparison.static BinaryExpressionlessThan(Expression left, Expression right, boolean liftToNull, Method method) Creates a BinaryExpression that represents a "less than" numeric comparison.static BinaryExpressionlessThanOrEqual(Expression left, Expression right) Creates a BinaryExpression that represents a " less than or equal" numeric comparison.static BinaryExpressionlessThanOrEqual(Expression left, Expression right, boolean liftToNull, Method method) Creates a BinaryExpression that represents a "less than or equal" numeric comparison.static <T> Expressions.FluentList<T>list()Creates an empty fluent list.static <T> Expressions.FluentList<T>Creates a fluent list with elements from the given collection.static <T> Expressions.FluentList<T>list(T... ts) Creates a fluent list with given elements.static MemberListBindinglistBind(Member member, Iterable<? extends ElementInit> elementInits) Creates a MemberListBinding where the member is a field or property.static MemberListBindinglistBind(Member member, ElementInit... elementInits) Creates a MemberListBinding where the member is a field or property, using varargs.static MemberListBindinglistBind(Method method, Iterable<? extends ElementInit> elementInits) Creates a MemberListBinding based on a specified property accessor method.static MemberListBindinglistBind(Method method, ElementInit... elementInits) Creates a MemberListBinding object based on a specified property accessor method, using varargs.static ListInitExpressionlistInit(NewExpression newExpression, Iterable<? extends ElementInit> elementInits) Creates a ListInitExpression that uses specified ElementInit objects to initialize a collection.static ListInitExpressionlistInit(NewExpression newExpression, Method method, Iterable<? extends Expression> arguments) Creates a ListInitExpression that uses a specified method to add elements to a collection.static ListInitExpressionlistInit(NewExpression newExpression, Method method, Expression... arguments) Creates a ListInitExpression that uses a specified method to add elements to a collection, using varargs.static ListInitExpressionlistInit(NewExpression newExpression, ElementInit... elementInits) Creates a ListInitExpression that uses specified ElementInit objects to initialize a collection, using varargs.static ListInitExpressionlistInit(NewExpression newExpression, Expression... arguments) Creates a ListInitExpression that uses a method named "Add" to add elements to a collection, using varargs.static ListInitExpressionlistInitE(NewExpression newExpression, Iterable<? extends Expression> arguments) Creates a ListInitExpression that uses a method named "Add" to add elements to a collection.static BinaryExpressionmakeBinary(ExpressionType binaryType, Expression left, Expression right) Creates a BinaryExpression, given the left and right operands, by calling an appropriate factory method.static BinaryExpressionmakeBinary(ExpressionType binaryType, Expression left, Expression right, boolean liftToNull, Method method) Creates a BinaryExpression, given the left operand, right operand and implementing method, by calling the appropriate factory method.static BinaryExpressionmakeBinary(ExpressionType binaryType, Expression left, Expression right, boolean liftToNull, Method method, LambdaExpression lambdaExpression) Creates a BinaryExpression, given the left operand, right operand, implementing method and type conversion function, by calling the appropriate factory method.static CatchBlockmakeCatchBlock(Type type, ParameterExpression variable, Expression body, Expression filter) Creates a CatchBlock representing a catch statement with the specified elements.static DynamicExpressionmakeDynamic(Type type, CallSiteBinder binder, Iterable<? extends Expression> arguments) Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder.static DynamicExpressionmakeDynamic(Type type, CallSiteBinder binder, Expression... arguments) Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder, using varargs.static GotoStatementmakeGoto(GotoExpressionKind kind, @Nullable LabelTarget labelTarget, @Nullable Expression expression) static GotoStatementmakeGoto(GotoExpressionKind kind, LabelTarget target, Expression value, Type type) Creates a GotoExpression representing a jump of the specified GotoExpressionKind.static MemberExpressionmakeMemberAccess(@Nullable Expression expression, PseudoField member) Creates a MemberExpression that represents accessing a field.static TernaryExpressionmakeTernary(ExpressionType ternaryType, Expression e0, Expression e1, Expression e2) Creates a TernaryExpression, given the left and right operands, by calling an appropriate factory method.static TryStatementmakeTry(Type type, Expression body, Expression finally_, Expression fault, Iterable<? extends CatchBlock> handlers) Creates a TryExpression representing a try block with the specified elements.static TryStatementmakeTry(Type type, Expression body, Expression finally_, Expression fault, CatchBlock... handlers) Creates a TryExpression representing a try block with the specified elements, using varargs.static UnaryExpressionmakeUnary(ExpressionType expressionType, Expression expression) Creates a UnaryExpression, given an operand, by calling the appropriate factory method.static UnaryExpressionmakeUnary(ExpressionType expressionType, Expression expression, Type type, @Nullable Method method) Creates a UnaryExpression, given an operand and implementing method, by calling the appropriate factory method.static MemberMemberBindingmemberBind(Member member, Iterable<? extends MemberBinding> bindings) Creates a MemberMemberBinding that represents the recursive initialization of members of a field or property.static MemberMemberBindingmemberBind(Member member, MemberBinding... bindings) Creates a MemberMemberBinding that represents the recursive initialization of members of a field or property, using varargs.static MemberMemberBindingmemberBind(Method method, Iterable<? extends MemberBinding> bindings) Creates a MemberMemberBinding that represents the recursive initialization of members of a member that is accessed by using a property accessor method.static MemberMemberBindingmemberBind(Method method, MemberBinding... bindings) Creates a MemberMemberBinding that represents the recursive initialization of members of a member that is accessed by using a property accessor method, using varargs.static MemberInitExpressionmemberInit(NewExpression newExpression, Iterable<? extends MemberBinding> bindings) Represents an expression that creates a new object and initializes a property of the object.static MemberInitExpressionmemberInit(NewExpression newExpression, MemberBinding... bindings) Represents an expression that creates a new object and initializes a property of the object, using varargs.static MethodDeclarationmethodDecl(int modifier, Type resultType, String name, Iterable<? extends ParameterExpression> parameters, BlockStatement body) Declares a method.static BinaryExpressionmodulo(Expression left, Expression right) Creates a BinaryExpression that represents an arithmetic remainder operation.static BinaryExpressionmodulo(Expression left, Expression right, Method method) Creates a BinaryExpression that represents an arithmetic remainder operation.static BinaryExpressionmoduloAssign(Expression left, Expression right) Creates a BinaryExpression that represents a remainder assignment operation.static BinaryExpressionmoduloAssign(Expression left, Expression right, Method method) Creates a BinaryExpression that represents a remainder assignment operation.static BinaryExpressionmoduloAssign(Expression left, Expression right, Method method, LambdaExpression lambdaExpression) Creates a BinaryExpression that represents a remainder assignment operation.static BinaryExpressionmultiply(Expression left, Expression right) Creates a BinaryExpression that represents an arithmetic multiplication operation that does not have overflow checking.static BinaryExpressionmultiply(Expression left, Expression right, Method method) Creates a BinaryExpression that represents an arithmetic multiplication operation that does not have overflow checking.static BinaryExpressionmultiplyAssign(Expression left, Expression right) Creates a BinaryExpression that represents a multiplication assignment operation that does not have overflow checking.static BinaryExpressionmultiplyAssign(Expression left, Expression right, Method method) Creates a BinaryExpression that represents a multiplication assignment operation that does not have overflow checking.static BinaryExpressionmultiplyAssign(Expression left, Expression right, Method method, LambdaExpression lambdaExpression) Creates a BinaryExpression that represents a multiplication assignment operation that does not have overflow checking.static BinaryExpressionmultiplyAssignChecked(Expression left, Expression right) Creates a BinaryExpression that represents a multiplication assignment operation that has overflow checking.static BinaryExpressionmultiplyAssignChecked(Expression left, Expression right, Method method) Creates a BinaryExpression that represents a multiplication assignment operation that has overflow checking.static BinaryExpressionmultiplyAssignChecked(Expression left, Expression right, Method method, LambdaExpression lambdaExpression) Creates a BinaryExpression that represents a multiplication assignment operation that has overflow checking.static BinaryExpressionmultiplyChecked(Expression left, Expression right) Creates a BinaryExpression that represents an arithmetic multiplication operation that has overflow checking.static BinaryExpressionmultiplyChecked(Expression left, Expression right, Method method) Creates a BinaryExpression that represents an arithmetic multiplication operation that has overflow checking.static UnaryExpressionnegate(Expression expression) Creates a UnaryExpression that represents an arithmetic negation operation.static UnaryExpressionnegate(Expression expression, Method method) Creates a UnaryExpression that represents an arithmetic negation operation.static UnaryExpressionnegateChecked(Expression expression) Creates a UnaryExpression that represents an arithmetic negation operation that has overflow checking.static UnaryExpressionnegateChecked(Expression expression, Method method) Creates a UnaryExpression that represents an arithmetic negation operation that has overflow checking.static NewExpressionnew_(Constructor constructor) Creates a NewExpression that represents calling the specified constructor that takes no arguments.static NewExpressionnew_(Constructor constructor, Iterable<? extends Expression> expressions) Creates a NewExpression that represents calling the specified constructor with the specified arguments.static NewExpressionnew_(Constructor constructor, Iterable<? extends Expression> expressions, Iterable<? extends MemberDeclaration> memberDeclarations) Creates a NewExpression that represents calling the specified constructor with the specified arguments.static NewExpressionnew_(Constructor constructor, Iterable<? extends Expression> expressions, MemberDeclaration... memberDeclarations) Creates a NewExpression that represents calling the specified constructor with the specified arguments, using varargs.static NewExpressionnew_(Constructor constructor, Expression... expressions) Creates a NewExpression that represents calling the specified constructor with the specified arguments, using varargs.static NewExpressionCreates a NewExpression that represents calling the parameterless constructor of the specified type.static NewExpressionnew_(Type type, Iterable<? extends Expression> arguments) Creates a NewExpression that represents calling the constructor of the specified type whose parameters are assignable from the specified arguments.static NewExpressionnew_(Type type, Iterable<? extends Expression> arguments, @Nullable Iterable<? extends MemberDeclaration> memberDeclarations) Creates a NewExpression that represents calling the constructor of the specified type whose parameters are assignable from the specified arguments.static NewExpressionnew_(Type type, Iterable<? extends Expression> arguments, MemberDeclaration... memberDeclarations) Creates a NewExpression that represents calling the constructor of the specified type whose parameters are assignable from the specified arguments, using varargs.static NewExpressionnew_(Type type, Expression... arguments) Creates a NewExpression that represents calling the constructor of the specified type whose parameters are assignable from the specified arguments, using varargs.static NewArrayExpressionnewArrayBounds(Type type, int dimension, @Nullable Expression bound) Creates a NewArrayExpression that represents creating an array that has a specified rank.static NewArrayExpressionnewArrayInit(Type type, int dimension, Iterable<? extends Expression> expressions) Creates a NewArrayExpression that represents creating a n-dimensional array and initializing it from a list of elements.static NewArrayExpressionnewArrayInit(Type type, int dimension, Expression... expressions) Creates a NewArrayExpression that represents creating an n-dimensional array and initializing it from a list of elements, using varargs.static NewArrayExpressionnewArrayInit(Type type, Iterable<? extends Expression> expressions) Creates a NewArrayExpression that represents creating a one-dimensional array and initializing it from a list of elements.static NewArrayExpressionnewArrayInit(Type type, Expression... expressions) Creates a NewArrayExpression that represents creating a one-dimensional array and initializing it from a list of elements, using varargs.static UnaryExpressionnot(Expression expression) Creates a UnaryExpression that represents a bitwise complement operation.static UnaryExpressionnot(Expression expression, Method method) Creates a UnaryExpression that represents a bitwise complement operation.static BinaryExpressionnotEqual(Expression left, Expression right) Creates a BinaryExpression that represents an inequality comparison.static BinaryExpressionnotEqual(Expression left, Expression right, boolean liftToNull, Method method) Creates a BinaryExpression that represents an inequality comparison.static UnaryExpressiononesComplement(Expression expression) Returns the expression representing the ones complement.static UnaryExpressiononesComplement(Expression expression, Method method) Returns the expression representing the ones complement.static BinaryExpressionor(Expression left, Expression right) Creates a BinaryExpression that represents a bitwise OR operation.static BinaryExpressionor(Expression left, Expression right, Method method) Creates a BinaryExpression that represents a bitwise OR operation.static BinaryExpressionorAssign(Expression left, Expression right) Creates a BinaryExpression that represents a bitwise OR assignment operation.static BinaryExpressionorAssign(Expression left, Expression right, Method method) Creates a BinaryExpression that represents a bitwise OR assignment operation.static BinaryExpressionorAssign(Expression left, Expression right, Method method, LambdaExpression lambdaExpression) Creates a BinaryExpression that represents a bitwise OR assignment operation.static BinaryExpressionorElse(Expression left, Expression right) Creates a BinaryExpression that represents a conditional OR operation that evaluates the second operand only if the first operand evaluates to false.static BinaryExpressionorElse(Expression left, Expression right, Method method) Creates a BinaryExpression that represents a conditional OR operation that evaluates the second operand only if the first operand evaluates to false.static ParameterExpressionCreates a ParameterExpression.static ParameterExpressionCreates a ParameterExpression node that can be used to identify a parameter or a variable in an expression tree.static ParameterExpressionCreates a ParameterExpression node that can be used to identify a parameter or a variable in an expression tree.static UnaryExpressionpostDecrementAssign(Expression expression) Creates a UnaryExpression that represents the assignment of the expression followed by a subsequent decrement by 1 of the original expression.static UnaryExpressionpostDecrementAssign(Expression expression, Method method) Creates a UnaryExpression that represents the assignment of the expression followed by a subsequent decrement by 1 of the original expression.static UnaryExpressionpostIncrementAssign(Expression expression) Creates a UnaryExpression that represents the assignment of the expression followed by a subsequent increment by 1 of the original expression.static UnaryExpressionpostIncrementAssign(Expression expression, Method method) Creates a UnaryExpression that represents the assignment of the expression followed by a subsequent increment by 1 of the original expression.static BinaryExpressionpower(Expression left, Expression right) Creates a BinaryExpression that represents raising a number to a power.static BinaryExpressionpower(Expression left, Expression right, Method method) Creates a BinaryExpression that represents raising a number to a power.static BinaryExpressionpowerAssign(Expression left, Expression right) Creates a BinaryExpression that represents raising an expression to a power and assigning the result back to the expression.static BinaryExpressionpowerAssign(Expression left, Expression right, Method method) Creates a BinaryExpression that represents raising an expression to a power and assigning the result back to the expression.static BinaryExpressionpowerAssign(Expression left, Expression right, Method method, LambdaExpression lambdaExpression) Creates a BinaryExpression that represents raising an expression to a power and assigning the result back to the expression.static UnaryExpressionpreDecrementAssign(Expression expression) Creates a UnaryExpression that decrements the expression by 1 and assigns the result back to the expression.static UnaryExpressionpreDecrementAssign(Expression expression, Method method) Creates a UnaryExpression that decrements the expression by 1 and assigns the result back to the expression.static UnaryExpressionpreIncrementAssign(Expression expression) Creates a UnaryExpression that increments the expression by 1 and assigns the result back to the expression.static UnaryExpressionpreIncrementAssign(Expression expression, Method method) Creates a UnaryExpression that increments the expression by 1 and assigns the result back to the expression.static MemberExpressionproperty(Expression expression, Method method) Creates a MemberExpression that represents accessing a property by using a property accessor method.static MemberExpressionproperty(Expression expression, Type type, String name) Creates a MemberExpression accessing a property.static MemberExpressionproperty(Expression expression, String name) Creates a MemberExpression that represents accessing a property.static IndexExpressionproperty(Expression expression, String name, Expression... arguments) Creates an IndexExpression representing the access to an indexed property.static MemberExpressionproperty(Expression expression, org.apache.calcite.linq4j.tree.Expressions.PropertyInfo property) Creates a MemberExpression that represents accessing a property.static IndexExpressionproperty(Expression expression, org.apache.calcite.linq4j.tree.Expressions.PropertyInfo property, Iterable<? extends Expression> arguments) Creates an IndexExpression representing the access to an indexed property.static IndexExpressionproperty(Expression expression, org.apache.calcite.linq4j.tree.Expressions.PropertyInfo property, Expression... arguments) Creates an IndexExpression representing the access to an indexed property, using varargs.static MemberExpressionpropertyOrField(Expression expression, String propertyOfFieldName) Creates a MemberExpression that represents accessing a property or field.static UnaryExpressionquote(Expression expression) Creates a UnaryExpression that represents an expression that has a constant value of type Expression.static Expressionreduce(Expression expression) Reduces this node to a simpler expression.static ExpressionreduceAndCheck(Expression expression) Reduces this node to a simpler expression.static ExpressionreduceExtensions(Expression expression) Reduces the expression to a known node type (that is not an Extension node) or just returns the expression if it is already a known type.static ExpressionreferenceEqual(Expression left, Expression right) Creates a BinaryExpression that represents a reference equality comparison.static ExpressionreferenceNotEqual(Expression left, Expression right) Creates a BinaryExpression that represents a reference inequality comparison.static UnaryExpressionrethrow()Creates a UnaryExpression that represents a rethrowing of an exception.static UnaryExpressionCreates a UnaryExpression that represents a rethrowing of an exception with a given type.static GotoStatementreturn_(@Nullable LabelTarget labelTarget) Creates a GotoExpression representing a return statement.static GotoStatementreturn_(@Nullable LabelTarget labelTarget, @Nullable Expression expression) Creates a GotoExpression representing a return statement.static GotoStatementreturn_(LabelTarget labelTarget, Type type) Creates a GotoExpression representing a return statement with the specified type.static GotoStatementreturn_(LabelTarget labelTarget, Expression expression, Type type) Creates a GotoExpression representing a return statement with the specified type.static BinaryExpressionrightShift(Expression left, Expression right) Creates a BinaryExpression that represents a bitwise right-shift operation.static BinaryExpressionrightShift(Expression left, Expression right, Method method) Creates a BinaryExpression that represents a bitwise right-shift operation.static BinaryExpressionrightShiftAssign(Expression left, Expression right) Creates a BinaryExpression that represents a bitwise right-shift assignment operation.static BinaryExpressionrightShiftAssign(Expression left, Expression right, Method method) Creates a BinaryExpression that represents a bitwise right-shift assignment operation.static BinaryExpressionrightShiftAssign(Expression left, Expression right, Method method, LambdaExpression lambdaExpression) Creates a BinaryExpression that represents a bitwise right-shift assignment operation.static org.apache.calcite.linq4j.tree.Expressions.RuntimeVariablesExpressionruntimeVariables(Iterable<? extends ParameterExpression> expressions) Creates an instance of RuntimeVariablesExpression.static org.apache.calcite.linq4j.tree.Expressions.RuntimeVariablesExpressionruntimeVariables(ParameterExpression... arguments) Creates an instance of RuntimeVariablesExpression, using varargs.static Statementstatement(@Nullable Expression expression) Creates a statement that executes an expression.static BinaryExpressionsubtract(Expression left, Expression right) Creates a BinaryExpression that represents an arithmetic subtraction operation that does not have overflow checking.static BinaryExpressionsubtract(Expression left, Expression right, Method method) Creates a BinaryExpression that represents an arithmetic subtraction operation that does not have overflow checking.static BinaryExpressionsubtractAssign(Expression left, Expression right) Creates a BinaryExpression that represents a subtraction assignment operation that does not have overflow checking.static BinaryExpressionsubtractAssign(Expression left, Expression right, Method method) Creates a BinaryExpression that represents a subtraction assignment operation that does not have overflow checking.static BinaryExpressionsubtractAssign(Expression left, Expression right, Method method, LambdaExpression lambdaExpression) Creates a BinaryExpression that represents a subtraction assignment operation that does not have overflow checking.static BinaryExpressionsubtractAssignChecked(Expression left, Expression right) Creates a BinaryExpression that represents a subtraction assignment operation that has overflow checking.static BinaryExpressionsubtractAssignChecked(Expression left, Expression right, Method method) Creates a BinaryExpression that represents a subtraction assignment operation that has overflow checking.static BinaryExpressionsubtractAssignChecked(Expression left, Expression right, Method method, LambdaExpression lambdaExpression) Creates a BinaryExpression that represents a subtraction assignment operation that has overflow checking.static BinaryExpressionsubtractChecked(Expression left, Expression right) Creates a BinaryExpression that represents an arithmetic subtraction operation that has overflow checking.static BinaryExpressionsubtractChecked(Expression left, Expression right, Method method) Creates a BinaryExpression that represents an arithmetic subtraction operation that has overflow checking.static SwitchStatementswitch_(Type type, Expression switchValue, Expression defaultBody, Method method, Iterable<? extends SwitchCase> cases) Creates a SwitchExpression that represents a switch statement that has a default case.static SwitchStatementswitch_(Type type, Expression switchValue, Expression defaultBody, Method method, SwitchCase... cases) Creates a SwitchExpression that represents a switch statement that has a default case, using varargs.static SwitchStatementswitch_(Expression switchValue, @Nullable Expression defaultBody, @Nullable Method method, Iterable<? extends SwitchCase> cases) Creates a SwitchExpression that represents a switch statement that has a default case.static SwitchStatementswitch_(Expression switchValue, Expression defaultBody, Method method, SwitchCase... cases) Creates a SwitchExpression that represents a switch statement that has a default case, using varargs.static SwitchStatementswitch_(Expression switchValue, Expression defaultBody, SwitchCase... cases) Creates a SwitchExpression that represents a switch statement that has a default case.static SwitchStatementswitch_(Expression switchValue, SwitchCase... cases) Creates a SwitchExpression that represents a switch statement without a default case.static SwitchCaseswitchCase(Expression expression, Iterable<? extends Expression> body) Creates a SwitchCase for use in a SwitchExpression.static SwitchCaseswitchCase(Expression expression, Expression... body) Creates a SwitchCase for use in a SwitchExpression, with varargs.static org.apache.calcite.linq4j.tree.Expressions.SymbolDocumentInfosymbolDocument(String fileName) Creates an instance of SymbolDocumentInfo.static org.apache.calcite.linq4j.tree.Expressions.SymbolDocumentInfosymbolDocument(String fileName, UUID language) Creates an instance of SymbolDocumentInfo.static org.apache.calcite.linq4j.tree.Expressions.SymbolDocumentInfosymbolDocument(String fileName, UUID language, UUID vendor) Creates an instance of SymbolDocumentInfo.static org.apache.calcite.linq4j.tree.Expressions.SymbolDocumentInfosymbolDocument(String filename, UUID language, UUID vendor, UUID documentType) Creates an instance of SymbolDocumentInfo.static ThrowStatementthrow_(Expression expression) Creates a statement that represents the throwing of an exception.static StringConverts a list of expressions to Java source code, optionally emitting extra type information in generics.static StringConverts an expression to Java source code.static TryStatementtryCatch(Statement body, Iterable<? extends CatchBlock> handlers) Creates a TryExpression representing a try block with any number of catch statements and neither a fault nor finally block.static TryStatementtryCatch(Statement body, CatchBlock... handlers) Creates a TryExpression representing a try block with any number of catch statements and neither a fault nor finally block, with varargs.static TryStatementtryCatchFinally(Statement body, Iterable<? extends CatchBlock> handlers, Statement finally_) Creates a TryExpression representing a try block with any number of catch statements and a finally block.static TryStatementtryCatchFinally(Statement body, Statement finally_, CatchBlock... handlers) Creates a TryExpression representing a try block with any number of catch statements and a finally block, with varargs.static TryStatementtryFinally(Statement body, Statement finally_) Creates a TryExpression representing a try block with a finally block and no catch statements.static UnaryExpressiontypeAs(Expression expression, Type type) Creates a UnaryExpression that represents an explicit reference or boxing conversion where null is supplied if the conversion fails.static TypeBinaryExpressiontypeEqual(Expression expression, Type type) Creates a TypeBinaryExpression that compares run-time type identity.static TypeBinaryExpressiontypeIs(Expression expression, Type type) Creates a TypeBinaryExpression.static UnaryExpressionunaryPlus(Expression expression) Creates a UnaryExpression that represents a unary plus operation.static UnaryExpressionunaryPlus(Expression expression, Method method) Creates a UnaryExpression that represents a unary plus operation.static Expressionunbox(Expression expression) Converts e.g.static UnaryExpressionunbox(Expression expression, Type type) Creates a UnaryExpression that represents an explicit unboxing.static Expressionunbox(Expression expression, Primitive primitive) Returns an expression to unbox the value of a boxed-primitive expression.static ExpressionunboxExact(Expression expression, Primitive primitive) Returns an expression to unbox the value of a boxed-primitive expression exactly.static ParameterExpressionCreates a ParameterExpression node that can be used to identify a parameter or a variable in an expression tree.static ParameterExpressionCreates a ParameterExpression node that can be used to identify a parameter or a variable in an expression tree.static ExpressionvisitChildren(ExpressionVisitor visitor) Reduces the node and then calls the visitor delegate on the reduced expression.static WhileStatementwhile_(Expression condition, Statement body) Creates a WhileExpression representing a while loop.
- 
Method Details- 
toStringConverts a list of expressions to Java source code, optionally emitting extra type information in generics.
- 
toStringConverts an expression to Java source code.
- 
addCreates a BinaryExpression that represents an arithmetic addition operation that does not have overflow checking.
- 
addCreates a BinaryExpression that represents an arithmetic addition operation that does not have overflow checking. The implementing method can be specified.
- 
addAssignCreates a BinaryExpression that represents an addition assignment operation that does not have overflow checking.
- 
addAssignCreates a BinaryExpression that represents an addition assignment operation that does not have overflow checking.
- 
addAssignpublic static BinaryExpression addAssign(Expression left, Expression right, Method method, LambdaExpression lambdaLeft, LambdaExpression lambdaRight) Creates a BinaryExpression that represents an addition assignment operation that does not have overflow checking.
- 
addAssignCheckedCreates a BinaryExpression that represents an addition assignment operation that has overflow checking.
- 
addAssignCheckedCreates a BinaryExpression that represents an addition assignment operation that has overflow checking.
- 
addAssignCheckedpublic static BinaryExpression addAssignChecked(Expression left, Expression right, Method method, LambdaExpression lambdaExpression) Creates a BinaryExpression that represents an addition assignment operation that has overflow checking.
- 
addCheckedCreates a BinaryExpression that represents an arithmetic addition operation that has overflow checking.
- 
addCheckedCreates a BinaryExpression that represents an arithmetic addition operation that has overflow checking. The implementing method can be specified.
- 
andCreates a BinaryExpression that represents a bitwise AND operation.
- 
andCreates a BinaryExpression that represents a bitwise AND operation. The implementing method can be specified.
- 
andAlsoCreates a BinaryExpression that represents a conditional AND operation that evaluates the second operand only if the first operand evaluates to true.
- 
andAlsoCreates a BinaryExpression that represents a conditional AND operation that evaluates the second operand only if the first operand is resolved to true. The implementing method can be specified.
- 
andAssignCreates a BinaryExpression that represents a bitwise AND assignment operation.
- 
andAssignCreates a BinaryExpression that represents a bitwise AND assignment operation.
- 
andAssignpublic static BinaryExpression andAssign(Expression left, Expression right, Method method, LambdaExpression lambdaExpression) Creates a BinaryExpression that represents a bitwise AND assignment operation.
- 
arrayIndexCreates an expression that represents applying an array index operator to an array of rank one.
- 
arrayLengthCreates a UnaryExpression that represents an expression for obtaining the length of a one-dimensional array.
- 
assignCreates a BinaryExpression that represents an assignment operation.
- 
bindCreates a MemberAssignment that represents the initialization of a field or property.
- 
bindCreates a MemberAssignment that represents the initialization of a member by using a property accessor method.
- 
blockCreates a BlockExpression that contains the given statements.
- 
blockCreates a BlockExpression that contains the given statements, using varargs.
- 
blockCreates a BlockExpression that contains the given expressions, has no variables and has specific result type.
- 
blockCreates a BlockExpression that contains the given statements and has a specific result type, using varargs.
- 
break_Creates a GotoExpression representing a break statement.
- 
break_Creates a GotoExpression representing a break statement. The value passed to the label upon jumping can be specified.
- 
break_Creates a GotoExpression representing a break statement with the specified type.
- 
break_Creates a GotoExpression representing a break statement with the specified type. The value passed to the label upon jumping can be specified.
- 
callCreates a MethodCallExpression that represents a call to a static method that has arguments.
- 
callCreates a MethodCallExpression that represents a call to a static method that has arguments, using varargs.
- 
callpublic static MethodCallExpression call(@Nullable Expression expression, Method method, Iterable<? extends Expression> arguments) Creates a MethodCallExpression that represents a call to a method that takes arguments.
- 
callpublic static MethodCallExpression call(@Nullable Expression expression, Method method, Expression... arguments) Creates a MethodCallExpression that represents a call to a method that takes arguments, using varargs.
- 
callpublic static MethodCallExpression call(Type returnType, @Nullable Expression expression, Method method, Iterable<? extends Expression> arguments) Creates a MethodCallExpression that represents a call to a method that takes arguments, with an explicit return type.The return type must be consistent with the return type of the method, but may contain extra information, such as type parameters. The expressionargument may be null if and only if the method is static.
- 
callpublic static MethodCallExpression call(Type returnType, @Nullable Expression expression, Method method, Expression... arguments) Creates a MethodCallExpression that represents a call to a method that takes arguments, with an explicit return type, with varargs.The return type must be consistent with the return type of the method, but may contain extra information, such as type parameters. The expressionargument may be null if and only if the method is static.
- 
callpublic static MethodCallExpression call(Expression target, String methodName, Iterable<? extends Expression> arguments) Creates a MethodCallExpression that represents a call to an instance method by calling the appropriate factory method.
- 
callpublic static MethodCallExpression call(Expression target, String methodName, Expression... arguments) Creates a MethodCallExpression that represents a call to an instance method by calling the appropriate factory method, using varargs.
- 
callpublic static MethodCallExpression call(Type type, String methodName, Iterable<? extends Expression> arguments) Creates a MethodCallExpression that represents a call to a static method by calling the appropriate factory method.
- 
callCreates a MethodCallExpression that represents a call to a static method by calling the appropriate factory method, using varargs.
- 
catch_Creates a CatchBlock representing a catch statement with a reference to the caught Exception object for use in the handler body.
- 
clearDebugInfopublic static void clearDebugInfo()Creates a DebugInfoExpression for clearing a sequence point.
- 
coalesceCreates a BinaryExpression that represents a coalescing operation.
- 
coalescepublic static BinaryExpression coalesce(Expression left, Expression right, LambdaExpression lambdaExpression) Creates a BinaryExpression that represents a coalescing operation, given a conversion function.
- 
conditionCreates a ConditionalExpression that represents a conditional statement.
- 
isConstantNullReturns whether an expression always evaluates to null.
- 
conditionpublic static ConditionalExpression condition(Expression test, Expression ifTrue, Expression ifFalse, Type type) Creates a ConditionalExpression that represents a conditional statement.This method allows explicitly unifying the result type of the conditional expression in cases where the types of ifTrue and ifFalse expressions are not equal. Types of both ifTrue and ifFalse must be implicitly reference assignable to the result type. The type is allowed to be void.
- 
constantCreates a ConstantExpression that has the Value property set to the specified value.Does the right thing for null, String, primitive values (e.g. int 12, short 12, double 3.14 and boolean false), boxed primitives (e.g. Integer.valueOf(12)), enums, classes, BigDecimal, BigInteger, classes that have a constructor with a parameter for each field, and arrays. 
- 
constantCreates a ConstantExpression that has the Value and Type properties set to the specified values.
- 
constantpublic static ConstantExpression constant(@Nullable Object value, Type type, RoundingMode roundingMode) Creates a ConstantExpression that has the Value 、Type 、RoundingMode properties set to the specified values.
- 
continue_Creates a GotoExpression representing a continue statement.
- 
continue_Creates a GotoExpression representing a continue statement with the specified type.
- 
convert_Creates a UnaryExpression that represents a type conversion operation.
- 
convert_Creates a UnaryExpression that represents a conversion operation for which the implementing method is specified.
- 
convertCheckedCreates a UnaryExpression that represents a conversion operation that throws an exception if the target type is overflowed.
- 
convertChecked_Creates a UnaryExpression that represents a conversion operation that throws an exception if the target type is overflowed and for which the implementing method is specified.
- 
debugInfopublic static void debugInfo()Creates a DebugInfoExpression with the specified span.
- 
decrementCreates a UnaryExpression that represents the decrementing of the expression by 1.
- 
decrementCreates a UnaryExpression that represents the decrementing of the expression by 1.
- 
default_Creates a DefaultExpression that has the Type property set to the specified type.
- 
divideCreates a BinaryExpression that represents an arithmetic division operation.
- 
divideCreates a BinaryExpression that represents an arithmetic division operation. The implementing method can be specified.
- 
divideAssignCreates a BinaryExpression that represents a division assignment operation that does not have overflow checking.
- 
divideAssignCreates a BinaryExpression that represents a division assignment operation that does not have overflow checking.
- 
divideAssignpublic static BinaryExpression divideAssign(Expression left, Expression right, Method method, LambdaExpression lambdaExpression) Creates a BinaryExpression that represents a division assignment operation that does not have overflow checking.
- 
dynamicpublic static DynamicExpression dynamic(CallSiteBinder binder, Type type, Iterable<? extends Expression> expressions) Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder.
- 
dynamicCreates aDynamicExpressionthat represents a dynamic operation bound by the providedCallSiteBinder, using varargs.
- 
elementInitCreates anElementInit, given anIterable<T>as the second argument.
- 
elementInitCreates an ElementInit, given an array of values as the second argument, using varargs.
- 
emptyCreates an empty expression that has Void type.
- 
equalCreates a BinaryExpression that represents an equality comparison.
- 
equalpublic static BinaryExpression equal(Expression expression0, Expression expression1, boolean liftToNull, Method method) Creates a BinaryExpression that represents an equality comparison. The implementing method can be specified.
- 
exclusiveOrCreates a BinaryExpression that represents a bitwise XOR operation, using op_ExclusiveOr for user-defined types.
- 
exclusiveOrCreates a BinaryExpression that represents a bitwise XOR operation, using op_ExclusiveOr for user-defined types. The implementing method can be specified.
- 
exclusiveOrAssignCreates a BinaryExpression that represents a bitwise XOR assignment operation, using op_ExclusiveOr for user-defined types.
- 
exclusiveOrAssignCreates a BinaryExpression that represents a bitwise XOR assignment operation, using op_ExclusiveOr for user-defined types.
- 
exclusiveOrAssignpublic static BinaryExpression exclusiveOrAssign(Expression left, Expression right, Method method, LambdaExpression lambdaExpression) Creates a BinaryExpression that represents a bitwise XOR assignment operation, using op_ExclusiveOr for user-defined types.
- 
fieldCreates a MemberExpression that represents accessing a field.
- 
fieldCreates a MemberExpression that represents accessing a field.
- 
fieldCreates a MemberExpression that represents accessing a field given the name of the field.
- 
fieldCreates a MemberExpression that represents accessing a field.
- 
getActionTypeCreates a Type object that represents a generic System.Action delegate type that has specific type arguments.
- 
getDelegateTypeGets a Type object that represents a generic System.Func or System.Action delegate type that has specific type arguments.
- 
getFuncTypeCreates a Type object that represents a generic System.Func delegate type that has specific type arguments. The last type argument specifies the return type of the created delegate.
- 
goto_Creates a GotoExpression representing a "go to" statement.
- 
goto_Creates a GotoExpression representing a "go to" statement. The value passed to the label upon jumping can be specified.
- 
goto_Creates a GotoExpression representing a "go to" statement with the specified type.
- 
goto_Creates a GotoExpression representing a "go to" statement with the specified type. The value passed to the label upon jumping can be specified.
- 
greaterThanCreates a BinaryExpression that represents a "greater than" numeric comparison.
- 
greaterThanpublic static BinaryExpression greaterThan(Expression left, Expression right, boolean liftToNull, Method method) Creates a BinaryExpression that represents a "greater than" numeric comparison. The implementing method can be specified.
- 
greaterThanOrEqualCreates a BinaryExpression that represents a "greater than or equal" numeric comparison.
- 
greaterThanOrEqualpublic static BinaryExpression greaterThanOrEqual(Expression left, Expression right, boolean liftToNull, Method method) Creates a BinaryExpression that represents a "greater than or equal" numeric comparison.
- 
ifThenCreates a ConditionalExpression that represents a conditional block with an if statement.
- 
ifThenElseCreates a ConditionalExpression that represents a conditional block with if and else statements.
- 
ifThenElseCreates a ConditionalExpression that represents a conditional block with if and else statements:if (test) stmt1 [ else if (test2) stmt2 ]... [ else stmtN ].
- 
ifThenElseCreates a ConditionalExpression that represents a conditional block with if and else statements:if (test) stmt1 [ else if (test2) stmt2 ]... [ else stmtN ].
- 
incrementCreates a UnaryExpression that represents the incrementing of the expression value by 1.
- 
incrementCreates a UnaryExpression that represents the incrementing of the expression by 1.
- 
invokepublic static InvocationExpression invoke(Expression expression, Iterable<? extends Expression> arguments) Creates an InvocationExpression that applies a delegate or lambda expression to a list of argument expressions.
- 
invokeCreates an InvocationExpression that applies a delegate or lambda expression to a list of argument expressions, using varargs.
- 
isFalseReturns whether the expression evaluates to false.
- 
isFalseReturns whether the expression evaluates to false.
- 
isTrueReturns whether the expression evaluates to true.
- 
isTrueReturns whether the expression evaluates to true.
- 
labelCreates a LabelTarget representing a label with X type and no name.
- 
labelCreates a LabelExpression representing a label without a default value.
- 
labelCreates a LabelTarget representing a label with X type and the given name.
- 
labelCreates a LabelTarget representing a label with the given type.
- 
labelCreates a LabelExpression representing a label with the given default value.
- 
labelCreates a LabelTarget representing a label with the given type and name.
- 
lambdaCreates a FunctionExpression from an actual function.
- 
lambdapublic static <F extends Function<?>> FunctionExpression<F> lambda(BlockStatement body, Iterable<? extends ParameterExpression> parameters) Creates a LambdaExpression by first constructing a delegate type.
- 
lambdapublic static <F extends Function<?>> FunctionExpression<F> lambda(BlockStatement body, ParameterExpression... parameters) Creates a LambdaExpression by first constructing a delegate type, using varargs.
- 
lambdapublic static <F extends Function<?>> FunctionExpression<F> lambda(Expression body, Iterable<? extends ParameterExpression> parameters) Creates an Expression where the delegate typeFis known at compile time.
- 
lambdapublic static <F extends Function<?>> FunctionExpression<F> lambda(Expression body, ParameterExpression... parameters) Creates an Expression where the delegate typeFis known at compile time, using varargs.
- 
lambdapublic static <T,F extends Function<? extends T>> FunctionExpression<F> lambda(Class<F> type, BlockStatement body, Iterable<? extends ParameterExpression> parameters) Creates a LambdaExpression by first constructing a delegate type.It can be used when the delegate type is not known at compile time. 
- 
lambdapublic static <T,F extends Function<? extends T>> FunctionExpression<F> lambda(Class<F> type, BlockStatement body, ParameterExpression... parameters) Creates a LambdaExpression by first constructing a delegate type, using varargs.It can be used when the delegate type is not known at compile time. 
- 
lambdapublic static <T,F extends Function<? extends T>> FunctionExpression<F> lambda(Class<F> type, Expression body, Iterable<? extends ParameterExpression> parameters) Creates a LambdaExpression by first constructing a delegate type.It can be used when the delegate type is not known at compile time. 
- 
lambdapublic static <T,F extends Function<? extends T>> FunctionExpression<F> lambda(Class<F> type, Expression body, ParameterExpression... parameters) Creates a LambdaExpression by first constructing a delegate type, using varargs.It can be used when the delegate type is not known at compile time. 
- 
leftShiftCreates a BinaryExpression that represents a bitwise left-shift operation.
- 
leftShiftCreates a BinaryExpression that represents a bitwise left-shift operation.
- 
leftShiftAssignCreates a BinaryExpression that represents a bitwise left-shift assignment operation.
- 
leftShiftAssignCreates a BinaryExpression that represents a bitwise left-shift assignment operation.
- 
leftShiftAssignpublic static BinaryExpression leftShiftAssign(Expression left, Expression right, Method method, LambdaExpression lambdaExpression) Creates a BinaryExpression that represents a bitwise left-shift assignment operation.
- 
lessThanCreates a BinaryExpression that represents a "less than" numeric comparison.
- 
lessThanpublic static BinaryExpression lessThan(Expression left, Expression right, boolean liftToNull, Method method) Creates a BinaryExpression that represents a "less than" numeric comparison.
- 
lessThanOrEqualCreates a BinaryExpression that represents a " less than or equal" numeric comparison.
- 
lessThanOrEqualpublic static BinaryExpression lessThanOrEqual(Expression left, Expression right, boolean liftToNull, Method method) Creates a BinaryExpression that represents a "less than or equal" numeric comparison.
- 
listBindpublic static MemberListBinding listBind(Member member, Iterable<? extends ElementInit> elementInits) Creates a MemberListBinding where the member is a field or property.
- 
listBindCreates a MemberListBinding where the member is a field or property, using varargs.
- 
listBindpublic static MemberListBinding listBind(Method method, Iterable<? extends ElementInit> elementInits) Creates a MemberListBinding based on a specified property accessor method.
- 
listBindCreates a MemberListBinding object based on a specified property accessor method, using varargs.
- 
listInitpublic static ListInitExpression listInit(NewExpression newExpression, Iterable<? extends ElementInit> elementInits) Creates a ListInitExpression that uses specified ElementInit objects to initialize a collection.
- 
listInitCreates a ListInitExpression that uses specified ElementInit objects to initialize a collection, using varargs.
- 
listInitEpublic static ListInitExpression listInitE(NewExpression newExpression, Iterable<? extends Expression> arguments) Creates a ListInitExpression that uses a method named "Add" to add elements to a collection.
- 
listInitCreates a ListInitExpression that uses a method named "Add" to add elements to a collection, using varargs.
- 
listInitpublic static ListInitExpression listInit(NewExpression newExpression, Method method, Iterable<? extends Expression> arguments) Creates a ListInitExpression that uses a specified method to add elements to a collection.
- 
listInitpublic static ListInitExpression listInit(NewExpression newExpression, Method method, Expression... arguments) Creates a ListInitExpression that uses a specified method to add elements to a collection, using varargs.
- 
for_public static ForStatement for_(Iterable<? extends DeclarationStatement> declarations, @Nullable Expression condition, @Nullable Expression post, Statement body) Creates a LoopExpression with the given body.
- 
for_public static ForStatement for_(DeclarationStatement declaration, @Nullable Expression condition, @Nullable Expression post, Statement body) Creates a LoopExpression with the given body.
- 
forEachpublic static ForEachStatement forEach(ParameterExpression parameter, Expression iterable, Statement body) Creates a ForEachExpression with the given body.
- 
makeBinarypublic static BinaryExpression makeBinary(ExpressionType binaryType, Expression left, Expression right) Creates a BinaryExpression, given the left and right operands, by calling an appropriate factory method.
- 
boxReturns an expression to box the value of a primitive expression. E.g.box(e, Primitive.INT)returnsInteger.valueOf(e).
- 
boxConverts e.g. "anInteger" to "Integer.valueOf(anInteger)".
- 
unboxExactReturns an expression to unbox the value of a boxed-primitive expression exactly. E.g.unboxExact(e, Primitive.INT)returnse.intValueExact(). It is assumed that e is of the right box type (orNumber)."Value
- 
unboxReturns an expression to unbox the value of a boxed-primitive expression. E.g.unbox(e, Primitive.INT)returnse.intValue(). It is assumed that e is of the right box type (orNumber)."Value
- 
unboxConverts e.g. "anInteger" to "anInteger.intValue()".
- 
makeBinarypublic static BinaryExpression makeBinary(ExpressionType binaryType, Expression left, Expression right, boolean liftToNull, Method method) Creates a BinaryExpression, given the left operand, right operand and implementing method, by calling the appropriate factory method.
- 
makeBinarypublic static BinaryExpression makeBinary(ExpressionType binaryType, Expression left, Expression right, boolean liftToNull, Method method, LambdaExpression lambdaExpression) Creates a BinaryExpression, given the left operand, right operand, implementing method and type conversion function, by calling the appropriate factory method.
- 
makeTernarypublic static TernaryExpression makeTernary(ExpressionType ternaryType, Expression e0, Expression e1, Expression e2) Creates a TernaryExpression, given the left and right operands, by calling an appropriate factory method.
- 
makeCatchBlockpublic static CatchBlock makeCatchBlock(Type type, ParameterExpression variable, Expression body, Expression filter) Creates a CatchBlock representing a catch statement with the specified elements.
- 
makeDynamicpublic static DynamicExpression makeDynamic(Type type, CallSiteBinder binder, Iterable<? extends Expression> arguments) Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder.
- 
makeDynamicpublic static DynamicExpression makeDynamic(Type type, CallSiteBinder binder, Expression... arguments) Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder, using varargs.
- 
makeGotopublic static GotoStatement makeGoto(GotoExpressionKind kind, LabelTarget target, Expression value, Type type) Creates a GotoExpression representing a jump of the specified GotoExpressionKind. The value passed to the label upon jumping can also be specified.
- 
makeMemberAccesspublic static MemberExpression makeMemberAccess(@Nullable Expression expression, PseudoField member) Creates a MemberExpression that represents accessing a field.
- 
makeTrypublic static TryStatement makeTry(Type type, Expression body, Expression finally_, Expression fault, Iterable<? extends CatchBlock> handlers) Creates a TryExpression representing a try block with the specified elements.
- 
makeTrypublic static TryStatement makeTry(Type type, Expression body, Expression finally_, Expression fault, CatchBlock... handlers) Creates a TryExpression representing a try block with the specified elements, using varargs.
- 
makeUnaryCreates a UnaryExpression, given an operand, by calling the appropriate factory method.
- 
makeUnarypublic static UnaryExpression makeUnary(ExpressionType expressionType, Expression expression, Type type, @Nullable Method method) Creates a UnaryExpression, given an operand and implementing method, by calling the appropriate factory method.
- 
memberBindpublic static MemberMemberBinding memberBind(Member member, Iterable<? extends MemberBinding> bindings) Creates a MemberMemberBinding that represents the recursive initialization of members of a field or property.
- 
memberBindCreates a MemberMemberBinding that represents the recursive initialization of members of a field or property, using varargs.
- 
memberBindpublic static MemberMemberBinding memberBind(Method method, Iterable<? extends MemberBinding> bindings) Creates a MemberMemberBinding that represents the recursive initialization of members of a member that is accessed by using a property accessor method.
- 
memberBindCreates a MemberMemberBinding that represents the recursive initialization of members of a member that is accessed by using a property accessor method, using varargs.
- 
memberInitpublic static MemberInitExpression memberInit(NewExpression newExpression, Iterable<? extends MemberBinding> bindings) Represents an expression that creates a new object and initializes a property of the object.
- 
memberInitpublic static MemberInitExpression memberInit(NewExpression newExpression, MemberBinding... bindings) Represents an expression that creates a new object and initializes a property of the object, using varargs.
- 
methodDeclpublic static MethodDeclaration methodDecl(int modifier, Type resultType, String name, Iterable<? extends ParameterExpression> parameters, BlockStatement body) Declares a method.
- 
constructorDeclpublic static ConstructorDeclaration constructorDecl(int modifier, Type declaredAgainst, Iterable<? extends ParameterExpression> parameters, BlockStatement body) Declares a constructor.
- 
fieldDeclpublic static FieldDeclaration fieldDecl(int modifier, ParameterExpression parameter, @Nullable Expression initializer) Declares a field with an initializer.
- 
fieldDeclDeclares a field.
- 
classDeclpublic static ClassDeclaration classDecl(int modifier, String name, @Nullable Type extended, List<Type> implemented, List<MemberDeclaration> memberDeclarations) Declares a class.
- 
moduloCreates a BinaryExpression that represents an arithmetic remainder operation.
- 
moduloCreates a BinaryExpression that represents an arithmetic remainder operation.
- 
moduloAssignCreates a BinaryExpression that represents a remainder assignment operation.
- 
moduloAssignCreates a BinaryExpression that represents a remainder assignment operation.
- 
moduloAssignpublic static BinaryExpression moduloAssign(Expression left, Expression right, Method method, LambdaExpression lambdaExpression) Creates a BinaryExpression that represents a remainder assignment operation.
- 
multiplyCreates a BinaryExpression that represents an arithmetic multiplication operation that does not have overflow checking.
- 
multiplyCreates a BinaryExpression that represents an arithmetic multiplication operation that does not have overflow checking.
- 
multiplyAssignCreates a BinaryExpression that represents a multiplication assignment operation that does not have overflow checking.
- 
multiplyAssignCreates a BinaryExpression that represents a multiplication assignment operation that does not have overflow checking.
- 
multiplyAssignpublic static BinaryExpression multiplyAssign(Expression left, Expression right, Method method, LambdaExpression lambdaExpression) Creates a BinaryExpression that represents a multiplication assignment operation that does not have overflow checking.
- 
multiplyAssignCheckedCreates a BinaryExpression that represents a multiplication assignment operation that has overflow checking.
- 
multiplyAssignCheckedpublic static BinaryExpression multiplyAssignChecked(Expression left, Expression right, Method method) Creates a BinaryExpression that represents a multiplication assignment operation that has overflow checking.
- 
multiplyAssignCheckedpublic static BinaryExpression multiplyAssignChecked(Expression left, Expression right, Method method, LambdaExpression lambdaExpression) Creates a BinaryExpression that represents a multiplication assignment operation that has overflow checking.
- 
multiplyCheckedCreates a BinaryExpression that represents an arithmetic multiplication operation that has overflow checking.
- 
multiplyCheckedCreates a BinaryExpression that represents an arithmetic multiplication operation that has overflow checking.
- 
negateCreates a UnaryExpression that represents an arithmetic negation operation.
- 
negateCreates a UnaryExpression that represents an arithmetic negation operation.
- 
negateCheckedCreates a UnaryExpression that represents an arithmetic negation operation that has overflow checking.
- 
negateCheckedCreates a UnaryExpression that represents an arithmetic negation operation that has overflow checking. The implementing method can be specified.
- 
new_Creates a NewExpression that represents calling the specified constructor that takes no arguments.
- 
new_Creates a NewExpression that represents calling the parameterless constructor of the specified type.
- 
new_Creates a NewExpression that represents calling the constructor of the specified type whose parameters are assignable from the specified arguments.
- 
new_Creates a NewExpression that represents calling the constructor of the specified type whose parameters are assignable from the specified arguments, using varargs.
- 
new_public static NewExpression new_(Type type, Iterable<? extends Expression> arguments, @Nullable Iterable<? extends MemberDeclaration> memberDeclarations) Creates a NewExpression that represents calling the constructor of the specified type whose parameters are assignable from the specified arguments.
- 
new_public static NewExpression new_(Type type, Iterable<? extends Expression> arguments, MemberDeclaration... memberDeclarations) Creates a NewExpression that represents calling the constructor of the specified type whose parameters are assignable from the specified arguments, using varargs.
- 
new_public static NewExpression new_(Constructor constructor, Iterable<? extends Expression> expressions) Creates a NewExpression that represents calling the specified constructor with the specified arguments.
- 
new_Creates a NewExpression that represents calling the specified constructor with the specified arguments, using varargs.
- 
new_public static NewExpression new_(Constructor constructor, Iterable<? extends Expression> expressions, Iterable<? extends MemberDeclaration> memberDeclarations) Creates a NewExpression that represents calling the specified constructor with the specified arguments.The members that access the constructor initialized fields are specified. 
- 
new_public static NewExpression new_(Constructor constructor, Iterable<? extends Expression> expressions, MemberDeclaration... memberDeclarations) Creates a NewExpression that represents calling the specified constructor with the specified arguments, using varargs.The members that access the constructor initialized fields are specified. 
- 
newArrayBoundspublic static NewArrayExpression newArrayBounds(Type type, int dimension, @Nullable Expression bound) Creates a NewArrayExpression that represents creating an array that has a specified rank.For example, newArrayBounds(int.class, 1, constant(8))yieldsnew int[8];newArrayBounds(int.class, 3, constant(8))yieldsnew int[8][][];- Parameters:
- type- Element type of the array
- dimension- Dimension of the array
- bound- Size of the first dimension
 
- 
newArrayInitpublic static NewArrayExpression newArrayInit(Type type, Iterable<? extends Expression> expressions) Creates a NewArrayExpression that represents creating a one-dimensional array and initializing it from a list of elements.For example, " newArrayInit(int.class, Arrays.asList(constant(1), constant(2))" yields "new int[] {1, 2}".- Parameters:
- type- Element type of the array
- expressions- Initializer expressions
 
- 
newArrayInitCreates a NewArrayExpression that represents creating a one-dimensional array and initializing it from a list of elements, using varargs.For example, " newArrayInit(int.class, constant(1), constant(2)" yields "new int[] {1, 2}".- Parameters:
- type- Element type of the array
- expressions- Initializer expressions
 
- 
newArrayInitpublic static NewArrayExpression newArrayInit(Type type, int dimension, Iterable<? extends Expression> expressions) Creates a NewArrayExpression that represents creating a n-dimensional array and initializing it from a list of elements.For example, " newArrayInit(int.class, 2, Arrays.asList())" yields "new int[][] {}".- Parameters:
- type- Element type of the array
- dimension- Dimension of the array
- expressions- Initializer expressions
 
- 
newArrayInitCreates a NewArrayExpression that represents creating an n-dimensional array and initializing it from a list of elements, using varargs.For example, " newArrayInit(int.class, 2)" yields "new int[][] {}".- Parameters:
- type- Element type of the array
- dimension- Dimension of the array
- expressions- Initializer expressions
 
- 
notCreates a UnaryExpression that represents a bitwise complement operation.
- 
notCreates a UnaryExpression that represents a bitwise complement operation. The implementing method can be specified.
- 
notEqualCreates a BinaryExpression that represents an inequality comparison.
- 
notEqualpublic static BinaryExpression notEqual(Expression left, Expression right, boolean liftToNull, Method method) Creates a BinaryExpression that represents an inequality comparison.
- 
onesComplementReturns the expression representing the ones complement.
- 
onesComplementReturns the expression representing the ones complement.
- 
orCreates a BinaryExpression that represents a bitwise OR operation.
- 
orCreates a BinaryExpression that represents a bitwise OR operation.
- 
orAssignCreates a BinaryExpression that represents a bitwise OR assignment operation.
- 
orAssignCreates a BinaryExpression that represents a bitwise OR assignment operation.
- 
orAssignpublic static BinaryExpression orAssign(Expression left, Expression right, Method method, LambdaExpression lambdaExpression) Creates a BinaryExpression that represents a bitwise OR assignment operation.
- 
orElseCreates a BinaryExpression that represents a conditional OR operation that evaluates the second operand only if the first operand evaluates to false.
- 
orElseCreates a BinaryExpression that represents a conditional OR operation that evaluates the second operand only if the first operand evaluates to false.
- 
parameterCreates a ParameterExpression node that can be used to identify a parameter or a variable in an expression tree.
- 
parameterCreates a ParameterExpression node that can be used to identify a parameter or a variable in an expression tree.
- 
parameterCreates a ParameterExpression.
- 
postDecrementAssignCreates a UnaryExpression that represents the assignment of the expression followed by a subsequent decrement by 1 of the original expression.
- 
postDecrementAssignCreates a UnaryExpression that represents the assignment of the expression followed by a subsequent decrement by 1 of the original expression.
- 
postIncrementAssignCreates a UnaryExpression that represents the assignment of the expression followed by a subsequent increment by 1 of the original expression.
- 
postIncrementAssignCreates a UnaryExpression that represents the assignment of the expression followed by a subsequent increment by 1 of the original expression.
- 
powerCreates a BinaryExpression that represents raising a number to a power.
- 
powerCreates a BinaryExpression that represents raising a number to a power.
- 
powerAssignCreates a BinaryExpression that represents raising an expression to a power and assigning the result back to the expression.
- 
powerAssignCreates a BinaryExpression that represents raising an expression to a power and assigning the result back to the expression.
- 
powerAssignpublic static BinaryExpression powerAssign(Expression left, Expression right, Method method, LambdaExpression lambdaExpression) Creates a BinaryExpression that represents raising an expression to a power and assigning the result back to the expression.
- 
preDecrementAssignCreates a UnaryExpression that decrements the expression by 1 and assigns the result back to the expression.
- 
preDecrementAssignCreates a UnaryExpression that decrements the expression by 1 and assigns the result back to the expression.
- 
preIncrementAssignCreates a UnaryExpression that increments the expression by 1 and assigns the result back to the expression.
- 
preIncrementAssignCreates a UnaryExpression that increments the expression by 1 and assigns the result back to the expression.
- 
propertyCreates a MemberExpression that represents accessing a property by using a property accessor method.
- 
propertypublic static MemberExpression property(Expression expression, org.apache.calcite.linq4j.tree.Expressions.PropertyInfo property) Creates a MemberExpression that represents accessing a property.
- 
propertyCreates a MemberExpression that represents accessing a property.
- 
propertypublic static IndexExpression property(Expression expression, org.apache.calcite.linq4j.tree.Expressions.PropertyInfo property, Iterable<? extends Expression> arguments) Creates an IndexExpression representing the access to an indexed property.
- 
propertypublic static IndexExpression property(Expression expression, org.apache.calcite.linq4j.tree.Expressions.PropertyInfo property, Expression... arguments) Creates an IndexExpression representing the access to an indexed property, using varargs.
- 
propertyCreates an IndexExpression representing the access to an indexed property.
- 
propertyCreates a MemberExpression accessing a property.
- 
propertyOrFieldCreates a MemberExpression that represents accessing a property or field.
- 
quoteCreates a UnaryExpression that represents an expression that has a constant value of type Expression.
- 
reduceReduces this node to a simpler expression. If CanReduce returns true, this should return a valid expression. This method can return another node which itself must be reduced.
- 
reduceAndCheckReduces this node to a simpler expression. If CanReduce returns true, this should return a valid expression. This method can return another node which itself must be reduced.
- 
reduceExtensionsReduces the expression to a known node type (that is not an Extension node) or just returns the expression if it is already a known type.
- 
referenceEqualCreates a BinaryExpression that represents a reference equality comparison.
- 
referenceNotEqualCreates a BinaryExpression that represents a reference inequality comparison.
- 
rethrowCreates a UnaryExpression that represents a rethrowing of an exception.
- 
rethrowCreates a UnaryExpression that represents a rethrowing of an exception with a given type.
- 
return_Creates a GotoExpression representing a return statement.
- 
return_public static GotoStatement return_(@Nullable LabelTarget labelTarget, @Nullable Expression expression) Creates a GotoExpression representing a return statement. The value passed to the label upon jumping can be specified.
- 
makeGotopublic static GotoStatement makeGoto(GotoExpressionKind kind, @Nullable LabelTarget labelTarget, @Nullable Expression expression) 
- 
return_Creates a GotoExpression representing a return statement with the specified type.
- 
return_Creates a GotoExpression representing a return statement with the specified type. The value passed to the label upon jumping can be specified.
- 
rightShiftCreates a BinaryExpression that represents a bitwise right-shift operation.
- 
rightShiftCreates a BinaryExpression that represents a bitwise right-shift operation.
- 
rightShiftAssignCreates a BinaryExpression that represents a bitwise right-shift assignment operation.
- 
rightShiftAssignCreates a BinaryExpression that represents a bitwise right-shift assignment operation.
- 
rightShiftAssignpublic static BinaryExpression rightShiftAssign(Expression left, Expression right, Method method, LambdaExpression lambdaExpression) Creates a BinaryExpression that represents a bitwise right-shift assignment operation.
- 
runtimeVariablespublic static org.apache.calcite.linq4j.tree.Expressions.RuntimeVariablesExpression runtimeVariables(Iterable<? extends ParameterExpression> expressions) Creates an instance of RuntimeVariablesExpression.
- 
runtimeVariablespublic static org.apache.calcite.linq4j.tree.Expressions.RuntimeVariablesExpression runtimeVariables(ParameterExpression... arguments) Creates an instance of RuntimeVariablesExpression, using varargs.
- 
subtractCreates a BinaryExpression that represents an arithmetic subtraction operation that does not have overflow checking.
- 
subtractCreates a BinaryExpression that represents an arithmetic subtraction operation that does not have overflow checking.
- 
subtractAssignCreates a BinaryExpression that represents a subtraction assignment operation that does not have overflow checking.
- 
subtractAssignCreates a BinaryExpression that represents a subtraction assignment operation that does not have overflow checking.
- 
subtractAssignpublic static BinaryExpression subtractAssign(Expression left, Expression right, Method method, LambdaExpression lambdaExpression) Creates a BinaryExpression that represents a subtraction assignment operation that does not have overflow checking.
- 
subtractAssignCheckedCreates a BinaryExpression that represents a subtraction assignment operation that has overflow checking.
- 
subtractAssignCheckedpublic static BinaryExpression subtractAssignChecked(Expression left, Expression right, Method method) Creates a BinaryExpression that represents a subtraction assignment operation that has overflow checking.
- 
subtractAssignCheckedpublic static BinaryExpression subtractAssignChecked(Expression left, Expression right, Method method, LambdaExpression lambdaExpression) Creates a BinaryExpression that represents a subtraction assignment operation that has overflow checking.
- 
subtractCheckedCreates a BinaryExpression that represents an arithmetic subtraction operation that has overflow checking.
- 
subtractCheckedCreates a BinaryExpression that represents an arithmetic subtraction operation that has overflow checking.
- 
switch_Creates a SwitchExpression that represents a switch statement without a default case.
- 
switch_public static SwitchStatement switch_(Expression switchValue, Expression defaultBody, SwitchCase... cases) Creates a SwitchExpression that represents a switch statement that has a default case.
- 
switch_public static SwitchStatement switch_(Expression switchValue, @Nullable Expression defaultBody, @Nullable Method method, Iterable<? extends SwitchCase> cases) Creates a SwitchExpression that represents a switch statement that has a default case.
- 
switch_public static SwitchStatement switch_(Expression switchValue, Expression defaultBody, Method method, SwitchCase... cases) Creates a SwitchExpression that represents a switch statement that has a default case, using varargs.
- 
switch_public static SwitchStatement switch_(Type type, Expression switchValue, Expression defaultBody, Method method, Iterable<? extends SwitchCase> cases) Creates a SwitchExpression that represents a switch statement that has a default case.
- 
switch_public static SwitchStatement switch_(Type type, Expression switchValue, Expression defaultBody, Method method, SwitchCase... cases) Creates a SwitchExpression that represents a switch statement that has a default case, using varargs.
- 
switchCaseCreates a SwitchCase for use in a SwitchExpression.
- 
switchCaseCreates a SwitchCase for use in a SwitchExpression, with varargs.
- 
symbolDocumentpublic static org.apache.calcite.linq4j.tree.Expressions.SymbolDocumentInfo symbolDocument(String fileName) Creates an instance of SymbolDocumentInfo.
- 
symbolDocumentpublic static org.apache.calcite.linq4j.tree.Expressions.SymbolDocumentInfo symbolDocument(String fileName, UUID language) Creates an instance of SymbolDocumentInfo.
- 
symbolDocumentpublic static org.apache.calcite.linq4j.tree.Expressions.SymbolDocumentInfo symbolDocument(String fileName, UUID language, UUID vendor) Creates an instance of SymbolDocumentInfo.
- 
symbolDocumentpublic static org.apache.calcite.linq4j.tree.Expressions.SymbolDocumentInfo symbolDocument(String filename, UUID language, UUID vendor, UUID documentType) Creates an instance of SymbolDocumentInfo.
- 
fromStatementCreate an expression from a statement.
- 
throw_Creates a statement that represents the throwing of an exception.
- 
tryCatchCreates a TryExpression representing a try block with any number of catch statements and neither a fault nor finally block.
- 
tryCatchCreates a TryExpression representing a try block with any number of catch statements and neither a fault nor finally block, with varargs.
- 
tryCatchFinallypublic static TryStatement tryCatchFinally(Statement body, Iterable<? extends CatchBlock> handlers, Statement finally_) Creates a TryExpression representing a try block with any number of catch statements and a finally block.
- 
tryCatchFinallypublic static TryStatement tryCatchFinally(Statement body, Statement finally_, CatchBlock... handlers) Creates a TryExpression representing a try block with any number of catch statements and a finally block, with varargs.
- 
tryFinallyCreates a TryExpression representing a try block with a finally block and no catch statements.
- 
typeAsCreates a UnaryExpression that represents an explicit reference or boxing conversion where null is supplied if the conversion fails.
- 
typeEqualCreates a TypeBinaryExpression that compares run-time type identity.
- 
typeIsCreates a TypeBinaryExpression.
- 
unaryPlusCreates a UnaryExpression that represents a unary plus operation.
- 
unaryPlusCreates a UnaryExpression that represents a unary plus operation.
- 
unboxCreates a UnaryExpression that represents an explicit unboxing.
- 
variableCreates a ParameterExpression node that can be used to identify a parameter or a variable in an expression tree.
- 
variableCreates a ParameterExpression node that can be used to identify a parameter or a variable in an expression tree.
- 
visitChildrenReduces the node and then calls the visitor delegate on the reduced expression. The method throws an exception if the node is not reducible.
- 
while_Creates a WhileExpression representing a while loop.
- 
declarepublic static DeclarationStatement declare(int modifiers, ParameterExpression parameter, @Nullable Expression initializer) Creates a statement that declares a variable.
- 
declareCreates an expression that declares and initializes a variable. No type is required; it is assumed that the variable is the same type as the initializer. You can retrieve theParameterExpressionfrom theDeclarationStatement.parameterfield of the result.
- 
statementCreates a statement that executes an expression.
- 
foldAndCombines a list of expressions using AND. Returns TRUE if the list is empty. Returns FALSE if any of the conditions are constant FALSE; otherwise returns NULL if any of the conditions are constant NULL.
- 
foldOrCombines a list of expressions using OR. Returns FALSE if the list is empty. Returns TRUE if any of the conditions are constant TRUE; otherwise returns NULL if all of the conditions are constant NULL.
- 
listCreates an empty fluent list.
- 
listCreates a fluent list with given elements.
- 
listCreates a fluent list with elements from the given collection.
- 
evaluateEvaluates an expression and returns the result.
 
-