Java.target.apidocs.org.antlr.v4.runtime.TokenStreamRewriter.RewriteOperation.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of antlr4-perf-testsuite Show documentation
Show all versions of antlr4-perf-testsuite Show documentation
The ANTLR 4 grammar compiler.
TokenStreamRewriter.RewriteOperation (ANTLR 4 Runtime (Optimized) 4.13.1.3 API)
org.antlr.v4.runtime
Class TokenStreamRewriter.RewriteOperation
- java.lang.Object
-
- org.antlr.v4.runtime.TokenStreamRewriter.RewriteOperation
-
- Enclosing class:
- TokenStreamRewriter
public static class TokenStreamRewriter.RewriteOperation
extends Object
-
-
Field Summary
Fields
Modifier and Type
Field and Description
protected int
index
Token buffer index.
protected int
instructionIndex
What index into rewrites List are we?
protected Object
text
protected TokenStream
tokens
-
Constructor Summary
Constructors
Modifier
Constructor and Description
protected
RewriteOperation(TokenStream tokens,
int index)
protected
RewriteOperation(TokenStream tokens,
int index,
Object text)
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
int
execute(StringBuilder buf)
Execute the rewrite operation by possibly adding to the buffer.
String
toString()
-
-
Field Detail
-
tokens
protected final TokenStream tokens
-
instructionIndex
protected int instructionIndex
What index into rewrites List are we?
-
index
protected int index
Token buffer index.
-
text
protected Object text
-
Constructor Detail
-
RewriteOperation
protected RewriteOperation(TokenStream tokens,
int index)
-
RewriteOperation
protected RewriteOperation(TokenStream tokens,
int index,
Object text)
-
Method Detail
-
execute
public int execute(StringBuilder buf)
Execute the rewrite operation by possibly adding to the buffer.
Return the index of the next token to operate on.
Copyright © 1992–2023 Daniel Sun. All rights reserved.