Package org.oristool.lello.visitor
Interface SymbolicVisitor
- All Known Implementing Classes:
DefaultSimplification
public interface SymbolicVisitor
A Visitor interface used to perform symbolic manipulations on expressions,
such as simplifications; a concrete expression calls the appropriate method
of the Visitor passing a reference to itself.
-
Method Summary
Modifier and TypeMethodDescriptionvisitBinaryExpression
(Bindings bindings, BinaryExpression e) Called by a binary expression.visitBrackets
(Bindings bindings, Brackets e) Called by a bracket expression.visitConstant
(Bindings bindings, Constant e) Called by a constant.visitFunctionCall
(Bindings bindings, FunctionCall e) Called by a function call expression.visitUnaryExpression
(Bindings bindings, UnaryExpression e) Called by an unary expression.visitVariable
(Bindings bindings, Variable e) Called by a variable reference.
-
Method Details
-
visitBinaryExpression
Called by a binary expression.- Parameters:
bindings
- The bindings.e
- The calling expression.- Returns:
- The manipulated expression.
-
visitBrackets
Called by a bracket expression.- Parameters:
bindings
- The bindings.e
- The calling expression.- Returns:
- The manipulated expression.
-
visitConstant
Called by a constant.- Parameters:
bindings
- The bindings.e
- The calling expression.- Returns:
- The manipulated expression.
-
visitFunctionCall
Called by a function call expression.- Parameters:
bindings
- The bindings.e
- The calling expression.- Returns:
- The manipulated expression.
-
visitUnaryExpression
Called by an unary expression.- Parameters:
bindings
- The bindings.e
- The calling expression.- Returns:
- The manipulated expression.
-
visitVariable
Called by a variable reference.- Parameters:
bindings
- The bindings.e
- The calling expression.- Returns:
- The manipulated expression.
-