|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.velocity.test.view.TemplateNodeView
Simple class for dumping the AST for a template. Good for debugging and writing new directives.
Field Summary | |
---|---|
private SimpleNode |
document
Root of the AST node structure that results from parsing a template. |
private NodeViewMode |
visitor
Visitor used to traverse the AST node structure and produce a visual representation of the node structure. |
Constructor Summary | |
---|---|
TemplateNodeView(java.lang.String template)
Default constructor: sets up the Velocity Runtime, creates the visitor for traversing the node structure and then produces the visual representation by the visitation. |
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
For testing |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private SimpleNode document
private NodeViewMode visitor
Constructor Detail |
public TemplateNodeView(java.lang.String template)
Method Detail |
public static void main(java.lang.String[] args)
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |