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

Class CellRef

ASTNode --+
          |
         CellRef


Encapsulates an (absolute or relative) reference
Method Summary
  __init__(self, column, row, isAbsCol, isAbsRow, numParen)
CellRef's constructor
  accept(self, visitor)
Method used in the visitor pattern.
CellRef clone(self)
Returns a copy of this object
  equals(self, anObject)
Returns true if this object equals another object
    Accessors
  setRow(self, row)
Set the row value of this CellRef
  setNumParen(self, numParen)
Set the number of parenthesis around this number
  setIsAbsRow(self, absRow)
Set the row to be absolute or not
  setIsAbsColumn(self, absCol)
Set the column to be absolute or not
  setColumn(self, column)
Set the column value of this CellRef
int getRow(self)
Return the row value
int getNumParen(self)
Returns the number of parenthesis around this ASTNode
int getColumn(self)
Return the column value
bool isAbsRow(self)
Return true if the row is absolute
bool isAbsColumn(self)
Return true if the column is absolute
    Inherited from ASTNode
string __str__(self)
String representation of the complete AST (common to every child)

Method Details

setColumn(self, column)

Set the column value of this CellRef
Parameters:
column - column value
           (type=int)

setIsAbsColumn(self, absCol)

Set the column to be absolute or not
Parameters:
absCol - flag indicating absoluteness
           (type=bool)

setIsAbsRow(self, absRow)

Set the row to be absolute or not
Parameters:
absRow - flag indicating absoluteness
           (type=bool)

setNumParen(self, numParen)

Set the number of parenthesis around this number
Parameters:
numParen - number of parenthesis
           (type=int)

setRow(self, row)

Set the row value of this CellRef
Parameters:
row - row value
           (type=int)

getColumn(self)

Return the column value
Returns:
int

getNumParen(self)

Returns the number of parenthesis around this ASTNode
Returns:
int

getRow(self)

Return the row value
Returns:
int

isAbsColumn(self)

Return true if the column is absolute
Returns:
bool

isAbsRow(self)

Return true if the row is absolute
Returns:
bool

__init__(self, column, row, isAbsCol, isAbsRow, numParen=0)
(Constructor)

CellRef's constructor
Parameters:
column - The column number of the reference
           (type=int)
row - The row number of the reference
           (type=int)
isAbsCol - If true, the column is absolute. Otherwise: relative.
           (type=bool)
isAbsRow - If true, the row is absolute. Otherwise: relative.
           (type=bool)
Overrides:
ast.ASTNode.ASTNode.__init__

accept(self, visitor)

Method used in the visitor pattern. Calls the appropriate action to perform while visiting this object.
Parameters:
visitor - Visitor accepted by this object
           (type=Visitor)
Overrides:
ast.ASTNode.ASTNode.accept (inherited documentation)

clone(self)

Returns a copy of this object
Returns:
CellRef
Overrides:
ast.ASTNode.ASTNode.clone

equals(self, anObject)

Returns true if this object equals another object
Parameters:
anObject - Object compared to this object
           (type=Object)
Overrides:
ast.ASTNode.ASTNode.equals (inherited documentation)

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