org.apache.qpid.filter
Class BinaryExpression
java.lang.Object
org.apache.qpid.filter.BinaryExpression
- All Implemented Interfaces:
- Expression
- Direct Known Subclasses:
- ArithmeticExpression, ComparisonExpression, LogicExpression
public abstract class BinaryExpression
- extends Object
- implements Expression
An expression which performs an operation on two expression values.
left
protected Expression left
right
protected Expression right
BinaryExpression
public BinaryExpression(Expression left,
Expression right)
getLeft
public Expression getLeft()
getRight
public Expression getRight()
toString
public String toString()
- Overrides:
toString
in class Object
- See Also:
Object.toString()
hashCode
public int hashCode()
- TODO: more efficient hashCode()
- Overrides:
hashCode
in class Object
- See Also:
Object.hashCode()
equals
public boolean equals(Object o)
- TODO: more efficient hashCode()
- Overrides:
equals
in class Object
- See Also:
Object.equals(Object)
getExpressionSymbol
public abstract String getExpressionSymbol()
- Returns the symbol that represents this binary expression. For example, addition is
represented by "+"
- Returns:
setRight
public void setRight(Expression expression)
- Parameters:
expression
-
setLeft
public void setLeft(Expression expression)
- Parameters:
expression
-
Licensed to the Apache Software Foundation