| Package | Description |
|---|---|
| org.antlr.runtime |
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
TokenRewriteStream.InsertBeforeOp |
(package private) class |
TokenRewriteStream.ReplaceOp
I'm going to try replacing range from x..y with (y-x)+1 ReplaceOp
instructions.
|
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,java.util.List<TokenRewriteStream.RewriteOperation>> |
TokenRewriteStream.programs
You may have multiple, named streams of rewrite operations.
|
| Modifier and Type | Method and Description |
|---|---|
protected <T extends TokenRewriteStream.RewriteOperation> |
TokenRewriteStream.getKindOfOps(java.util.List<? extends TokenRewriteStream.RewriteOperation> rewrites,
java.lang.Class<T> kind) |
protected <T extends TokenRewriteStream.RewriteOperation> |
TokenRewriteStream.getKindOfOps(java.util.List<? extends TokenRewriteStream.RewriteOperation> rewrites,
java.lang.Class<T> kind,
int before)
Get all operations before an index of a particular kind
|
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List<TokenRewriteStream.RewriteOperation> |
TokenRewriteStream.getProgram(java.lang.String name) |
private java.util.List<TokenRewriteStream.RewriteOperation> |
TokenRewriteStream.initializeProgram(java.lang.String name) |
protected java.util.Map<java.lang.Integer,? extends TokenRewriteStream.RewriteOperation> |
TokenRewriteStream.reduceToSingleOperationPerIndex(java.util.List<? extends TokenRewriteStream.RewriteOperation> rewrites)
We need to combine operations and report invalid operations (like
overlapping replaces that are not completed nested).
|
| Modifier and Type | Method and Description |
|---|---|
protected <T extends TokenRewriteStream.RewriteOperation> |
TokenRewriteStream.getKindOfOps(java.util.List<? extends TokenRewriteStream.RewriteOperation> rewrites,
java.lang.Class<T> kind) |
protected <T extends TokenRewriteStream.RewriteOperation> |
TokenRewriteStream.getKindOfOps(java.util.List<? extends TokenRewriteStream.RewriteOperation> rewrites,
java.lang.Class<T> kind,
int before)
Get all operations before an index of a particular kind
|
protected java.util.Map<java.lang.Integer,? extends TokenRewriteStream.RewriteOperation> |
TokenRewriteStream.reduceToSingleOperationPerIndex(java.util.List<? extends TokenRewriteStream.RewriteOperation> rewrites)
We need to combine operations and report invalid operations (like
overlapping replaces that are not completed nested).
|