org.apache.qpid.server.filter
Class ComparisonExpression.LikeExpression
java.lang.Object
org.apache.qpid.server.filter.UnaryExpression
org.apache.qpid.server.filter.ComparisonExpression.LikeExpression
- All Implemented Interfaces:
- BooleanExpression, Expression
- Enclosing class:
- ComparisonExpression
static class ComparisonExpression.LikeExpression
- extends UnaryExpression
- implements BooleanExpression
Methods inherited from class org.apache.qpid.server.filter.UnaryExpression |
createBooleanCast, createInExpression, createNegate, createNOT, createXPath, createXQuery, equals, getRight, hashCode, setRight, toString |
likePattern
Pattern likePattern
ComparisonExpression.LikeExpression
public ComparisonExpression.LikeExpression(Expression right,
String like,
int escape)
- Parameters:
right
-
getExpressionSymbol
public String getExpressionSymbol()
- org.apache.activemq.filter.UnaryExpression#getExpressionSymbol()
- Specified by:
getExpressionSymbol
in class UnaryExpression
- Returns:
evaluate
public Object evaluate(Filterable message)
- org.apache.activemq.filter.Expression#evaluate(MessageEvaluationContext)
- Specified by:
evaluate
in interface Expression
- Returns:
- the value of this expression
matches
public boolean matches(Filterable message)
- Specified by:
matches
in interface BooleanExpression
- Returns:
- true if the expression evaluates to Boolean.TRUE.
Licensed to the Apache Software Foundation