public interface EvaluableExpressionVisitor
This interface defines visit
methods EvaluableExpressions call to register themselves at the visitor. These methods are not
meant to be used by clients. Implementors are advised not to implement this interface
directly, but to rather use a private nested class to do so. This will hide the visitor
interface from clients.
Modifier and Type | Method and Description |
---|---|
void |
visit(AdditionExpression expression)
Called if the visited expression is a
AdditionExpression . |
void |
visit(ComparisonExpression expression)
Called if the visited expression is a
ComparisonExpression . |
void |
visit(ConstantExpression constant)
Called if the visited expression is a
ConstantExpression . |
void |
visit(DivisionExpression expression)
Called if the visited expression is a
DivisionExpression . |
void |
visit(EvaluableVariable variable)
Called if the visited expression is a
EvaluableVariable . |
void |
visit(ExponentationExpression expression)
Called if the visited expression is a
ExponentationExpression . |
void |
visit(ExponentialFunctionExpression expression)
Called if the visited expression is a
ExponentialFunctionExpression . |
void |
visit(IfThenElseExpression expression)
Called if the visited expression is a
IfThenElseExpression . |
void |
visit(LogarithmExpression expression)
Called if the visited expression is a
LogarithmExpression . |
void |
visit(MultiplicationExpression expression)
Called if the visited expression is a
MultiplicationExpression . |
void |
visit(NaturalLogarithmExpression expression)
Called if the visited expression is a
NaturalLogarithmExpression . |
void |
visit(SineExpression expression)
Called if the visited expression is a
SineExpression . |
void |
visit(SubtractionExpression expression)
Called if the visited expression is a
SubtractionExpression . |
void visit(AdditionExpression expression)
AdditionExpression
.expression
- The visited expression.void visit(MultiplicationExpression expression)
MultiplicationExpression
.expression
- The visited expression.void visit(EvaluableVariable variable)
EvaluableVariable
.variable
- The visited expression.void visit(ComparisonExpression expression)
ComparisonExpression
.expression
- The visited expression.void visit(ConstantExpression constant)
ConstantExpression
.constant
- The visited expression.void visit(DivisionExpression expression)
DivisionExpression
.expression
- The visited expression.void visit(ExponentationExpression expression)
ExponentationExpression
.expression
- The visited expression.void visit(ExponentialFunctionExpression expression)
ExponentialFunctionExpression
.expression
- The visited expression.void visit(IfThenElseExpression expression)
IfThenElseExpression
.expression
- The visited expression.void visit(LogarithmExpression expression)
LogarithmExpression
.expression
- The visited expression.void visit(NaturalLogarithmExpression expression)
NaturalLogarithmExpression
.expression
- The visited expression.void visit(SineExpression expression)
SineExpression
.expression
- The visited expression.void visit(SubtractionExpression expression)
SubtractionExpression
.expression
- The visited expression.