java.lang.Object
com.presumo.jms.selector.JmsOperand
com.presumo.jms.selector.JmsBinaryOperand
com.presumo.jms.selector.JmsGreater
- final class JmsGreater
- extends JmsBinaryOperand
Expression node for the SQL greater than expression. There is no
implementation for greater than equals ">=" because the parser
represents such statements as a less than with the operands switched.
| Fields inherited from class com.presumo.jms.selector.JmsOperand |
evalNumber, JMS_BINARY_ADD, JMS_BINARY_AND, JMS_BINARY_DIV, JMS_BINARY_MULT, JMS_BINARY_OR, JMS_BINARY_SUB, JMS_BOOLEAN_LITERAL, JMS_EQUALS, JMS_FLOAT_LITERAL, JMS_GREATER, JMS_IDENTIFIER, JMS_INTEGER_LITERAL, JMS_IS, JMS_LESS, JMS_LIKE, JMS_NOT, JMS_STRING_LITERAL, lastEval, myEvalNumber, parents, refcount |
| Methods inherited from class com.presumo.jms.selector.JmsOperand |
addParent, addParentRef, allParents, delete, evaluateOnce, getAllInstances, hasParent, incrementRefCount, numberOfParents, removeParent, resetStoredEvals |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STRING_REP
protected static java.lang.String STRING_REP
lvalue
protected JmsOperand lvalue
rvalue
protected JmsOperand rvalue
JmsGreater
protected JmsGreater(JmsOperand lvalue,
JmsOperand rvalue)
getInstance
static JmsGreater getInstance(JmsOperand lvalue,
JmsOperand rvalue)
evaluate
JmsOperand evaluate(javax.jms.Message msg)
throws SelectorFalseException
- Description copied from class:
JmsOperand
- Evaluates the expression tree represented by this node.
- Specified by:
evaluate in class JmsOperand
getType
short getType()
- Specified by:
getType in class JmsOperand
getInstanceReflective
protected static JmsBinaryOperand getInstanceReflective(short parentType,
JmsOperand lvalue,
JmsOperand rvalue)
- Called when the left and the right values can be interchanged like
with an equals statement.
getInstanceNonReflective
protected static JmsBinaryOperand getInstanceNonReflective(short parentType,
JmsOperand lvalue,
JmsOperand rvalue)
- Called when order matters.
incrementAllRefCounts
void incrementAllRefCounts()
- Description copied from class:
JmsOperand
- Increments all reference counts in this tree
- Overrides:
incrementAllRefCounts in class JmsOperand
unParse
java.lang.String unParse()
- Description copied from class:
JmsOperand
- Returns a String representing the SQL form of the filter which is logically
equivilant.
- Specified by:
unParse in class JmsOperand
printTree
void printTree(int level)
- Overrides:
printTree in class JmsOperand
leftChild
protected JmsOperand leftChild()
rightChild
protected JmsOperand rightChild()
delete
protected void delete(JmsOperand parent)
- Overrides:
delete in class JmsOperand