antlr
Class TokenStreamRewriteEngine.ReplaceOp
- TokenStreamRewriteEngine
(package private) static class TokenStreamRewriteEngine.ReplaceOp
int | execute(StringBuffer buf) - Execute the rewrite operation by possibly adding to the buffer.
|
lastIndex
protected int lastIndex
ReplaceOp
public ReplaceOp(int from,
int to,
String text)
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.
- execute in interface TokenStreamRewriteEngine.RewriteOperation