|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcsheets.core.formula.util.Interpreter
public abstract class Interpreter
A base-class for customized formula interpreters. The interpretation relies
on the Visitor pattern, so a typical invocation would look like
formula.accept(interpreter).
| Constructor Summary | |
|---|---|
Interpreter()
Creates a new interpreter. |
|
| Method Summary | |
|---|---|
abstract Value |
visitBinaryOperation(BinaryOperation operation)
Visits the given binary expression. |
abstract Value |
visitFunctionCall(FunctionCall call)
Visits the given function call. |
Value |
visitLiteral(Literal literal)
Visits the given literal. |
Value |
visitReference(Reference reference)
Visits the given cell reference. |
abstract Value |
visitUnaryOperation(UnaryOperation operation)
Visits the given unary expression. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Interpreter()
| Method Detail |
|---|
public Value visitLiteral(Literal literal)
ExpressionVisitor
visitLiteral in interface ExpressionVisitorliteral - the literal to visit
public abstract Value visitUnaryOperation(UnaryOperation operation)
ExpressionVisitor
visitUnaryOperation in interface ExpressionVisitoroperation - the operation to visit
public abstract Value visitBinaryOperation(BinaryOperation operation)
ExpressionVisitor
visitBinaryOperation in interface ExpressionVisitoroperation - the operation to visit
public Value visitReference(Reference reference)
ExpressionVisitor
visitReference in interface ExpressionVisitorreference - the reference to visit
public abstract Value visitFunctionCall(FunctionCall call)
ExpressionVisitor
visitFunctionCall in interface ExpressionVisitorcall - the function call to visit
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||