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

Class LeafNode

source code

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

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

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

Class Methods [hide private]
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

Inherited from object: __class__

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)