Package nl.rrd.wool.expressions.types
Class GreaterThanExpression
- java.lang.Object
-
- nl.rrd.wool.expressions.types.GreaterThanExpression
-
- All Implemented Interfaces:
Expression
public class GreaterThanExpression extends Object implements Expression
-
-
Constructor Summary
Constructors Constructor Description GreaterThanExpression(Expression operand1, Expression operand2)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Valueevaluate(Map<String,Object> variables)Evaluates this expression using the specified variable values.List<Expression>getChildren()Returns the child expressions of this expression.List<Expression>getDescendants()Returns all descendant expressions of this expression.ExpressiongetOperand1()ExpressiongetOperand2()Set<String>getVariableNames()Returns all variable names that occur in this expression and its descendants.StringtoString()
-
-
-
Constructor Detail
-
GreaterThanExpression
public GreaterThanExpression(Expression operand1, Expression operand2)
-
-
Method Detail
-
getOperand1
public Expression getOperand1()
-
getOperand2
public Expression getOperand2()
-
evaluate
public Value evaluate(Map<String,Object> variables) throws EvaluationException
Description copied from interface:ExpressionEvaluates this expression using the specified variable values. The variable map may be modified as a result of an "assign" expression.- Specified by:
evaluatein interfaceExpression- Parameters:
variables- the variable values (can be null)- Returns:
- the value of the expression
- Throws:
EvaluationException- if the expression can't be evaluted with the specified variables
-
getChildren
public List<Expression> getChildren()
Description copied from interface:ExpressionReturns the child expressions of this expression.- Specified by:
getChildrenin interfaceExpression- Returns:
- the child expressions
-
getDescendants
public List<Expression> getDescendants()
Description copied from interface:ExpressionReturns all descendant expressions of this expression.- Specified by:
getDescendantsin interfaceExpression- Returns:
- the descendant expressions
-
getVariableNames
public Set<String> getVariableNames()
Description copied from interface:ExpressionReturns all variable names that occur in this expression and its descendants.- Specified by:
getVariableNamesin interfaceExpression- Returns:
- the variable names
-
-