List of usage examples for org.hibernate.hql.internal.ast.util ASTPrinter ASTPrinter
ASTPrinter(Class tokenTypeConstants)
From source file:org.babyfish.hibernate.hql.XQueryTranslatorImpl.java
License:Open Source License
private static void logAST(AST ast, String message) { if (LOGGER.isDebugEnabled()) { ASTPrinter printer = new ASTPrinter(HqlTokenTypes.class); String astText = printer.showAsString(ast, message); LOGGER.debug(astText);/*from ww w . j av a 2 s. c o m*/ } }