java.lang.Object | |
↳ | org.hibernate.hql.ast.util.ASTPrinter |
Utility for generating pretty "ASCII art" representations of syntax trees.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a printer.
| |||||||||||
Constructs a printer.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the token type name for the given token type.
| |||||||||||
Getter for property 'showClassNames'.
| |||||||||||
Renders the AST into 'ASCII art' form and returns that string representation.
| |||||||||||
Prints the AST in 'ASCII art' form to the specified print stream.
| |||||||||||
Prints the AST in 'ASCII art' tree form to the specified print writer.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
tokenTypeConstants | The token types to use during printing; typically the {vocabulary}TokenTypes.java interface generated by ANTLR. |
---|
Constructs a printer.
tokenTypeConstants | The token types to use during printing; typically the {vocabulary}TokenTypes.java interface generated by ANTLR. |
---|---|
showClassNames | Should the AST class names be shown. |
Returns the token type name for the given token type.
type | The token type. |
---|
Getter for property 'showClassNames'.
Renders the AST into 'ASCII art' form and returns that string representation.
ast | The AST to display. |
---|---|
header | The header for the display. |
Prints the AST in 'ASCII art' form to the specified print stream.
ast | The AST to print. |
---|---|
out | The print stream to which the AST should be printed. |
Prints the AST in 'ASCII art' tree form to the specified print writer.
ast | The AST to print. |
---|---|
pw | The print writer to which the AST should be written. |