Package org.apache.jasper.compiler
Class Node.Visitor
- java.lang.Object
-
- org.apache.jasper.compiler.Node.Visitor
-
- Enclosing class:
- Node
public static class Node.Visitor extends java.lang.Object
A visitor class for visiting the node. This class also provides the default action (i.e. nop) for each of the child class of the Node. An actual visitor should extend this class and supply the visit method for the nodes that it cares.
-
-
Constructor Summary
Constructors Constructor Description Visitor()
-
Method Summary
-
-
-
Method Detail
-
doVisit
protected void doVisit(Node n) throws JasperException
This method provides a place to put actions that are common to all nodes. Override this in the child visitor class if needed.- Parameters:
n
- The node to visit- Throws:
JasperException
-
visitBody
protected void visitBody(Node n) throws JasperException
Visit the body of a node, using the current visitor- Parameters:
n
- The node to visit- Throws:
JasperException
-
visit
public void visit(Node.Root n) throws JasperException
- Throws:
JasperException
-
visit
public void visit(Node.JspRoot n) throws JasperException
- Throws:
JasperException
-
visit
public void visit(Node.PageDirective n) throws JasperException
- Throws:
JasperException
-
visit
public void visit(Node.TagDirective n) throws JasperException
- Throws:
JasperException
-
visit
public void visit(Node.IncludeDirective n) throws JasperException
- Throws:
JasperException
-
visit
public void visit(Node.TaglibDirective n) throws JasperException
- Throws:
JasperException
-
visit
public void visit(Node.AttributeDirective n) throws JasperException
- Throws:
JasperException
-
visit
public void visit(Node.VariableDirective n) throws JasperException
- Throws:
JasperException
-
visit
public void visit(Node.Comment n) throws JasperException
- Throws:
JasperException
-
visit
public void visit(Node.Declaration n) throws JasperException
- Throws:
JasperException
-
visit
public void visit(Node.Expression n) throws JasperException
- Throws:
JasperException
-
visit
public void visit(Node.Scriptlet n) throws JasperException
- Throws:
JasperException
-
visit
public void visit(Node.ELExpression n) throws JasperException
- Throws:
JasperException
-
visit
public void visit(Node.IncludeAction n) throws JasperException
- Throws:
JasperException
-
visit
public void visit(Node.ForwardAction n) throws JasperException
- Throws:
JasperException
-
visit
public void visit(Node.GetProperty n) throws JasperException
- Throws:
JasperException
-
visit
public void visit(Node.SetProperty n) throws JasperException
- Throws:
JasperException
-
visit
public void visit(Node.ParamAction n) throws JasperException
- Throws:
JasperException
-
visit
public void visit(Node.ParamsAction n) throws JasperException
- Throws:
JasperException
-
visit
public void visit(Node.FallBackAction n) throws JasperException
- Throws:
JasperException
-
visit
public void visit(Node.UseBean n) throws JasperException
- Throws:
JasperException
-
visit
public void visit(Node.PlugIn n) throws JasperException
- Throws:
JasperException
-
visit
public void visit(Node.CustomTag n) throws JasperException
- Throws:
JasperException
-
visit
public void visit(Node.UninterpretedTag n) throws JasperException
- Throws:
JasperException
-
visit
public void visit(Node.JspElement n) throws JasperException
- Throws:
JasperException
-
visit
public void visit(Node.JspText n) throws JasperException
- Throws:
JasperException
-
visit
public void visit(Node.NamedAttribute n) throws JasperException
- Throws:
JasperException
-
visit
public void visit(Node.JspBody n) throws JasperException
- Throws:
JasperException
-
visit
public void visit(Node.InvokeAction n) throws JasperException
- Throws:
JasperException
-
visit
public void visit(Node.DoBodyAction n) throws JasperException
- Throws:
JasperException
-
visit
public void visit(Node.TemplateText n) throws JasperException
- Throws:
JasperException
-
visit
public void visit(Node.JspOutput n) throws JasperException
- Throws:
JasperException
-
visit
public void visit(Node.AttributeGenerator n) throws JasperException
- Throws:
JasperException
-
-