Java 类org.antlr.v4.runtime.TokenStreamRewriter 实例源码

项目:ftc    文件:NameToIDSubstitution.java   
public NameToIDSubstitution(FusionTablesSqlParser parser, BufferedTokenStream tokens,
        TableNameToIdMapper namesToIds, Map<String, String> tableAliasToName) {
    Check.notNull(tokens);
    Check.notNull(namesToIds);
    Check.notNull(tableAliasToName);

    this.mapper = namesToIds;
    rewriter = new TokenStreamRewriter(tokens);
}
项目:Purify    文件:SourceFile.java   
/**
 * Create a new file.
 * 
 * @param path Path to the file.
 * @param tokens Token stream.
 * @param tree Parse tree.
 */
public SourceFile(String path, CommonTokenStream tokens, ParseTree tree) {
    this.path = path;
    this.tokens = tokens;
    this.rewriter = new TokenStreamRewriter(tokens);
    this.parseTree = tree;

    this.issues = new ArrayList<IIssue>();
}
项目:antlrgroup    文件:InsertSerialIDListener.java   
public InsertSerialIDListener(TokenStream tokens) {
    rewriter = new TokenStreamRewriter(tokens);
}
项目:ftrace-injector    文件:InjectCiplogicTraceWrap.java   
public InjectCiplogicTraceWrap(String sourceFile, TokenStream tokenStream) {
    this.sourceFile = sourceFile;
    this.tokenStreamRewriter = new TokenStreamRewriter(tokenStream);
}
项目:Purify    文件:SourceFile.java   
/**
 * Get the token stream rewriter.
 * 
 * @return Token stream rewriter.
 */
public TokenStreamRewriter getRewriter() {
    return rewriter;
}