Package subjectdata :: Module InfluencerVisitor :: Class InfluencerVisitor
[show private | hide private]
[frames | no frames]

Class InfluencerVisitor

ASTVisitor --+
             |
            InfluencerVisitor


Class visiting an AST to create a cell dependency list
Method Summary
  __init__(self)
This class will go through the AST and add all the references to other cells in a list.
list of CellCoord getInfluencers(self)
Returns the list of cells influencing this object
  visitCellRef(self, cellRef)
Add the cell reference to the list
  visitFunction(self, function)
Recursively call arguments
  visitNumber(self, number)
Terminal node, do nothing
  visitRangeRef(self, rangeRef)
Recursively visits each CellRef in the range

Method Details

__init__(self)
(Constructor)

This class will go through the AST and add all the references to other cells in a list.
Overrides:
ast.ASTVisitor.ASTVisitor.__init__

getInfluencers(self)

Returns the list of cells influencing this object
Returns:
list of CellCoord

visitCellRef(self, cellRef)

Add the cell reference to the list
Overrides:
ast.ASTVisitor.ASTVisitor.visitCellRef

visitFunction(self, function)

Recursively call arguments
Overrides:
ast.ASTVisitor.ASTVisitor.visitFunction

visitNumber(self, number)

Terminal node, do nothing
Overrides:
ast.ASTVisitor.ASTVisitor.visitNumber

visitRangeRef(self, rangeRef)

Recursively visits each CellRef in the range
Overrides:
ast.ASTVisitor.ASTVisitor.visitRangeRef

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