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

Class MultiTermNode

source code

object --+    
         |    
      Node --+
             |
            MultiTermNode
Known Subclasses:

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

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

Class Methods [hide private]
Class Variables [hide private]
  __terms = None
hash(x)

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

Inherited from object: __class__

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: object.__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.