Class SelectorNode
- java.lang.Object
-
- net.timewalker.ffmq4.common.message.selector.expression.SelectorNode
-
- Direct Known Subclasses:
AbstractBinaryOperator,AbstractUnaryOperator,BetweenOperator,Identifier,Literal,StringLiteralList
public abstract class SelectorNode extends Object
Base implementation for a message selector language node.
-
-
Constructor Summary
Constructors Constructor Description SelectorNode()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Objectevaluate(javax.jms.Message message)Evaluate the nodeBooleanevaluateBoolean(javax.jms.Message message)Evaluate this node as a booleanNumberevaluateNumeric(javax.jms.Message message)Evaluate this node as a numberStringevaluateString(javax.jms.Message message)Evaluate this node as a stringprotected intgetNodeType(Object value)Get the type of a given valueprotected Objectnegate(Object value)Negate a boolean valueprotected Stringparenthesize(SelectorNode node)
-
-
-
Method Detail
-
evaluate
public abstract Object evaluate(javax.jms.Message message) throws javax.jms.JMSException
Evaluate the node- Throws:
javax.jms.JMSException
-
evaluateBoolean
public final Boolean evaluateBoolean(javax.jms.Message message) throws javax.jms.JMSException
Evaluate this node as a boolean- Throws:
javax.jms.JMSException
-
evaluateNumeric
public final Number evaluateNumeric(javax.jms.Message message) throws javax.jms.JMSException
Evaluate this node as a number- Throws:
javax.jms.JMSException
-
evaluateString
public final String evaluateString(javax.jms.Message message) throws javax.jms.JMSException
Evaluate this node as a string- Throws:
javax.jms.JMSException
-
getNodeType
protected final int getNodeType(Object value)
Get the type of a given value
-
parenthesize
protected final String parenthesize(SelectorNode node)
-
-