Package org.apache.qpid.server.filter
Class LogicExpression<T>
- java.lang.Object
-
- org.apache.qpid.server.filter.BinaryExpression<T>
-
- org.apache.qpid.server.filter.LogicExpression<T>
-
- All Implemented Interfaces:
BooleanExpression<T>
,Expression<T>
public abstract class LogicExpression<T> extends BinaryExpression<T> implements BooleanExpression<T>
A filter performing a comparison of two objects
-
-
Constructor Summary
Constructors Constructor Description LogicExpression(BooleanExpression<T> left, BooleanExpression<T> right)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static <E> BooleanExpression<E>
createAND(BooleanExpression<E> lvalue, BooleanExpression<E> rvalue)
static <E> BooleanExpression<E>
createOR(BooleanExpression<E> lvalue, BooleanExpression<E> rvalue)
abstract Object
evaluate(T message)
boolean
matches(T message)
-
Methods inherited from class org.apache.qpid.server.filter.BinaryExpression
equals, getExpressionSymbol, getLeft, getRight, hashCode, toString
-
-
-
-
Constructor Detail
-
LogicExpression
public LogicExpression(BooleanExpression<T> left, BooleanExpression<T> right)
-
-
Method Detail
-
createOR
public static <E> BooleanExpression<E> createOR(BooleanExpression<E> lvalue, BooleanExpression<E> rvalue)
-
createAND
public static <E> BooleanExpression<E> createAND(BooleanExpression<E> lvalue, BooleanExpression<E> rvalue)
-
evaluate
public abstract Object evaluate(T message)
- Specified by:
evaluate
in interfaceExpression<T>
- Parameters:
message
- object to evaluate- Returns:
- the value of this expression
-
matches
public boolean matches(T message)
- Specified by:
matches
in interfaceBooleanExpression<T>
- Parameters:
message
- object to match- Returns:
- true if the expression evaluates to Boolean.TRUE.
-
-