public class ExpressionTreePrinter extends AbstractExpressionVisitor
Modifier and Type | Field and Description |
---|---|
static int |
INDENT_DISTANCE
The number of spaces to use for each indentation unit
|
Constructor and Description |
---|
ExpressionTreePrinter()
Creates a new expression printer.
|
Modifier and Type | Method and Description |
---|---|
Object |
visitBinaryOperation(BinaryOperation operation)
Visits the given binary expression.
|
Object |
visitFunctionCall(FunctionCall call)
Visits the given function call.
|
Object |
visitLiteral(Literal literal)
Visits the given literal.
|
Object |
visitReference(Reference reference)
Visits the given cell reference.
|
Object |
visitUnaryOperation(UnaryOperation operation)
Visits the given unary expression.
|
public static final int INDENT_DISTANCE
public ExpressionTreePrinter()
public Object visitLiteral(Literal literal)
ExpressionVisitor
visitLiteral
in interface ExpressionVisitor
visitLiteral
in class AbstractExpressionVisitor
literal
- the literal to visitpublic Object visitUnaryOperation(UnaryOperation operation)
ExpressionVisitor
visitUnaryOperation
in interface ExpressionVisitor
visitUnaryOperation
in class AbstractExpressionVisitor
operation
- the operation to visitpublic Object visitBinaryOperation(BinaryOperation operation)
ExpressionVisitor
visitBinaryOperation
in interface ExpressionVisitor
visitBinaryOperation
in class AbstractExpressionVisitor
operation
- the operation to visitpublic Object visitReference(Reference reference)
ExpressionVisitor
visitReference
in interface ExpressionVisitor
visitReference
in class AbstractExpressionVisitor
reference
- the reference to visitpublic Object visitFunctionCall(FunctionCall call)
ExpressionVisitor
visitFunctionCall
in interface ExpressionVisitor
visitFunctionCall
in class AbstractExpressionVisitor
call
- the function call to visit