Package | Description |
---|---|
org.antlr.v4.runtime |
Modifier and Type | Field and Description |
---|---|
protected Map<String,List<TokenStreamRewriter.RewriteOperation>> |
TokenStreamRewriter.programs
You may have multiple, named streams of rewrite operations.
|
Modifier and Type | Method and Description |
---|---|
protected <T extends TokenStreamRewriter.RewriteOperation> |
TokenStreamRewriter.getKindOfOps(List<? extends TokenStreamRewriter.RewriteOperation> rewrites,
Class<T> kind,
int before)
Get all operations before an index of a particular kind
|
Modifier and Type | Method and Description |
---|---|
protected List<TokenStreamRewriter.RewriteOperation> |
TokenStreamRewriter.getProgram(String name) |
protected Map<Integer,TokenStreamRewriter.RewriteOperation> |
TokenStreamRewriter.reduceToSingleOperationPerIndex(List<TokenStreamRewriter.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 TokenStreamRewriter.RewriteOperation> |
TokenStreamRewriter.getKindOfOps(List<? extends TokenStreamRewriter.RewriteOperation> rewrites,
Class<T> kind,
int before)
Get all operations before an index of a particular kind
|
protected Map<Integer,TokenStreamRewriter.RewriteOperation> |
TokenStreamRewriter.reduceToSingleOperationPerIndex(List<TokenStreamRewriter.RewriteOperation> rewrites)
We need to combine operations and report invalid operations (like
overlapping replaces that are not completed nested).
|
Copyright © 1992–2017 ANTLR. All rights reserved.