Package org.antlr.runtime
Class TokenRewriteStream.RewriteOperation
- java.lang.Object
-
- org.antlr.runtime.TokenRewriteStream.RewriteOperation
-
- Enclosing class:
- TokenRewriteStream
public class TokenRewriteStream.RewriteOperation extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected int
index
Token buffer index.protected int
instructionIndex
What index into rewrites List are we?protected Object
text
-
Constructor Summary
Constructors Modifier Constructor Description protected
RewriteOperation(int index)
protected
RewriteOperation(int index, Object text)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
execute(StringBuffer buf)
Execute the rewrite operation by possibly adding to the buffer.String
toString()
-
-
-
Field Detail
-
instructionIndex
protected int instructionIndex
What index into rewrites List are we?
-
index
protected int index
Token buffer index.
-
text
protected Object text
-
-
Constructor Detail
-
RewriteOperation
protected RewriteOperation(int index)
-
RewriteOperation
protected RewriteOperation(int index, Object text)
-
-
Method Detail
-
execute
public int execute(StringBuffer buf)
Execute the rewrite operation by possibly adding to the buffer. Return the index of the next token to operate on.
-
-