Package org.apache.activemq.filter
Class UnaryExpression
- java.lang.Object
-
- org.apache.activemq.filter.UnaryExpression
-
- All Implemented Interfaces:
Expression
- Direct Known Subclasses:
MultiExpressionEvaluator.CacheExpression
public abstract class UnaryExpression extends Object implements Expression
An expression which performs an operation on two expression values
-
-
Field Summary
Fields Modifier and Type Field Description protected Expressionright
-
Constructor Summary
Constructors Constructor Description UnaryExpression(Expression left)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static BooleanExpressioncreateBooleanCast(Expression left)static BooleanExpressioncreateInExpression(PropertyExpression right, List<Object> elements, boolean not)static ExpressioncreateNegate(Expression left)static BooleanExpressioncreateNOT(BooleanExpression left)static BooleanExpressioncreateXPath(String xpath)static BooleanExpressioncreateXQuery(String xpath)booleanequals(Object o)TODO: more efficient hashCode()abstract StringgetExpressionSymbol()Returns the symbol that represents this binary expression.ExpressiongetRight()inthashCode()TODO: more efficient hashCode()voidsetRight(Expression expression)StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.activemq.filter.Expression
evaluate
-
-
-
-
Field Detail
-
right
protected Expression right
-
-
Constructor Detail
-
UnaryExpression
public UnaryExpression(Expression left)
-
-
Method Detail
-
createNegate
public static Expression createNegate(Expression left)
-
createInExpression
public static BooleanExpression createInExpression(PropertyExpression right, List<Object> elements, boolean not)
-
createNOT
public static BooleanExpression createNOT(BooleanExpression left)
-
createXPath
public static BooleanExpression createXPath(String xpath)
-
createXQuery
public static BooleanExpression createXQuery(String xpath)
-
createBooleanCast
public static BooleanExpression createBooleanCast(Expression left)
-
getRight
public Expression getRight()
-
setRight
public void setRight(Expression expression)
-
toString
public String toString()
- Overrides:
toStringin classObject- See Also:
Object.toString()
-
hashCode
public int hashCode()
TODO: more efficient hashCode()- Overrides:
hashCodein classObject- See Also:
Object.hashCode()
-
equals
public boolean equals(Object o)
TODO: more efficient hashCode()- Overrides:
equalsin classObject- See Also:
Object.equals(java.lang.Object)
-
getExpressionSymbol
public abstract String getExpressionSymbol()
Returns the symbol that represents this binary expression. For example, addition is represented by "+"- Returns:
-
-