Package org.antlr.v4.runtime
Class TokenStreamRewriter.RewriteOperation
- java.lang.Object
-
- org.antlr.v4.runtime.TokenStreamRewriter.RewriteOperation
-
- Direct Known Subclasses:
TokenStreamRewriter.InsertBeforeOp,TokenStreamRewriter.ReplaceOp
- Enclosing class:
- TokenStreamRewriter
public class TokenStreamRewriter.RewriteOperation extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected intindexToken buffer index.protected intinstructionIndexWhat index into rewrites List are we?protected java.lang.Objecttext
-
Constructor Summary
Constructors Modifier Constructor Description protectedRewriteOperation(int index)protectedRewriteOperation(int index, java.lang.Object text)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intexecute(java.lang.StringBuilder buf)Execute the rewrite operation by possibly adding to the buffer.java.lang.StringtoString()
-