Package org.oristool.lello.visitor
Interface FormatVisitor
- All Known Implementing Classes:
DefaultFormatter
public interface FormatVisitor
A Visitor interface used to format expressions; a concrete expression calls
the appropriate method of the Visitor passing a reference to itself.
-
Method Summary
Modifier and TypeMethodDescriptionCalled by a binary expression.Called by a bracket expression.Called by a constant.Called by an expression when no other method is compatible.Called by a function call expression.Called by an unary expression.Called by a variable reference.
-
Method Details
-
visitExpression
Called by an expression when no other method is compatible.- Parameters:
e
- The calling expression.- Returns:
- The formatted expression.
-
visitBinaryExpression
Called by a binary expression.- Parameters:
e
- The calling expression.- Returns:
- The formatted expression.
-
visitBrackets
Called by a bracket expression.- Parameters:
e
- The calling expression.- Returns:
- The formatted expression.
-
visitConstant
Called by a constant.- Parameters:
e
- The calling expression.- Returns:
- The formatted expression.
-
visitFunctionCall
Called by a function call expression.- Parameters:
e
- The calling expression.- Returns:
- The formatted expression.
-
visitUnaryExpression
Called by an unary expression.- Parameters:
e
- The calling expression.- Returns:
- The formatted expression.
-
visitVariable
Called by a variable reference.- Parameters:
e
- The calling expression.- Returns:
- The formatted expression.
-