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

type Symbol

source code

object --+        
         |        
      Node --+    
             |    
      LeafNode --+
                 |
                Symbol

A leaf term that is a symbol.

The symbol is represented by the metadata field.

Instance Methods [hide private]
 
__init__(self, symbol, **kw)
Create a FAC term-tree node.
source code
 
clone(self)
Create a deep copy of the node.
source code
 
__str__(self) source code

Inherited from LeafNode (private): _first, _follow, _last, _nullable, _walkTermTree

Inherited from Node: buildAutomaton, counterSubPositions, reset, walkTermTree

Inherited from Node (private): _facToString

Class Methods [hide private]
Class Variables [hide private]
  _Precedence = 0
An integral value used for parenthesizing expressions.

Inherited from Node: INCREMENT, RESET

Properties [hide private]

Inherited from Node: counterPositions, first, follow, last, metadata, nodePosMap, nullable, posNodeMap

Method Details [hide private]

__init__(self, symbol, **kw)
(Constructor)

source code 

Create a FAC term-tree node.

Parameters:
  • metadata - Any application-specific metadata retained in the term tree for transfer to the resulting automaton.
Overrides: Node.__init__
(inherited documentation)

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)

__str__(self)
(Informal representation operator)

source code 
Overrides: object.__str__
(inherited documentation)