public class ConstantExpression<T> extends Object implements Expression<T>
| Modifier and Type | Field and Description |
|---|---|
static org.apache.qpid.filter.ConstantExpression.BooleanConstantExpression |
FALSE |
static org.apache.qpid.filter.ConstantExpression.BooleanConstantExpression |
NULL |
static org.apache.qpid.filter.ConstantExpression.BooleanConstantExpression |
TRUE |
| Constructor and Description |
|---|
ConstantExpression(Object value) |
| Modifier and Type | Method and Description |
|---|---|
static <E> ConstantExpression<E> |
createFloat(String text) |
static <E> ConstantExpression<E> |
createFromDecimal(String text) |
static <E> ConstantExpression<E> |
createFromHex(String text) |
static <E> ConstantExpression<E> |
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(T message) |
static <E> ConstantExpression<E> |
FALSE() |
Object |
getValue() |
int |
hashCode()
TODO: more efficient hashCode()
|
static <E> ConstantExpression<E> |
NULL() |
String |
toString() |
static <E> ConstantExpression<E> |
TRUE() |
public static final org.apache.qpid.filter.ConstantExpression.BooleanConstantExpression NULL
public static final org.apache.qpid.filter.ConstantExpression.BooleanConstantExpression TRUE
public static final org.apache.qpid.filter.ConstantExpression.BooleanConstantExpression FALSE
public ConstantExpression(Object value)
public static <E> ConstantExpression<E> NULL()
public static <E> ConstantExpression<E> TRUE()
public static <E> ConstantExpression<E> FALSE()
public static <E> ConstantExpression<E> createFromDecimal(String text)
public static <E> ConstantExpression<E> createFromHex(String text)
public static <E> ConstantExpression<E> createFromOctal(String text)
public static <E> ConstantExpression<E> createFloat(String text)
public Object evaluate(T message)
evaluate in interface Expression<T>message - object to evaluatepublic Object getValue()
public String toString()
toString in class ObjectObject.toString()public int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object o)
equals in class ObjectObject.equals(java.lang.Object)Copyright © 2006–2018 The Apache Software Foundation. All rights reserved.