org.activemq.filter
Class ConstantExpression
java.lang.Object
org.activemq.filter.ConstantExpression
- All Implemented Interfaces:
- Expression
public class ConstantExpression
- extends Object
- implements Expression
Represents a constant expression
- Version:
- $Revision: 1.1.1.1 $
Field Summary |
static org.activemq.filter.ConstantExpression.BooleanConstantExpression |
FALSE
|
static org.activemq.filter.ConstantExpression.BooleanConstantExpression |
NULL
|
static org.activemq.filter.ConstantExpression.BooleanConstantExpression |
TRUE
|
NULL
public static final org.activemq.filter.ConstantExpression.BooleanConstantExpression NULL
TRUE
public static final org.activemq.filter.ConstantExpression.BooleanConstantExpression TRUE
FALSE
public static final org.activemq.filter.ConstantExpression.BooleanConstantExpression FALSE
ConstantExpression
public ConstantExpression(Object value)
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(Message 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 © 2004-2010 Protique, Ltd.. All Rights Reserved.