Class ConstantExpression
java.lang.Object
org.apache.qpid.jms.selector.filter.ConstantExpression
- All Implemented Interfaces:
Expression
Represents a constant expression
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.apache.qpid.jms.selector.filter.ConstantExpression.BooleanConstantExpressionstatic final org.apache.qpid.jms.selector.filter.ConstantExpression.BooleanConstantExpressionstatic final org.apache.qpid.jms.selector.filter.ConstantExpression.BooleanConstantExpression -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ConstantExpressioncreateFloat(String text) static ConstantExpressioncreateFromDecimal(String text) static ConstantExpressioncreateFromHex(String text) static ConstantExpressioncreateFromOctal(String text) static StringEncodes the value of string so that it looks like it would look like when it was provided in a selector.booleanTODO: more efficient hashCode()evaluate(Filterable message) getValue()inthashCode()TODO: more efficient hashCode()toString()
-
Field Details
-
NULL
public static final org.apache.qpid.jms.selector.filter.ConstantExpression.BooleanConstantExpression NULL -
TRUE
public static final org.apache.qpid.jms.selector.filter.ConstantExpression.BooleanConstantExpression TRUE -
FALSE
public static final org.apache.qpid.jms.selector.filter.ConstantExpression.BooleanConstantExpression FALSE
-
-
Constructor Details
-
ConstantExpression
-
-
Method Details
-
createFromDecimal
-
createFromHex
-
createFromOctal
-
createFloat
-
evaluate
- Specified by:
evaluatein interfaceExpression- Parameters:
message- The message that is being selected against.- Returns:
- the value of this expression
- Throws:
FilterException- if an error occurs during evaluation.
-
getValue
-
toString
-
hashCode
public int hashCode()TODO: more efficient hashCode() -
equals
TODO: more efficient hashCode() -
encodeString
Encodes the value of string so that it looks like it would look like when it was provided in a selector.- Parameters:
s- the original string- Returns:
- the encoded String
-