|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcsheets.ext.assertion.AssertionArithmeticVisitor
public class AssertionArithmeticVisitor
A Visitor for calculating System Generated assertions for a formula in the form of an Expression tree.
| Constructor Summary | |
|---|---|
AssertionArithmeticVisitor()
Constructs a new AssertionArithmeticVisitor. |
|
| Method Summary | |
|---|---|
MultiInterval |
getResult(Expression expression)
Retrieve the result of the arithmetic calculations performed by this visitor. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AssertionArithmeticVisitor()
| Method Detail |
|---|
public MultiInterval getResult(Expression expression)
throws AssertionArithmeticException,
MathException
NOTE! This function should only be called after the visitor has been used to traverse some Expression tree (by calling Expression.accept() passing this visitor as an argument. Otherwise an exception will be thrown.
expression - the expression from which the
AssertionArithmeticException - if no result has been calculated yet, or if
the calculations resulted in more than one result. (Indicates an error in the formula).
MathException
public Object visitBinaryOperation(BinaryOperation operation)
throws AssertionArithmeticException,
MathException
ExpressionVisitor
visitBinaryOperation in interface ExpressionVisitoroperation - the operation to visit
AssertionArithmeticException
MathException
public Object visitFunctionCall(FunctionCall call)
throws AssertionArithmeticException
ExpressionVisitor
visitFunctionCall in interface ExpressionVisitorcall - the function call to visit
AssertionArithmeticException
public Object visitLiteral(Literal literal)
throws AssertionArithmeticException
ExpressionVisitor
visitLiteral in interface ExpressionVisitorliteral - the literal to visit
AssertionArithmeticException
public Object visitReference(Reference reference)
throws AssertionArithmeticException
ExpressionVisitor
visitReference in interface ExpressionVisitorreference - the reference to visit
AssertionArithmeticException
public Object visitUnaryOperation(UnaryOperation operation)
throws AssertionArithmeticException
ExpressionVisitor
visitUnaryOperation in interface ExpressionVisitoroperation - the operation to visit
AssertionArithmeticException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||