Package io.atlasmap.expression.internal
Class BinaryExpression
- java.lang.Object
-
- io.atlasmap.expression.internal.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.- Version:
- $Revision: 1.2 $
-
-
Field Summary
Fields Modifier and Type Field Description protected Expressionleftleft expressionprotected Expressionrightright expression-
Fields inherited from interface io.atlasmap.expression.Expression
CACHE
-
-
Constructor Summary
Constructors Constructor Description BinaryExpression(Expression left, Expression right)A constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)abstract StringgetExpressionSymbol()Returns the symbol that represents this binary expression.ExpressiongetLeft()Gets left expression.ExpressiongetRight()Gets right expression.inthashCode()TODO: more efficient hashCode()voidsetLeft(Expression expression)Sets left expression.voidsetRight(Expression expression)Sets right expression.StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.atlasmap.expression.Expression
evaluate
-
-
-
-
Field Detail
-
left
protected Expression left
left expression
-
right
protected Expression right
right expression
-
-
Constructor Detail
-
BinaryExpression
public BinaryExpression(Expression left, Expression right)
A constructor.- Parameters:
left- leftright- right
-
-
Method Detail
-
getLeft
public Expression getLeft()
Gets left expression.- Returns:
- left
-
getRight
public Expression getRight()
Gets right expression.- Returns:
- right
-
getExpressionSymbol
public abstract String getExpressionSymbol()
Returns the symbol that represents this binary expression. For example, addition is represented by "+"- Returns:
- expression symbol string
-
setRight
public void setRight(Expression expression)
Sets right expression.- Parameters:
expression- rightExpression
-
setLeft
public void setLeft(Expression expression)
Sets left expression.- Parameters:
expression- leftExpression
-
-