Class TokenStreamRewriter.RewriteOperation
java.lang.Object
org.graalvm.shadowed.org.antlr.v4.runtime.TokenStreamRewriter.RewriteOperation
- Enclosing class:
TokenStreamRewriter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intToken buffer index.protected intWhat index into rewrites List are we?protected Object -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRewriteOperation(int index) protectedRewriteOperation(int index, Object text) -
Method Summary
Modifier and TypeMethodDescriptionintexecute(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
-
execute
Execute the rewrite operation by possibly adding to the buffer. Return the index of the next token to operate on. -
toString
-