Save This Page
Home » hibernate-distribution-3.3.1.GA-dist » org.hibernate » hql » ast » util » [javadoc | source]
org.hibernate.hql.ast.util
public class: ASTPrinter [javadoc | source]
java.lang.Object
   org.hibernate.hql.ast.util.ASTPrinter
An 'ASCII art' AST printer for debugging ANTLR grammars.
Constructor:
 public ASTPrinter(Class tokenTypeConstants) 
    Constructs an org.hibernate.hql.antlr.ASTPrinter, given the class that contains the token type constants (typically the '{grammar}TokenTypes' interface generated by ANTLR).
    Parameters:
    tokenTypeConstants - The class with token type constants in it.
Method from org.hibernate.hql.ast.util.ASTPrinter Summary:
appendEscapedMultibyteChars,   escapeMultibyteChars,   getConstantName,   isShowClassNames,   nodeToString,   setShowClassNames,   showAsString,   showAst
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.hql.ast.util.ASTPrinter Detail:
 public static  void appendEscapedMultibyteChars(String text,
    StringBuffer buf) 
 public static String escapeMultibyteChars(String text) 
 public static String getConstantName(Class tokenTypeConstants,
    int type) 
    Get a single token type name in the specified set of token type constants (interface).
 public boolean isShowClassNames() 
    Returns true if the node class names will be displayed.
 public String nodeToString(AST ast,
    boolean showClassName) 
 public  void setShowClassNames(boolean showClassNames) 
    Enables or disables AST node class name display.
 public String showAsString(AST ast,
    String header) 
    Prints the AST in 'ASCII art' tree form into a string.
 public  void showAst(AST ast,
    PrintWriter pw) 
    Prints the AST in 'ASCII art' tree form to the specified print writer.