Package org.antlr.v4.runtime
Class TokenStreamRewriter.RewriteOperation
- java.lang.Object
- 
- org.antlr.v4.runtime.TokenStreamRewriter.RewriteOperation
 
- 
- Enclosing class:
- TokenStreamRewriter
 
 public class TokenStreamRewriter.RewriteOperation extends Object 
- 
- 
Field SummaryFields Modifier and Type Field Description protected intindexToken buffer index.protected intinstructionIndexWhat index into rewrites List are we?protected Objecttext
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedRewriteOperation(int index)protectedRewriteOperation(int index, Object text)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intexecute(StringBuilder buf)Execute the rewrite operation by possibly adding to the buffer.StringtoString()
 
- 
- 
- 
Field Detail- 
instructionIndexprotected int instructionIndex What index into rewrites List are we?
 - 
indexprotected int index Token buffer index.
 - 
textprotected Object text 
 
- 
 - 
Constructor Detail- 
RewriteOperationprotected RewriteOperation(int index) 
 - 
RewriteOperationprotected RewriteOperation(int index, Object text)
 
- 
 - 
Method Detail- 
executepublic int execute(StringBuilder buf) Execute the rewrite operation by possibly adding to the buffer. Return the index of the next token to operate on.
 
- 
 
-