Package org.apache.qpid.server.filter
Class BinaryExpression<T>
- java.lang.Object
-
- org.apache.qpid.server.filter.BinaryExpression<T>
-
- All Implemented Interfaces:
Expression<T>
- Direct Known Subclasses:
ArithmeticExpression
,ComparisonExpression
,LogicExpression
public abstract class BinaryExpression<T> extends Object implements Expression<T>
An expression which performs an operation on two expression values.
-
-
Constructor Summary
Constructors Constructor Description BinaryExpression(Expression<T> left, Expression<T> right)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
TODO: more efficient hashCode()abstract String
getExpressionSymbol()
Returns the symbol that represents this binary expression.Expression<T>
getLeft()
Expression<T>
getRight()
int
hashCode()
TODO: more efficient hashCode()String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.qpid.server.filter.Expression
evaluate
-
-
-
-
Constructor Detail
-
BinaryExpression
public BinaryExpression(Expression<T> left, Expression<T> right)
-
-
Method Detail
-
getLeft
public Expression<T> getLeft()
-
getRight
public Expression<T> getRight()
-
toString
public String toString()
- Overrides:
toString
in classObject
- See Also:
Object.toString()
-
hashCode
public int hashCode()
TODO: more efficient hashCode()- Overrides:
hashCode
in classObject
- See Also:
Object.hashCode()
-
equals
public boolean equals(Object o)
TODO: more efficient hashCode()- Overrides:
equals
in 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:
- the expression symbol
-
-