use of org.apache.asterix.lang.common.base.ILangExpression in project asterixdb by apache.
the class SqlppFormatPrintUtil method toString.
/**
* @param exprs
* a list of language expression.
* @return a formatted string of the input language expressions.
* @throws CompilationException
*/
public static String toString(List<ILangExpression> exprs) throws CompilationException {
ByteArrayOutputStream bos = new ByteArrayOutputStream();
PrintWriter output = new PrintWriter(bos);
SqlppFormatPrintVisitor visitor = new SqlppFormatPrintVisitor(output);
for (ILangExpression expr : exprs) {
expr.accept(visitor, 0);
}
output.close();
return bos.toString();
}
Aggregations