Trees | Index | Help |
|
---|
Package subjectdata :: Module EvalVisitor :: Class EvalVisitor |
|
ASTVisitor
--+
|
EvalVisitor
Method Summary | |
---|---|
EvalVisitor's constructor. | |
CellValue
|
Returns the value computed by this visitor. |
string |
Returns the invalid function name that was detected. |
bool |
Returns true if this visitor detected a name error. |
bool |
Returns true if this visitor detected a ref error. |
bool |
Returns true if this visitor detected a value error. |
Visits a CellRef object | |
Visits a Function object | |
Visits a Number object | |
Visits a RangeRef object |
Method Details |
---|
__init__(self,
sheet)
EvalVisitor's constructor. A reference to SSheetData is needed to
resolve and evaluate references to other cells. If a reference does not
exist in SSheetData, it evaluate to 0. Note that it is assumed that
cycles were handled beforehand (i.e. This visitor is not executed on
cycles).
|
getEvaluatedValue(self)Returns the value computed by this visitor.
|
getNameErrorStr(self)Returns the invalid function name that was detected.
|
hasNameError(self)Returns true if this visitor detected a name error.
|
hasRefError(self)Returns true if this visitor detected a ref error.
|
hasValueError(self)Returns true if this visitor detected a value error.
|
visitCellRef(self, cellRef)Visits a CellRef object
|
visitFunction(self, function)Visits a Function object
|
visitNumber(self, number)Visits a Number object
|
visitRangeRef(self, rangeRef)Visits a RangeRef object
|
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Tue Aug 17 18:20:06 2004 | http://epydoc.sf.net |