Package io.atlasmap.expression.internal
Class UnaryExpression
- java.lang.Object
-
- io.atlasmap.expression.internal.UnaryExpression
-
- All Implemented Interfaces:
Expression
public abstract class UnaryExpression extends Object implements Expression
An expression which performs an operation on two expression values.- Version:
- $Revision: 1.3 $
-
-
Field Summary
Fields Modifier and Type Field Description protected Expressionrightright-
Fields inherited from interface io.atlasmap.expression.Expression
CACHE
-
-
Constructor Summary
Constructors Constructor Description UnaryExpression(Expression left)A constructor.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static BooleanExpressioncreateBooleanCast(Expression left)Creates boolean cast.static BooleanExpressioncreateInExpression(VariableExpression right, List<Object> elements, boolean not)Creates in expression.static ExpressioncreateNegate(Expression left)Creates negate expression.static BooleanExpressioncreateNOT(BooleanExpression left)Creates not expression.booleanequals(Object o)TODO: more efficient hashCode()abstract StringgetExpressionSymbol()Returns the symbol that represents this binary expression.ExpressiongetRight()Gets the right expression.inthashCode()TODO: more efficient hashCode()voidsetRight(Expression expression)Sets the 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
-
right
protected Expression right
right
-
-
Constructor Detail
-
UnaryExpression
public UnaryExpression(Expression left)
A constructor.- Parameters:
left- left
-
-
Method Detail
-
createNegate
public static Expression createNegate(Expression left)
Creates negate expression.- Parameters:
left- left- Returns:
- result
-
createInExpression
public static BooleanExpression createInExpression(VariableExpression right, List<Object> elements, boolean not)
Creates in expression.- Parameters:
right- rightelements- elementsnot- not- Returns:
- result
-
createNOT
public static BooleanExpression createNOT(BooleanExpression left)
Creates not expression.- Parameters:
left- left- Returns:
- result
-
createBooleanCast
public static BooleanExpression createBooleanCast(Expression left)
Creates boolean cast.- Parameters:
left- left- Returns:
- result
-
getRight
public Expression getRight()
Gets the right expression.- Returns:
- right
-
setRight
public void setRight(Expression expression)
Sets the right expression.- Parameters:
expression- right
-
equals
public boolean equals(Object o)
TODO: more efficient hashCode()
-
getExpressionSymbol
public abstract String getExpressionSymbol()
Returns the symbol that represents this binary expression. For example, addition is represented by "+"- Returns:
- expression symbol string
-
-