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

Class ASTNode

Known Subclasses:
CellRef, Function, Number, RangeRef

Base (abstract) class for all AST nodes such as Number,Functions,etc.
Method Summary
  __init__(self)
This class is abstract, and error is raised if an attempt is made to instantiate it.
string __str__(self)
String representation of the complete AST (common to every child)
  accept(self, visitor)
Method used in the visitor pattern.
ASTNode clone(self)
Returns a copy of this object
  equals(self, anObject)
Returns true if this object equals another object

Method Details

__init__(self)
(Constructor)

This class is abstract, and error is raised if an attempt is made to instantiate it.

__str__(self)
(Informal representation operator)

String representation of the complete AST (common to every child)
Returns:
string

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)

clone(self)

Returns a copy of this object
Returns:
ASTNode

equals(self, anObject)

Returns true if this object equals another object
Parameters:
anObject - Object compared to this object
           (type=Object)

Generated by Epydoc 2.1 on Tue Aug 17 18:20:07 2004 http://epydoc.sf.net