org.apache.qpid.filter
Class ComparisonExpression.LikeExpression

java.lang.Object
  extended by org.apache.qpid.filter.UnaryExpression
      extended by org.apache.qpid.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.filter.UnaryExpression
UnaryExpression.BooleanUnaryExpression
 
Field Summary
(package private)  Pattern likePattern
           
 
Fields inherited from class org.apache.qpid.filter.UnaryExpression
right
 
Constructor Summary
ComparisonExpression.LikeExpression(Expression right, String like, int escape)
           
 
Method Summary
 Object evaluate(AbstractJMSMessage message)
          org.apache.activemq.filter.Expression#evaluate(MessageEvaluationContext)
 String getExpressionSymbol()
          org.apache.activemq.filter.UnaryExpression#getExpressionSymbol()
 boolean matches(AbstractJMSMessage message)
           
 
Methods inherited from class org.apache.qpid.filter.UnaryExpression
createBooleanCast, createInExpression, createNegate, createNOT, 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(AbstractJMSMessage message)
                throws org.apache.qpid.AMQInternalException
org.apache.activemq.filter.Expression#evaluate(MessageEvaluationContext)

Specified by:
evaluate in interface Expression
Parameters:
message - The message to evaluate
Returns:
the value of this expression
Throws:
org.apache.qpid.AMQInternalException

matches

public boolean matches(AbstractJMSMessage message)
                throws org.apache.qpid.AMQInternalException
Specified by:
matches in interface BooleanExpression
Throws:
org.apache.qpid.AMQInternalException


Licensed to the Apache Software Foundation