public abstract class Expression extends Object
Constructor and Description |
---|
Expression() |
Modifier and Type | Method and Description |
---|---|
Expression |
add(Object expression)
Create an add expression to add the given expression to the current expression
|
Expression |
and(Object expression)
Create a logical AND expression that performs logical AND operation with
the current expression.
|
abstract Object |
asJSON() |
Expression |
between(Object expression1,
Object expression2)
Create a between expression that evaluates whether or not the current expression is
between the given expressions inclusively.
|
Expression |
collate(Collation collation) |
Expression |
concat(Object expression)
Create a concat expression to concatenate the current expression with the given expression.
|
Expression |
divide(Object expression)
Create a divide expression to divide the current expression by the given expression.
|
Expression |
equalTo(Object expression)
Create an equal to expression that evaluates whether or not the current expression
is equal to the given expression.
|
Expression |
greaterThan(Object expression)
Create a greater than expression that evaluates whether or not the current expression
is greater than the given expression.
|
Expression |
greaterThanOrEqualTo(Object expression)
Create a greater than or equal to expression that evaluates whether or not the current
expression is greater than or equal to the given expression.
|
Expression |
in(Object... expressions)
Create an IN expression that evaluates whether or not the current expression is in the
given expressions.
|
Expression |
is(Object expression)
Create an IS expression that evaluates whether or not the current expression is equal to
the given expression.
|
Expression |
isNot(Object expression)
Create an IS NOT expression that evaluates whether or not the current expression is not
equal to the given expression.
|
Expression |
isNullOrMissing() |
protected Object |
jsonValue(Object value) |
Expression |
lessThan(Object expression)
Create a less than expression that evaluates whether or not the current expression
is less than the given expression.
|
Expression |
lessThanOrEqualTo(Object expression)
Create a less than or equal to expression that evaluates whether or not the current
expression is less than or equal to the given expression.
|
Expression |
like(Object expression)
Create a Like expression that evaluates whether or not the current expression is LIKE
the given expression.
|
Expression |
modulo(Object expression)
Create a modulo expression to modulo the current expression by the given expression.
|
Expression |
multiply(Object expression)
Create a multiply expression to multiply the current expression by the given expression.
|
static Expression |
negated(Object expression)
Create a negated expression to represent the negated result of the given expression.
|
static Expression |
not(Object expression)
Create a negated expression to represent the negated result of the given expression.
|
Expression |
notEqualTo(Object expression)
Create a NOT equal to expression that evaluates whether or not the current expression
is not equal to the given expression.
|
Expression |
notNullOrMissing() |
Expression |
or(Object expression)
Create a logical OR expression that performs logical OR operation with
the current expression.
|
static Expression |
parameter(String name) |
static PropertyExpression |
property(String property)
Create a property expression representing the value of the given property.
|
Expression |
regex(Object expression)
Create a regex match expression that evaluates whether or not the current expression
regex matches the given expression.
|
Expression |
subtract(Object expression)
Create a subtract expression to subtract the given expression from the current expression.
|
String |
toString() |
static Expression |
variable(String name) |
public static PropertyExpression property(String property)
property
- the name of the property in the form of a key path.public static Expression parameter(String name)
public static Expression negated(Object expression)
expression
- the expression to be negated.public static Expression not(Object expression)
expression
- the expression to be negated.public Expression concat(Object expression)
expression
- the expression to concatenate with.public Expression multiply(Object expression)
expression
- the expression to multiply by.public Expression divide(Object expression)
expression
- the expression to divide by.public Expression modulo(Object expression)
expression
- the expression to modulo by.public Expression add(Object expression)
expression
- an expression to add to the current expression.public Expression subtract(Object expression)
expression
- an expression to subtract from the current expression.public Expression lessThan(Object expression)
expression
- the expression to compare with the current expression.public Expression lessThanOrEqualTo(Object expression)
expression
- the expression to compare with the current expression.public Expression greaterThan(Object expression)
expression
- the expression to compare with the current expression.public Expression greaterThanOrEqualTo(Object expression)
expression
- the expression to compare with the current expression.public Expression equalTo(Object expression)
expression
- the expression to compare with the current expression.public Expression notEqualTo(Object expression)
expression
- the expression to compare with the current expression.public Expression and(Object expression)
expression
- the expression to AND with the current expression.public Expression or(Object expression)
expression
- the expression to OR with the current expression.public Expression like(Object expression)
expression
- the expression to compare with the current expression.public Expression regex(Object expression)
expression
- the expression to compare with the current expression.public Expression is(Object expression)
expression
- the expression to compare with the current expression.public Expression isNot(Object expression)
expression
- the expression to compare with the current expression.public Expression between(Object expression1, Object expression2)
expression1
- the inclusive lower bound expression.expression2
- the inclusive upper bound expression.public Expression isNullOrMissing()
public Expression notNullOrMissing()
public Expression collate(Collation collation)
public Expression in(Object... expressions)
expressions
- the expression array to evaluate with.public static Expression variable(String name)
public abstract Object asJSON()