Trees | Index | Help |
|
---|
Package ast :: Module Function :: Class Function |
|
ASTNode
--+
|
Function
Method Summary | |
---|---|
Function's constructor | |
Method used in the visitor pattern. | |
Function
|
Returns a copy of this object |
Returns true if this object equals another object | |
Accessors | |
Set the number of parenthesis around this number | |
Sets the name of this function | |
Sets the arguments of this function | |
int |
Returns the number of parenthesis around this ASTNode |
string |
Returns the name of this function. |
list of ASTNode
|
Returns the arguments of this function. |
Inherited from ASTNode | |
string |
String representation of the complete AST (common to every child) |
Method Details |
---|
setArgs(self, arguments)Sets the arguments of this function
|
setName(self, name)Sets the name of this function
|
setNumParen(self, numParen)Set the number of parenthesis around this number
|
getArgs(self)Returns the arguments of this function. Note: A copy of the list is returned to prevent from directly modifying the datastructure.
|
getName(self)Returns the name of this function.
|
getNumParen(self)Returns the number of parenthesis around this ASTNode
|
__init__(self,
name,
arguments,
numParen=0)
Function's 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:23 2004 | http://epydoc.sf.net |