antlr3.RewriteOperation Class Reference

Internal helper class. More...

Inheritance diagram for antlr3.RewriteOperation:

Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
def execute
 Execute the rewrite operation by possibly adding to the buffer.
def toString

Public Attributes

 stream
 index
 text

Static Private Attributes

 __str__ = toString
 __repr__ = toString


Detailed Description

Internal helper class.

Definition at line 1892 of file antlr3.py.


Member Function Documentation

def antlr3.RewriteOperation.__init__ (   self,
  stream,
  index,
  text 
)

Reimplemented in antlr3.DeleteOp.

Definition at line 1894 of file antlr3.py.

def antlr3.RewriteOperation.execute (   self,
  buf 
)

Execute the rewrite operation by possibly adding to the buffer.

Return the index of the next token to operate on.

Reimplemented in antlr3.InsertBeforeOp, and antlr3.ReplaceOp.

Definition at line 1903 of file antlr3.py.

def antlr3.RewriteOperation.toString (   self  ) 

Reimplemented in antlr3.ReplaceOp, and antlr3.DeleteOp.

Definition at line 1907 of file antlr3.py.


Member Data Documentation

antlr3.RewriteOperation.__str__ = toString [static, private]

Reimplemented in antlr3.ReplaceOp, and antlr3.DeleteOp.

Definition at line 1911 of file antlr3.py.

antlr3.RewriteOperation.__repr__ = toString [static, private]

Reimplemented in antlr3.ReplaceOp, and antlr3.DeleteOp.

Definition at line 1912 of file antlr3.py.

Definition at line 1895 of file antlr3.py.

Definition at line 1896 of file antlr3.py.

Definition at line 1897 of file antlr3.py.


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

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