public class ExpressionBuilder extends Object implements ExpressionVisitor
Constructor and Description |
---|
ExpressionBuilder()
Creates a new expression builder.
|
Modifier and Type | Method and Description |
---|---|
Expression |
getExpression(Expression expression)
Returns a copy of the given expression.
|
Expression |
visitBinaryOperation(BinaryOperation operation)
Visits the given binary expression.
|
Expression |
visitFunctionCall(FunctionCall call)
Visits the given function call.
|
Expression |
visitLiteral(Literal literal)
Visits the given literal.
|
Expression |
visitReference(Reference reference)
Visits the given cell reference.
|
Expression |
visitUnaryOperation(UnaryOperation operation)
Visits the given unary expression.
|
public ExpressionBuilder()
public Expression getExpression(Expression expression)
expression
- the expression to rebuildpublic Expression visitLiteral(Literal literal)
ExpressionVisitor
visitLiteral
in interface ExpressionVisitor
literal
- the literal to visitpublic Expression visitUnaryOperation(UnaryOperation operation)
ExpressionVisitor
visitUnaryOperation
in interface ExpressionVisitor
operation
- the operation to visitpublic Expression visitBinaryOperation(BinaryOperation operation)
ExpressionVisitor
visitBinaryOperation
in interface ExpressionVisitor
operation
- the operation to visitpublic Expression visitReference(Reference reference)
ExpressionVisitor
visitReference
in interface ExpressionVisitor
reference
- the reference to visitpublic Expression visitFunctionCall(FunctionCall call)
ExpressionVisitor
visitFunctionCall
in interface ExpressionVisitor
call
- the function call to visit