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); }
/** * 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>(); }
public InsertSerialIDListener(TokenStream tokens) { rewriter = new TokenStreamRewriter(tokens); }
public InjectCiplogicTraceWrap(String sourceFile, TokenStream tokenStream) { this.sourceFile = sourceFile; this.tokenStreamRewriter = new TokenStreamRewriter(tokenStream); }
/** * Get the token stream rewriter. * * @return Token stream rewriter. */ public TokenStreamRewriter getRewriter() { return rewriter; }