Classes
Pattern | A declarative object that represents a pattern object. |
Bases: enaml.core.declarative.Declarative
A declarative object that represents a pattern object.
The Pattern class serves as a base class for other classes such as Looper and Conditional, where the compiler nodes for the hierarchy are used to modify the standard behavior of creating children.
Creating a Pattern without a parent is a programming error.
Storage for the collected pattern nodes. This is used directly by subclasses and should not be manipulated by user code.
A reimplemented destructor.
The pattern will destroy all of the pattern items unless the parent object is in the process of being destroyed.
Add a child subtree to this pattern.
This method changes the default behavior of the runtime. It stores the child nodes and the locals mapping until the object is initialized, at which point the nodes will be called to create the pattern items.
Parameters : | nodes : list
key : object
f_locals : mapping or None
|
---|