Package schrodinger :: Package application :: Package desmond :: Package antlr3 :: Module tree :: Class CommonErrorNode
[hide private]
[frames] | no frames]

Class CommonErrorNode

object --+            
         |            
      Tree --+        
             |        
      BaseTree --+    
                 |    
        CommonTree --+
                     |
                    CommonErrorNode

A node representing erroneous token range in token stream

Instance Methods [hide private]
 
__init__(self, input, start, stop, exc)
Create a new node from an existing node does nothing for BaseTree as there are no fields other than the children list, which cannot be copied as the children are not considered part of this node.
 
isNil(self)
Indicates the node is a nil node but may still have children, meaning the tree is a flat list.
 
getType(self)
Return a token type; needed for tree parsing.
 
getText(self)
 
toString(self)
Override to say how a node (not a tree) should look as text

Inherited from CommonTree: __str__, dupNode, getCharPositionInLine, getChildIndex, getLine, getParent, getToken, getTokenStartIndex, getTokenStopIndex, setChildIndex, setParent, setTokenStartIndex, setTokenStopIndex, setUnknownTokenBoundaries, toStringTree

Inherited from BaseTree: addChild, addChildren, deleteChild, freshenParentAndChildIndexes, getAncestor, getAncestors, getChild, getChildCount, getChildren, getFirstChildWithType, hasAncestor, replaceChildren, sanityCheckParentAndChildIndexes, setChild

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

Properties [hide private]

Inherited from CommonTree: charPositionInLine, line, text, tokenStartIndex, tokenStopIndex, type

Inherited from object: __class__

Method Details [hide private]

__init__(self, input, start, stop, exc)
(Constructor)

 

Create a new node from an existing node does nothing for BaseTree as there are no fields other than the children list, which cannot be copied as the children are not considered part of this node.

Overrides: object.__init__
(inherited documentation)

isNil(self)

 

Indicates the node is a nil node but may still have children, meaning the tree is a flat list.

Overrides: Tree.isNil
(inherited documentation)

getType(self)

 

Return a token type; needed for tree parsing.

Overrides: Tree.getType
(inherited documentation)

getText(self)

 
Overrides: Tree.getText

toString(self)

 

Override to say how a node (not a tree) should look as text

Overrides: Tree.toString