public static void dumpAST(Tree ast){
  if (System.getProperty(PROPERTY_ENABLED_AST_DUMP) != null) {
    StringWriter writer=new StringWriter();
    PrintWriter printer=new PrintWriter(writer);
    renderNode(new char[0],ast,printer);
    dumpAST(printer,ast,2);
    log.info(".dumpAST ANTLR Tree dump follows...\n" + writer.toString());
  }
}

public static void dumpAST ( Tree ast ) { if ( System . getProperty ( PROPERTY_ENABLED_AST_DUMP ) != null ) { StringWriter writer = new StringWriter ( ) ; PrintWriter printer = new PrintWriter ( writer ) ; renderNode ( new char [ 0 ] , ast , printer ) ; dumpAST ( printer , ast , 2 ) ; log . info ( ".dumpAST ANTLR Tree dump follows...\n" + writer . toString ( ) ) ; } }
dump the ast node to system . out .
