Package gavo :: Package stc :: Module common :: Class ASTNode
[frames] | no frames]

Class ASTNode

source code

             object --+    
                      |    
utils.autonode.AutoNode --+
                          |
                         ASTNode
Known Subclasses:

The base class for all nodes in STC ASTs.

Nested Classes

Inherited from utils.autonode.AutoNode: __metaclass__

Instance Methods
 
__eq__(self, other) source code
 
__ne__(self, other) source code
 
__hash__(self)
hash(x)
source code
 
ensureId(self)
sets id to some value if still None.
source code
 
__init__(self, id=None, ucd=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code

Inherited from utils.autonode.AutoNode: __repr__, change, iterAttributes, iterChildren, iterNodeChildren, iterNodes

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods

Inherited from utils.autonode.AutoNode: cloneFrom

Class Variables
  inexactAttrs = set([])
Properties

Inherited from object: __class__

Method Details

__hash__(self)
(Hashing function)

source code 

hash(x)

Overrides: object.__hash__
(inherited documentation)

__init__(self, id=None, ucd=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)