Example usage for org.hibernate.hql.internal.ast.util ASTPrinter ASTPrinter

List of usage examples for org.hibernate.hql.internal.ast.util ASTPrinter ASTPrinter

Introduction

In this page you can find the example usage for org.hibernate.hql.internal.ast.util ASTPrinter ASTPrinter.

Prototype

ASTPrinter(Class tokenTypeConstants) 

Source Link

Document

Constructs a printer.

Usage

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*/
    }
}