is a base class for all structures.
You must arrange for calling its constructor from classes inheriting
this.
The constructor receives a parent (another structure, or None) and
keyword arguments containing values for actual attributes (which will be
set without any intervening consultation of the AttributeDef).
The attribute definitions talking about structures let you set parent
to None when constructing default values; they will then insert the
actual parent.
|
__init__(self,
parent,
**kwargs)
x.__init__(...) initializes x; see help(type(x)) for signature |
source code
|
|
|
setPosition(self,
fName,
lineNumber)
should be called by parsers to what file at what line the
serialisation came from. |
source code
|
|
|
getSourcePosition(self)
returns a string representation of where the struct was parsed from. |
source code
|
|
|
getAttributes(self,
attDefsFrom=None)
returns a dict of the current attributes, suitable for making a
shallow copy of self. |
source code
|
|
|
|
|
change(self,
**kwargs)
returns a copy of self with all attributes in kwargs overridden with
the passed values. |
source code
|
|
|
copy(self,
parent,
ctx=None)
returns a deep copy of self, reparented to parent. |
source code
|
|
|
|
|
|
|
|
|
__providedBy__(...)
Object Specification Descriptor |
source code
|
|
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|