public class GTLTExpression extends BinaryExpression
You can also force a "string" comparison by prefixing with "$". This will force
both sides to be strings via the toString method.
left, right| Constructor and Description |
|---|
GTLTExpression() |
| Modifier and Type | Method and Description |
|---|---|
int |
getType() |
boolean |
isIgnoreCase() |
boolean |
isTrue(Object o,
Query q)
Return whether this expression evaluates to true.
|
void |
setIgnoreCase(boolean v) |
void |
setType(int t)
Type is an integer here for speed purposes, however one of the constants
should be used.
|
String |
toString()
Return a string version of the expression.
|
getExpectedReturnType, getLeft, getRight, getValue, hasFixedResult, init, setLeft, setRightisBracketed, setBracketedpublic int getType()
public void setType(int t)
t - The type of expression.public void setIgnoreCase(boolean v)
public boolean isIgnoreCase()
public boolean isTrue(Object o, Query q) throws QueryExecutionException
Utilities.compare(Object,Object) which copes with
the object types.isTrue in class Expressiono - The current object to evaluate the expression on.q - The Query object.true if the expression evaluates to true.QueryExecutionException - If the expression cannot be evaluated.public String toString()
Expression [ $ ] <|> [ = ] ExpressiontoString in class Expression