Trees | Index | Help |
|
---|
Package ast :: Module Number :: Class Number |
|
ASTNode
--+
|
Number
Method Summary | |
---|---|
Number constructor | |
Method used in the visitor pattern. | |
Number
|
Returns a copy of this object |
Returns true if this object equals another object | |
Accessors | |
Set the value of this Number | |
Set the number of parenthesis around this number | |
float |
Returns the encapsulated value |
int |
Returns the number of parenthesis around this ASTNode |
Inherited from ASTNode | |
string |
String representation of the complete AST (common to every child) |
Method Details |
---|
setNumParen(self, numParen)Set the number of parenthesis around this number
|
setValue(self, number)Set the value of this Number
|
getNumParen(self)Returns the number of parenthesis around this ASTNode
|
getValue(self)Returns the encapsulated value
|
__init__(self,
number,
numParen=0)
Number constructor
|
accept(self, visitor)Method used in the visitor pattern. Calls the appropriate action to perform while visiting this object.
|
clone(self)Returns a copy of this object
|
equals(self, anObject)Returns true if this object equals another object
|
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Thu Aug 26 22:55:24 2004 | http://epydoc.sf.net |