|
|||||||||
| Home >> All >> com >> presumo >> jms >> [ selector overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.presumo.jms.selector
Class JmsLike

java.lang.Objectcom.presumo.jms.selector.JmsOperand
com.presumo.jms.selector.JmsBinaryOperand
com.presumo.jms.selector.JmsLike
- final class JmsLike
- extends JmsBinaryOperand
Expression node to representing SQL Like.
| Field Summary | |
protected char |
escapeChar
|
protected boolean |
escaped
|
protected java.lang.String |
expression
|
protected JmsOperand |
lvalue
|
protected RegExp |
regexp
|
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 |
JmsLike(JmsIdentifier lvalue,
JmsStringLiteral rvalue,
boolean escaped,
char escapeChar)
|
| Method Summary | |
protected void |
delete(JmsOperand parent)
|
protected char |
escapeChar()
|
(package private) JmsOperand |
evaluate(javax.jms.Message msg)
Evaluates the expression tree represented by this node. |
(package private) static JmsLike |
getInstance(JmsIdentifier lvalue,
JmsStringLiteral rvalue)
|
(package private) static JmsLike |
getInstance(JmsIdentifier lvalue,
JmsStringLiteral rvalue,
char escapeChar)
|
protected static JmsBinaryOperand |
getInstanceNonReflective(short parentType,
JmsOperand lvalue,
JmsOperand rvalue)
Called when order matters. |
private static JmsLike |
getInstanceOfLike(JmsIdentifier lvalue,
JmsStringLiteral rvalue,
boolean isEscaped,
char escapeChar)
Used to determine if there were any previous LIKE(s) that were logically equivelant. |
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 boolean |
isEscaped()
|
protected JmsOperand |
leftChild()
|
(package private) void |
printTree(int level)
|
protected JmsOperand |
rightChild()
|
java.lang.String |
toString()
Convert this Object to a human-readable String. |
(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, wait, wait, wait |
| Field Detail |
escaped
protected boolean escaped
escapeChar
protected char escapeChar
expression
protected java.lang.String expression
regexp
protected RegExp regexp
STRING_REP
protected static java.lang.String STRING_REP
lvalue
protected JmsOperand lvalue
rvalue
protected JmsOperand rvalue
| Constructor Detail |
JmsLike
protected JmsLike(JmsIdentifier lvalue, JmsStringLiteral rvalue, boolean escaped, char escapeChar) throws ParseException
| Method Detail |
getInstance
static JmsLike getInstance(JmsIdentifier lvalue, JmsStringLiteral rvalue, char escapeChar) throws ParseException
getInstance
static JmsLike getInstance(JmsIdentifier lvalue, JmsStringLiteral rvalue) throws ParseException
getInstanceOfLike
private static JmsLike getInstanceOfLike(JmsIdentifier lvalue, JmsStringLiteral rvalue, boolean isEscaped, char escapeChar)
- Used to determine if there were any previous LIKE(s) that were logically
equivelant.
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object - Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string concatenation with this object. If the result is
null, string concatenation will instead use"null".The default implementation returns
getClass().getName() + "@" + Integer.toHexString(hashCode()).
evaluate
JmsOperand evaluate(javax.jms.Message msg) throws SelectorFalseException
- Description copied from class:
JmsOperand - Evaluates the expression tree represented by this node.
- Specified by:
evaluatein classJmsOperand
getType
short getType()
- Specified by:
getTypein classJmsOperand
unParse
java.lang.String unParse()
- Description copied from class:
JmsOperand - Returns a String representing the SQL form of the filter which is logically
equivilant.
- Overrides:
unParsein classJmsBinaryOperand
isEscaped
protected boolean isEscaped()
escapeChar
protected char escapeChar()
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:
incrementAllRefCountsin classJmsOperand
printTree
void printTree(int level)
- Overrides:
printTreein classJmsOperand
leftChild
protected JmsOperand leftChild()
rightChild
protected JmsOperand rightChild()
delete
protected void delete(JmsOperand parent)
- Overrides:
deletein classJmsOperand
|
|||||||||
| Home >> All >> com >> presumo >> jms >> [ selector overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC