antlr3.treewizard.TreePattern Class Reference

When using label:TOKENNAME in a tree for parse(), we must track the label. More...

Inheritance diagram for antlr3.treewizard.TreePattern:

Inheritance graph
[legend]
Collaboration diagram for antlr3.treewizard.TreePattern:

Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
 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.
def toString
 Override to say how a node (not a tree) should look as text.

Public Attributes

 label
 hasTextArg


Detailed Description

When using label:TOKENNAME in a tree for parse(), we must track the label.

Definition at line 278 of file treewizard.py.


Member Function Documentation

def antlr3.treewizard.TreePattern.__init__ (   self,
  node 
)

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.

Reimplemented from antlr3.tree.CommonTree.

Definition at line 280 of file treewizard.py.

def antlr3.treewizard.TreePattern.toString (   self  ) 

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

Reimplemented from antlr3.tree.CommonTree.

Definition at line 287 of file treewizard.py.


Member Data Documentation

Definition at line 283 of file treewizard.py.

Definition at line 284 of file treewizard.py.


The documentation for this class was generated from the following file:

Generated on Mon Nov 29 17:24:30 2010 for ANTLR Python API by  doxygen 1.5.5