Package org.antlr.v4.runtime
Class TokenStreamRewriter.RewriteOperation
java.lang.Object
org.antlr.v4.runtime.TokenStreamRewriter.RewriteOperation
- Enclosing class:
TokenStreamRewriter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
Token buffer index.protected int
What index into rewrites List are we?protected Object
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
RewriteOperation
(int index) protected
RewriteOperation
(int index, Object text) -
Method Summary
Modifier and TypeMethodDescriptionint
execute
(StringBuilder buf) Execute the rewrite operation by possibly adding to the buffer.toString()
-
Field Details
-
instructionIndex
protected int instructionIndexWhat index into rewrites List are we? -
index
protected int indexToken buffer index. -
text
-
-
Constructor Details
-
RewriteOperation
protected RewriteOperation(int index) -
RewriteOperation
-
-
Method Details