public static class TokenStreamRewriter.RewriteOperation extends Object
| 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 |
| Modifier | Constructor and Description |
|---|---|
protected |
RewriteOperation(TokenStream tokens,
int index) |
protected |
RewriteOperation(TokenStream tokens,
int index,
Object text) |
| Modifier and Type | Method and Description |
|---|---|
int |
execute(StringBuilder buf)
Execute the rewrite operation by possibly adding to the buffer.
|
String |
toString() |
protected final TokenStream tokens
protected int instructionIndex
protected int index
protected Object text
protected RewriteOperation(TokenStream tokens, int index)
protected RewriteOperation(TokenStream tokens, int index, Object text)
public int execute(StringBuilder buf)
Copyright © 1992–2024 Daniel Sun. All rights reserved.