org.apache.velocity.test.view
Class TemplateNodeView
java.lang.Object
org.apache.velocity.test.view.TemplateNodeView
public class TemplateNodeView
extends java.lang.Object
Simple class for dumping the AST for a template.
Good for debugging and writing new directives.
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.
|
TemplateNodeView(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.
|
static void | main(args[] ) - For testing
|
document
private SimpleNode document
Root of the AST node structure that results from
parsing a template.
visitor
private NodeViewMode visitor
Visitor used to traverse the AST node structure
and produce a visual representation of the
node structure. Very good for debugging and
writing new directives.
TemplateNodeView
public TemplateNodeView(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.
main
public static void main(args[] )
For testing
Copyright B) 2002 Apache Software Foundation. All Rights Reserved.