|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.gridsystems.beanfilter.EvalValue
com.gridsystems.beanfilter.EvalNode
com.gridsystems.beanfilter.CompareNode
public class CompareNode
Comparison operation.
| Field Summary |
|---|
| Fields inherited from class com.gridsystems.beanfilter.EvalValue |
|---|
BOOLEAN, COLLECTION, NUMBER, STRING, UNKNOWN, VOID |
| Fields inherited from interface com.gridsystems.beanfilter.FilterParserConstants |
|---|
ALLITEMS, AND, ANYITEMS, COMMA, CONTAINS, DEFAULT, DOT, EOF, EQ, ESCAPES, EXPONENT, FALSE, GE, GT, IDENTIFIER, IN, LBRACKET, LE, LIKE, LPAREN, LT, MATCHES, NE, NOT, NULL, NUMBER, OR, RBRACKET, RPAREN, SELECT, SIZEOF, STRING, STRING1, STRING2, THIS, tokenImage, TRUE, WHERE |
| Constructor Summary | |
|---|---|
CompareNode(EvalValue lval,
int op,
EvalValue rval,
java.lang.Class<?> parentClass)
Creates a new instance. |
|
| Method Summary | |
|---|---|
boolean |
eval(java.lang.Object src)
Evaluates the node. |
static boolean |
evaluateOperation(EvalValue lval,
EvalValue rval,
java.lang.Object lobj,
int op,
java.lang.Object robj)
|
EvalValue |
getLeftValue()
Gets the left value. |
int |
getOp()
Gets the operation of this node. |
EvalValue |
getRightValue()
Gets the right value. |
java.lang.String |
toString()
|
| Methods inherited from class com.gridsystems.beanfilter.EvalNode |
|---|
getClassValue, getValue |
| Methods inherited from class com.gridsystems.beanfilter.EvalValue |
|---|
getCharPos, getLinePos |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CompareNode(EvalValue lval,
int op,
EvalValue rval,
java.lang.Class<?> parentClass)
throws EvalException
lval - Left operandop - Operationrval - Right operandparentClass - Parent Class
EvalException - If an error occurs| Method Detail |
|---|
public boolean eval(java.lang.Object src)
throws EvalException
eval in class EvalNodesrc - Data source, for dynamic nodes
true if src makes true the node
EvalException - If an error occurs
public static boolean evaluateOperation(EvalValue lval,
EvalValue rval,
java.lang.Object lobj,
int op,
java.lang.Object robj)
throws EvalException
lval - Left EvalValue.rval - Right EvalValue.lobj - The left operandop - Operationrobj - The right operand
EvalException - If errorpublic EvalValue getLeftValue()
public EvalValue getRightValue()
public int getOp()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||