public class BetweenExpression extends BinaryExpression
left, right| Constructor and Description |
|---|
BetweenExpression() |
| Modifier and Type | Method and Description |
|---|---|
Expression |
getEnd()
Get the end expression.
|
Expression |
getStart()
Get the start expression.
|
void |
init(Query q)
Inits the expression.
|
boolean |
isNot() |
boolean |
isTrue(Object o,
Query q)
Return whether this expression evaluates to
true. |
void |
setEnd(ValueExpression e) |
void |
setNot(boolean v) |
void |
setStart(ValueExpression s) |
String |
toString()
Returns a string version of this expression.
|
getExpectedReturnType, getLeft, getRight, getValue, hasFixedResult, setLeft, setRightisBracketed, setBracketedpublic void init(Query q) throws QueryParseException
init in class BinaryExpressionq - The Query object.QueryParseException - If the LHS, start or end cannot be inited.public Expression getStart()
ValueExpression.public Expression getEnd()
ValueExpression.public void setEnd(ValueExpression e)
public void setStart(ValueExpression s)
public boolean isNot()
public void setNot(boolean v)
public boolean isTrue(Object o, Query q) throws QueryExecutionException
true.
Is equivalent to: LHS >= START AND LHS <= END. And of course if the
expression is NOTed then it returns !(LHS >= START AND LHS <= END).isTrue in class Expressiono - The object to perform the expression on.q - The Query object.true if the LHS is between the start and end values.QueryExecutionException - If the expression cannot be executed.public String toString()
Expression[ NOT ] BETWEENExpressionANDExpression
toString in class Expression