Package org.apache.qpid.server.filter
Class UnaryExpression<T>
- java.lang.Object
-
- org.apache.qpid.server.filter.UnaryExpression<T>
-
- All Implemented Interfaces:
Expression<T>
public abstract class UnaryExpression<T> extends Object implements Expression<T>
An expression which performs an operation on two expression values
-
-
Constructor Summary
Constructors Constructor Description UnaryExpression(Expression<T> left)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static <E> BooleanExpression<E>
createBooleanCast(Expression<E> left)
static <E> BooleanExpression<E>
createInExpression(Expression<E> right, List<?> elements, boolean not, boolean allowNonJms)
static <E> Expression<E>
createNegate(Expression<E> left)
static <E> BooleanExpression<E>
createNOT(BooleanExpression<E> left)
boolean
equals(Object o)
TODO: more efficient hashCode()abstract String
getExpressionSymbol()
Returns the symbol that represents this binary expression.Expression<T>
getRight()
int
hashCode()
TODO: more efficient hashCode()String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.qpid.server.filter.Expression
evaluate
-
-
-
-
Constructor Detail
-
UnaryExpression
public UnaryExpression(Expression<T> left)
-
-
Method Detail
-
createNegate
public static <E> Expression<E> createNegate(Expression<E> left)
-
createInExpression
public static <E> BooleanExpression<E> createInExpression(Expression<E> right, List<?> elements, boolean not, boolean allowNonJms)
-
createNOT
public static <E> BooleanExpression<E> createNOT(BooleanExpression<E> left)
-
createBooleanCast
public static <E> BooleanExpression<E> createBooleanCast(Expression<E> left)
-
getRight
public Expression<T> getRight()
-
toString
public String toString()
- Overrides:
toString
in classObject
- See Also:
Object.toString()
-
hashCode
public int hashCode()
TODO: more efficient hashCode()- Overrides:
hashCode
in classObject
- See Also:
Object.hashCode()
-
equals
public boolean equals(Object o)
TODO: more efficient hashCode()- Overrides:
equals
in classObject
- See Also:
Object.equals(java.lang.Object)
-
getExpressionSymbol
public abstract String getExpressionSymbol()
Returns the symbol that represents this binary expression. For example, addition is represented by "+"- Returns:
- symbol
-
-