Package antlr
Class TokenStreamRewriteEngine.RewriteOperation
- java.lang.Object
-
- antlr.TokenStreamRewriteEngine.RewriteOperation
-
- Direct Known Subclasses:
TokenStreamRewriteEngine.InsertBeforeOp
,TokenStreamRewriteEngine.ReplaceOp
- Enclosing class:
- TokenStreamRewriteEngine
static class TokenStreamRewriteEngine.RewriteOperation extends Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
RewriteOperation(int index, String 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
-
index
protected int index
-
text
protected String text
-
-
Constructor Detail
-
RewriteOperation
protected RewriteOperation(int index, String 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.
-
-