Package pyxb :: Package utils :: Module fac :: Class MultiTermNode |
[hide private]
[frames] | no frames]

# type MultiTermNode

source code

    object --+
             |
          Node --+
                 |
                MultiTermNode

Known Subclasses:
  - All
  - , Choice
  - , Sequence

Intermediary for nodes that have multiple child nodes.

Instance Methods | [hide private]
__get_terms(self) The set of subordinate terms of the current node. | source code
__init__(self, *terms, **kw) Term that collects an ordered sequence of terms. | source code
clone(self) Create a deep copy of the node. | source code
_walkTermTree(self, position, pre, post, arg) Abstract method implementing walkTermTree for the subclass. | source code
Inherited from `Node`: `buildAutomaton`, `counterSubPositions`, `reset`, `walkTermTree` Inherited from `Node` (private): `_facToString`, `_first`, `_follow`, `_last`, `_nullable`

Class Methods | [hide private]
Inherited from `Node` (private): `_PosConcatPosSet`, `_PosConcatTransitionSet`, `_PosConcatUpdateInstruction`

Class Variables | [hide private]
| __terms = `None`
Inherited from `Node`: `INCREMENT`, `RESET` Inherited from `Node` (private): `_Precedence`

Properties | [hide private]
| terms The set of subordinate terms of the current node.
Inherited from `Node`: `counterPositions`, `first`, `follow`, `last`, `metadata`, `nodePosMap`, `nullable`, `posNodeMap`

Method Details | [hide private]

### __init__(self, *terms, **kw) (Constructor) | source code
Term that collects an ordered sequence of terms. The terms are provided as arguments. All must be instances of a subclass of Node. Parameters: `metadata` - Any application-specific metadata retained in the term tree for transfer to the resulting automaton. Overrides: Node.__init__

### clone(self) | source code
Create a deep copy of the node. All term-tree--related attributes and properties are replaced with deep clones. Other attributes are preserved. Parameters: `args` - A tuple of arguments to be passed to the instance constructor. `kw` - A dict of keywords to be passed to the instance constructor. Overrides: Node.clone (inherited documentation)

### _walkTermTree(self, position, pre, post, arg) | source code
Abstract method implementing walkTermTree for the subclass. Overrides: Node._walkTermTree (inherited documentation)

Property Details | [hide private]

### terms The set of subordinate terms of the current node. Get Method: __get_terms(self) - The set of subordinate terms of the current node.