antlr3.ReplaceOp Class Reference

Internal helper class. More...

Inheritance diagram for antlr3.ReplaceOp:

Inheritance graph
[legend]
Collaboration diagram for antlr3.ReplaceOp:

Collaboration 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

 lastIndex

Static Private Attributes

 __str__ = toString
 __repr__ = toString


Detailed Description

Internal helper class.

I'm going to try replacing range from x..y with (y-x)+1 ReplaceOp instructions.

Definition at line 1932 of file antlr3.py.


Member Function Documentation

def antlr3.ReplaceOp.__init__ (   self,
  stream,
  first,
  last,
  text 
)

Definition at line 1934 of file antlr3.py.

def antlr3.ReplaceOp.execute (   self,
  buf 
)

Execute the rewrite operation by possibly adding to the buffer.

Return the index of the next token to operate on.

Reimplemented from antlr3.RewriteOperation.

Definition at line 1939 of file antlr3.py.

def antlr3.ReplaceOp.toString (   self  ) 

Reimplemented from antlr3.RewriteOperation.

Reimplemented in antlr3.DeleteOp.

Definition at line 1946 of file antlr3.py.


Member Data Documentation

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

Reimplemented from antlr3.RewriteOperation.

Reimplemented in antlr3.DeleteOp.

Definition at line 1950 of file antlr3.py.

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

Reimplemented from antlr3.RewriteOperation.

Reimplemented in antlr3.DeleteOp.

Definition at line 1951 of file antlr3.py.

Definition at line 1936 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