org.antlr.runtime.TokenRewriteStream.ReplaceOp Class Reference

Inheritance diagram for org.antlr.runtime.TokenRewriteStream.ReplaceOp:

Inheritance graph
[legend]
Collaboration diagram for org.antlr.runtime.TokenRewriteStream.ReplaceOp:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ReplaceOp (int from, int to, Object text)
int execute (StringBuffer buf)
String toString ()

Protected Attributes

int lastIndex


Detailed Description

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

Definition at line 136 of file TokenRewriteStream.java.


Constructor & Destructor Documentation

org.antlr.runtime.TokenRewriteStream.ReplaceOp.ReplaceOp ( int  from,
int  to,
Object  text 
)

Definition at line 138 of file TokenRewriteStream.java.


Member Function Documentation

int org.antlr.runtime.TokenRewriteStream.ReplaceOp.execute ( StringBuffer  buf  ) 

Execute the rewrite operation by possibly adding to the buffer. Return the index of the next token to operate on.

Reimplemented from org.antlr.runtime.TokenRewriteStream.RewriteOperation.

Definition at line 142 of file TokenRewriteStream.java.

String org.antlr.runtime.TokenRewriteStream.ReplaceOp.toString (  ) 


Member Data Documentation

Definition at line 137 of file TokenRewriteStream.java.


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

Generated on Tue Jul 19 11:42:05 2011 for ANTLR API by  doxygen 1.5.5