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

Class 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)
str(x)
source code

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

Inherited from Node: buildAutomaton, counterSubPositions, reset, walkTermTree

Inherited from Node (private): _facToString

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

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

Inherited from object: __class__

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

str(x)

Overrides: object.__str__
(inherited documentation)