Package org.apache.activemq.filter
Class ConstantExpression
java.lang.Object
org.apache.activemq.filter.ConstantExpression
- All Implemented Interfaces:
Expression
Represents a constant expression
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.apache.activemq.filter.ConstantExpression.BooleanConstantExpression
static final org.apache.activemq.filter.ConstantExpression.BooleanConstantExpression
static final org.apache.activemq.filter.ConstantExpression.BooleanConstantExpression
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ConstantExpression
createFloat
(String text) static ConstantExpression
createFromDecimal
(String text) static ConstantExpression
createFromHex
(String text) static ConstantExpression
createFromOctal
(String text) static String
Encodes the value of string so that it looks like it would look like when it was provided in a selector.boolean
TODO: more efficient hashCode()evaluate
(MessageEvaluationContext message) getValue()
int
hashCode()
TODO: more efficient hashCode()toString()
-
Field Details
-
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 Details
-
ConstantExpression
-
-
Method Details
-
createFromDecimal
-
createFromHex
-
createFromOctal
-
createFloat
-
evaluate
- Specified by:
evaluate
in interfaceExpression
- Returns:
- the value of this expression
- Throws:
jakarta.jms.JMSException
-
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
-- Returns:
-