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

# type LeafNode

source code

    object --+
             |
          Node --+
                 |
                LeafNode

Known Subclasses:
  - All
  - , Symbol

Intermediary for nodes that have no child nodes.

Instance Methods | [hide private]
_first(self) Abstract method that defines first for the subclass. | source code
_last(self) Abstract method that defines last for the subclass. | source code
_nullable(self) Abstract method that defines nullable for the subclass. | source code
_follow(self) Abstract method that defines follow for the subclass. | source code
_walkTermTree(self, position, pre, post, arg) Abstract method implementing walkTermTree for the subclass. | source code
Inherited from `Node`: `__init__`, `buildAutomaton`, `clone`, `counterSubPositions`, `reset`, `walkTermTree` Inherited from `Node` (private): `_facToString`

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

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

Properties | [hide private]
Inherited from `Node`: `counterPositions`, `first`, `follow`, `last`, `metadata`, `nodePosMap`, `nullable`, `posNodeMap`

Method Details | [hide private]

### _first(self) | source code
Abstract method that defines first for the subclass. The return value should be an iterable of tuples of integers denoting paths from this node through the term tree to a symbol. Overrides: Node._first (inherited documentation)

### _last(self) | source code
Abstract method that defines last for the subclass. The return value should be an iterable of tuples of integers denoting paths from this node through the term tree to a symbol. Overrides: Node._last (inherited documentation)

### _nullable(self) | source code
Abstract method that defines nullable for the subclass. The return value should be `True` or `False`. Overrides: Node._nullable (inherited documentation)

### _follow(self) | source code
Abstract method that defines follow for the subclass. The return value should be a map from tuples of integers (positions) to a list of transitions, where a transition is a position and an update instruction. Overrides: Node._follow (inherited documentation)

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