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 Expressionleftprotected Expressionright-
Fields inherited from interface io.atlasmap.expression.Expression
CACHE
-
-
Constructor Summary
Constructors Constructor Description BinaryExpression(Expression left, Expression right)
-
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()ExpressiongetRight()inthashCode()TODO: more efficient hashCode()voidsetLeft(Expression expression)voidsetRight(Expression 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
-
right
protected Expression right
-
-
Constructor Detail
-
BinaryExpression
public BinaryExpression(Expression left, Expression right)
-
-
Method Detail
-
getLeft
public Expression getLeft()
-
getRight
public Expression getRight()
-
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)
- Parameters:
expression- rightExpression
-
setLeft
public void setLeft(Expression expression)
- Parameters:
expression- leftExpression
-
-