Package gavo :: Package base :: Module macros :: Class MacDef
[frames] | no frames]

Class MacDef

source code

              object --+            
                       |            
 structure.StructureBase --+        
                           |        
              object --+   |        
                       |   |        
           common.Parser --+        
                           |        
structure.ParseableStructure --+    
                               |    
             structure.Structure --+
                                   |
                                  MacDef

A macro definition within an RD.

The macro defined is available on the parent; macros are expanded within the parent (behaviour is undefined if you try a recursive expansion).

Nested Classes

Inherited from structure.StructureBase: __metaclass__

Instance Methods
 
validate(self) source code
 
onElementComplete(self) source code

Inherited from structure.Structure: __provides__, callCompletedCallbacks, completeElement, finishElement

Inherited from structure.ParseableStructure: __init__, end_, feed, feedFrom, feedObject, getAttribute, iterEvents, start_, value_

Inherited from structure.StructureBase: __providedBy__, adopt, breakCircles, change, copy, getAttributes, getCopyableAttributes, getSourcePosition, iterChildren, setPosition

Inherited from common.Parser: feedEvent

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

Class Methods

Inherited from structure.StructureBase: fromStructure

Class Variables
  name_ = 'macDef'
a sentinel for all kinds of undefined values.
  attrSeq = [<gavo.base.structure.DataContent object>, <gavo.bas...
  managedAttrs = {'content_': <gavo.base.structure.DataContent o...

Inherited from structure.Structure: __implemented__

Inherited from structure.StructureBase: completedCallbacks

Properties

Inherited from object: __class__

Method Details

validate(self)

source code 
Overrides: structure.Structure.validate

onElementComplete(self)

source code 
Overrides: structure.Structure.onElementComplete

Class Variable Details

attrSeq

Value:
[<gavo.base.structure.DataContent object>,
 <gavo.base.parsecontext.IdAttribute object>,
 <gavo.base.attrdef.UnicodeAttribute object>]

managedAttrs

Value:
{'content_': <gavo.base.structure.DataContent object>,
 'id': <gavo.base.parsecontext.IdAttribute object>,
 'name': <gavo.base.attrdef.UnicodeAttribute object>}