Package ast :: Module StrReprVisitor :: Class StrReprVisitor
[show private | hide private]
[frames | no frames]

Class StrReprVisitor

ASTVisitor --+
             |
            StrReprVisitor


Visitor constructing a string representation of an AST.
Method Summary
  __init__(self)
string getStrRepr(self)
return the constructed string representation
  __cellRefStr(self, cellRef)
  __functionStr(self, function)
  __numberStr(self, number)
  __rangeRefStr(self, rangeRef)
    Visitors
  visitRangeRef(self, rangeRef)
Creates the string representation of a RangeRef (e.g., A1:A10)
  visitNumber(self, number)
Creates the string representation of a Number (simply its value)
  visitFunction(self, function)
Creates the string representation of a function (e.g., min(4,5))
  visitCellRef(self, cellRef)
Creates the string representation of a CellRef (e.g., A5, $A5, $A$5)

Method Details

visitCellRef(self, cellRef)

Creates the string representation of a CellRef (e.g., A5, $A5, $A$5)
Overrides:
ast.ASTVisitor.ASTVisitor.visitCellRef

visitFunction(self, function)

Creates the string representation of a function (e.g., min(4,5))
Overrides:
ast.ASTVisitor.ASTVisitor.visitFunction

visitNumber(self, number)

Creates the string representation of a Number (simply its value)
Overrides:
ast.ASTVisitor.ASTVisitor.visitNumber

visitRangeRef(self, rangeRef)

Creates the string representation of a RangeRef (e.g., A1:A10)
Overrides:
ast.ASTVisitor.ASTVisitor.visitRangeRef

getStrRepr(self)

return the constructed string representation
Returns:
string

Generated by Epydoc 2.1 on Thu Aug 26 22:55:24 2004 http://epydoc.sf.net