public class ConstantExpression extends java.lang.Object implements Expression
| Modifier and Type | Field and Description |
|---|---|
static org.apache.activemq.apollo.filter.ConstantExpression.BooleanConstantExpression |
FALSE |
static org.apache.activemq.apollo.filter.ConstantExpression.BooleanConstantExpression |
NULL |
static org.apache.activemq.apollo.filter.ConstantExpression.BooleanConstantExpression |
TRUE |
| Constructor and Description |
|---|
ConstantExpression(java.lang.Object value) |
| Modifier and Type | Method and Description |
|---|---|
static ConstantExpression |
createFloat(java.lang.String text) |
static ConstantExpression |
createFromDecimal(java.lang.String text) |
static ConstantExpression |
createFromHex(java.lang.String text) |
static ConstantExpression |
createFromOctal(java.lang.String text) |
static java.lang.String |
encodeString(java.lang.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(java.lang.Object o)
TODO: more efficient hashCode()
|
java.lang.Object |
evaluate(Filterable message) |
java.lang.Object |
getValue() |
int |
hashCode()
TODO: more efficient hashCode()
|
java.lang.String |
toString() |
public static final org.apache.activemq.apollo.filter.ConstantExpression.BooleanConstantExpression NULL
public static final org.apache.activemq.apollo.filter.ConstantExpression.BooleanConstantExpression TRUE
public static final org.apache.activemq.apollo.filter.ConstantExpression.BooleanConstantExpression FALSE
public static ConstantExpression createFromDecimal(java.lang.String text)
public static ConstantExpression createFromHex(java.lang.String text)
public static ConstantExpression createFromOctal(java.lang.String text)
public static ConstantExpression createFloat(java.lang.String text)
public java.lang.Object evaluate(Filterable message) throws FilterException
evaluate in interface ExpressionFilterExceptionpublic java.lang.Object getValue()
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public boolean equals(java.lang.Object o)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public static java.lang.String encodeString(java.lang.String s)
string - Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.