Package org.apache.activemq.filter
Class MultiExpressionEvaluator.CacheExpression
- java.lang.Object
-
- org.apache.activemq.filter.UnaryExpression
-
- org.apache.activemq.filter.MultiExpressionEvaluator.CacheExpression
-
- All Implemented Interfaces:
Expression
- Enclosing class:
- MultiExpressionEvaluator
public class MultiExpressionEvaluator.CacheExpression extends UnaryExpression
A UnaryExpression that caches the result of the nested expression. The cached value is valid if the CacheExpression.cview==MultiExpressionEvaluator.view
-
-
Field Summary
-
Fields inherited from class org.apache.activemq.filter.UnaryExpression
right
-
-
Constructor Summary
Constructors Constructor Description CacheExpression(Expression realExpression)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)TODO: more efficient hashCode()Objectevaluate(MessageEvaluationContext message)StringgetExpressionSymbol()Returns the symbol that represents this binary expression.inthashCode()TODO: more efficient hashCode()StringtoString()-
Methods inherited from class org.apache.activemq.filter.UnaryExpression
createBooleanCast, createInExpression, createNegate, createNOT, createXPath, createXQuery, getRight, setRight
-
-
-
-
Constructor Detail
-
CacheExpression
public CacheExpression(Expression realExpression)
-
-
Method Detail
-
evaluate
public Object evaluate(MessageEvaluationContext message) throws JMSException
- Returns:
- the value of this expression
- Throws:
JMSException- See Also:
Expression.evaluate(MessageEvaluationContext)
-
hashCode
public int hashCode()
Description copied from class:UnaryExpressionTODO: more efficient hashCode()- Overrides:
hashCodein classUnaryExpression- See Also:
Object.hashCode()
-
equals
public boolean equals(Object o)
Description copied from class:UnaryExpressionTODO: more efficient hashCode()- Overrides:
equalsin classUnaryExpression- See Also:
Object.equals(java.lang.Object)
-
getExpressionSymbol
public String getExpressionSymbol()
Description copied from class:UnaryExpressionReturns the symbol that represents this binary expression. For example, addition is represented by "+"- Specified by:
getExpressionSymbolin classUnaryExpression- Returns:
-
toString
public String toString()
- Overrides:
toStringin classUnaryExpression- See Also:
Object.toString()
-
-