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 128 of file TokenRewriteStream.java.


Constructor & Destructor Documentation

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

Definition at line 130 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 134 of file TokenRewriteStream.java.

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


Member Data Documentation

Definition at line 129 of file TokenRewriteStream.java.


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

Generated on Wed Oct 1 14:13:43 2008 for ANTLR API by  doxygen 1.5.5