org.apache.activemq.filter
Class ConstantExpression

java.lang.Object
  extended by org.apache.activemq.filter.ConstantExpression
All Implemented Interfaces:
Expression

public class ConstantExpression
extends Object
implements Expression

Represents a constant expression


Field Summary
static org.apache.activemq.filter.ConstantExpression.BooleanConstantExpression FALSE
           
static org.apache.activemq.filter.ConstantExpression.BooleanConstantExpression NULL
           
static org.apache.activemq.filter.ConstantExpression.BooleanConstantExpression TRUE
           
 
Constructor Summary
ConstantExpression(Object value)
           
 
Method Summary
static ConstantExpression createFloat(String text)
           
static ConstantExpression createFromDecimal(String text)
           
static ConstantExpression createFromHex(String text)
           
static ConstantExpression createFromOctal(String text)
           
static String encodeString(String s)
          Encodes the value of string so that it looks like it would look like when it was provided in a selector.
 boolean equals(Object o)
          TODO: more efficient hashCode()
 Object evaluate(MessageEvaluationContext message)
           
 Object getValue()
           
 int hashCode()
          TODO: more efficient hashCode()
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NULL

public static final org.apache.activemq.filter.ConstantExpression.BooleanConstantExpression NULL

TRUE

public static final org.apache.activemq.filter.ConstantExpression.BooleanConstantExpression TRUE

FALSE

public static final org.apache.activemq.filter.ConstantExpression.BooleanConstantExpression FALSE
Constructor Detail

ConstantExpression

public ConstantExpression(Object value)
Method Detail

createFromDecimal

public static ConstantExpression createFromDecimal(String text)

createFromHex

public static ConstantExpression createFromHex(String text)

createFromOctal

public static ConstantExpression createFromOctal(String text)

createFloat

public static ConstantExpression createFloat(String text)

evaluate

public Object evaluate(MessageEvaluationContext message)
                throws JMSException
Specified by:
evaluate in interface Expression
Returns:
the value of this expression
Throws:
JMSException

getValue

public Object getValue()

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

hashCode

public int hashCode()
TODO: more efficient hashCode()

Overrides:
hashCode in class Object
See Also:
Object.hashCode()

equals

public boolean equals(Object o)
TODO: more efficient hashCode()

Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

encodeString

public static String encodeString(String s)
Encodes the value of string so that it looks like it would look like when it was provided in a selector.

Parameters:
string -
Returns:


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.