public class Expressions extends Object
Modifier and Type | Method and Description |
---|---|
static Expression |
add(Expression op1,
Expression op2)
Returns an expression which represents op1 + op2.
|
static Expression |
decimal2floatCast(Expression source)
Returns an expression which represents the type casting to float of the source expression.
|
static Expression |
decimal2intCast(Expression source)
Returns an expression which represents the type casting to int of the source expression.
|
static Expression |
div(Expression op1,
Expression op2)
Returns an expression which represents op1 / op2.
|
static Expression |
field(String name)
Returns an expressions which represents the value of a field.
|
static Expression |
float2intCast(Expression source)
Returns an expression which represents the type casting to int of the source expression.
|
static Expression |
float2stringCast(Expression source)
Returns an expression which represents the type casting to String of the source expression.
|
static Expression |
int2floatCast(Expression source)
Returns an expression which represents the type casting to float of the source expression.
|
static Expression |
int2stringCast(Expression source)
Returns an expression which represents the type casting to String of the source expression.
|
static Expression |
len(String field)
Expression which represents the length operation over a field.
|
static Expression |
mod(Expression op1,
Expression op2)
Returns an expression which represents op1 mod op2.
|
static Expression |
mul(Expression op1,
Expression op2)
Returns an expression which represents op1 * op2.
|
static Expression |
pow(Expression op1,
Expression op2)
Returns an expression which represents op1 pow op2.
|
static Expression |
sqr(Expression op)
Returns an expression which represents the square root of (op).
|
static Expression |
string2floatCast(Expression source)
Returns an expression which represents the type casting to float of the source expression.
|
static Expression |
string2intCast(Expression source)
Returns an expression which represents the type casting to int of the source expression.
|
static Expression |
sub(Expression op1,
Expression op2)
Returns an expression which represents op1 - op2.
|
public static Expression field(String name)
name
- Field name.public static Expression add(Expression op1, Expression op2)
op1
- First operandop2
- Second operandpublic static Expression sub(Expression op1, Expression op2)
op1
- First operandop2
- Second operandpublic static Expression div(Expression op1, Expression op2)
op1
- First operandop2
- Second operandpublic static Expression mul(Expression op1, Expression op2)
op1
- First operandop2
- Second operandpublic static Expression mod(Expression op1, Expression op2)
op1
- First operandop2
- Second operandpublic static Expression sqr(Expression op)
op
- operandpublic static Expression pow(Expression op1, Expression op2)
op1
- First operandop2
- Second operandpublic static Expression len(String field)
field
- Name of the string field to get the lengthpublic static Expression string2floatCast(Expression source)
source
- Expression to be casted.public static Expression int2floatCast(Expression source)
source
- Expression to be casted.public static Expression decimal2floatCast(Expression source)
source
- Expression to be casted.public static Expression int2stringCast(Expression source)
source
- Expression to be casted.public static Expression float2stringCast(Expression source)
source
- Expression to be casted.public static Expression float2intCast(Expression source)
source
- Expression to be casted.public static Expression string2intCast(Expression source)
source
- Expression to be casted.public static Expression decimal2intCast(Expression source)
source
- Expression to be casted.Copyright © 2020. All rights reserved.