org.apache.qpid.server.filter
Class ConstantExpression
java.lang.Object
org.apache.qpid.server.filter.ConstantExpression
- All Implemented Interfaces:
- Expression
- Direct Known Subclasses:
- ConstantExpression.BooleanConstantExpression
public class ConstantExpression
- extends Object
- implements Expression
Represents a constant expression
NULL
public static final ConstantExpression.BooleanConstantExpression NULL
TRUE
public static final ConstantExpression.BooleanConstantExpression TRUE
FALSE
public static final 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(Filterable message)
- Specified by:
evaluate
in interface Expression
- Returns:
- the value of this expression
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:
s
-
- Returns:
Licensed to the Apache Software Foundation