use of org.apache.asterix.lang.aql.visitor.AQLFormatPrintVisitor in project asterixdb by apache.
the class AQLFormatPrintUtil method toString.
public static String toString(List<ILangExpression> exprs) throws CompilationException {
ByteArrayOutputStream bos = new ByteArrayOutputStream();
PrintWriter output = new PrintWriter(bos);
AQLFormatPrintVisitor visitor = new AQLFormatPrintVisitor(output);
for (ILangExpression expr : exprs) {
expr.accept(visitor, 0);
}
output.close();
return bos.toString();
}
use of org.apache.asterix.lang.aql.visitor.AQLFormatPrintVisitor in project asterixdb by apache.
the class AQLFormatPrintUtil method print.
public static void print(ILangExpression expr, PrintWriter output) throws CompilationException {
AQLFormatPrintVisitor visitor = new AQLFormatPrintVisitor(output);
expr.accept(visitor, 0);
}
Aggregations