org.apache.qpid.server.filter
Class ComparisonExpression.LikeExpression

java.lang.Object
  extended by org.apache.qpid.server.filter.UnaryExpression
      extended by org.apache.qpid.server.filter.ComparisonExpression.LikeExpression
All Implemented Interfaces:
BooleanExpression, Expression
Enclosing class:
ComparisonExpression

static class ComparisonExpression.LikeExpression
extends UnaryExpression
implements BooleanExpression


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.qpid.server.filter.UnaryExpression
UnaryExpression.BooleanUnaryExpression
 
Field Summary
(package private)  Pattern likePattern
           
 
Fields inherited from class org.apache.qpid.server.filter.UnaryExpression
right
 
Constructor Summary
ComparisonExpression.LikeExpression(Expression right, String like, int escape)
           
 
Method Summary
 Object evaluate(Filterable message)
          org.apache.activemq.filter.Expression#evaluate(MessageEvaluationContext)
 String getExpressionSymbol()
          org.apache.activemq.filter.UnaryExpression#getExpressionSymbol()
 boolean matches(Filterable message)
           
 
Methods inherited from class org.apache.qpid.server.filter.UnaryExpression
createBooleanCast, createInExpression, createNegate, createNOT, createXPath, createXQuery, equals, getRight, hashCode, setRight, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

likePattern

Pattern likePattern
Constructor Detail

ComparisonExpression.LikeExpression

public ComparisonExpression.LikeExpression(Expression right,
                                           String like,
                                           int escape)
Parameters:
right -
Method Detail

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