Re: AST to Query Sring

2014-07-25 Thread Lin Liu
Hi Navis, Thanks for your suggestions. This is a good starting point. Thanks, Lin On Thu, Jul 24, 2014 at 6:00 PM, Navis류승우 wrote: > You need TokenRewriteStream for the ASTNode. which is in Context or > ParseDriver. > > String rewrite(TokenRewriteStream rewriter, ASTNode source) throws > Exce

Re: AST to Query Sring

2014-07-24 Thread Navis류승우
You need TokenRewriteStream for the ASTNode. which is in Context or ParseDriver. String rewrite(TokenRewriteStream rewriter, ASTNode source) throws Exception { // some modification.. return rewriter.toString(source.getTokenStartIndex(), source.getTokenStopIndex()); } Thanks, Navis 2014-07-2