Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.presumo.jms.selector
Class JmsLess  view JmsLess download JmsLess.java

java.lang.Object
  extended bycom.presumo.jms.selector.JmsOperand
      extended bycom.presumo.jms.selector.JmsBinaryOperand
          extended bycom.presumo.jms.selector.JmsLess

final class JmsLess
extends JmsBinaryOperand

Expression node for the SQL less than expression. There is no implementation for less than equals "<=" because the parser represents such statements as a greater than with the operands switched.


Field Summary
protected  JmsOperand lvalue
           
protected  JmsOperand rvalue
           
protected static java.lang.String STRING_REP
           
 
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
 
Constructor Summary
protected JmsLess(JmsOperand lvalue, JmsOperand rvalue)
           
 
Method Summary
protected  void delete(JmsOperand parent)
           
(package private)  JmsOperand evaluate(javax.jms.Message msg)
          Evaluates the expression tree represented by this node.
(package private) static JmsLess getInstance(JmsOperand lvalue, JmsOperand rvalue)
           
protected static JmsBinaryOperand getInstanceNonReflective(short parentType, JmsOperand lvalue, JmsOperand rvalue)
          Called when order matters.
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.
(package private)  short getType()
           
(package private)  void incrementAllRefCounts()
          Increments all reference counts in this tree
protected  JmsOperand leftChild()
           
(package private)  void printTree(int level)
           
protected  JmsOperand rightChild()
           
(package private)  java.lang.String unParse()
          Returns a String representing the SQL form of the filter which is logically equivilant.
 
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
 

Field Detail

STRING_REP

protected static java.lang.String STRING_REP

lvalue

protected JmsOperand lvalue

rvalue

protected JmsOperand rvalue
Constructor Detail

JmsLess

protected JmsLess(JmsOperand lvalue,
                  JmsOperand rvalue)
Method Detail

getInstance

static JmsLess 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