is a base class for Structures parseable from EventProcessors (and
thus XML).
This is still abstract in that you need at least a name_ attribute.
But it knows how to be fed from a parser, plus you have feed and
feedObject methods that look up the attribute names and call the methods
on the respective attribute definitions.
|
|
__init__(self,
parent,
**kwargs)
x.__init__(...) initializes x; see help(type(x)) for signature |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
feed(self,
name,
literal,
ctx=None)
feeds the literal to the attribute name. |
source code
|
|
|
|
feedObject(self,
name,
ob)
feeds the object ob to the attribute name. |
source code
|
|
|
|
iterEvents(self)
yields an event sequence that transfers the copyable information from
self to something receiving the events. |
source code
|
|
|
|
feedFrom(self,
other,
ctx=None,
suppress=set([]))
feeds parsed objects from another structure. |
source code
|
|
|
|
|
|
Inherited from 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__
|