Class Node.Visitor
java.lang.Object
org.apache.jasper.compiler.Node.Visitor
- Enclosing class:
Node
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected voidThis method provides a place to put actions that are common to all nodes.voidVisits an attribute directive node.voidVisits an attribute generator node.voidVisits a comment node.voidVisits a custom tag node.voidVisits a declaration node.voidVisits a do body action node.voidVisits an EL expression node.voidVisits an expression node.voidVisits a forward action node.voidVisits a get property node.voidVisits an include action node.voidVisits an include directive node.voidVisits an invoke action node.voidVisits a JSP body node.voidVisits a JSP element node.voidVisits a JSP output node.voidVisits a JSP root node.voidVisits a JSP text node.voidVisits a named attribute node.voidVisits a page directive node.voidVisits a param action node.voidVisits a root node.voidVisits a scriptlet node.voidVisits a set property node.voidVisits a tag directive node.voidVisits a taglib directive node.voidVisits a template text node.voidVisits an uninterpreted tag node.voidVisits a use bean node.voidVisits a variable directive node.protected voidVisit the body of a node, using the current visitor
-
Constructor Details
-
Visitor
public Visitor()Constructs a new Visitor instance.
-
-
Method Details
-
doVisit
This method provides a place to put actions that are common to all nodes. It is a NO-OP by default. Override this in the child visitor class if needed.- Parameters:
n- The node to visit- Throws:
JasperException- if an error occurs while visiting the node
-
visitBody
Visit the body of a node, using the current visitor- Parameters:
n- The node to visit- Throws:
JasperException- if an error occurs while visiting the body
-
visit
Visits a root node.- Parameters:
n- The root node to visit- Throws:
JasperException- if an error occurs while visiting the node
-
visit
Visits a JSP root node.- Parameters:
n- The JSP root node to visit- Throws:
JasperException- if an error occurs while visiting the node
-
visit
Visits a page directive node.- Parameters:
n- The page directive node to visit- Throws:
JasperException- if an error occurs while visiting the node
-
visit
Visits a tag directive node.- Parameters:
n- The tag directive node to visit- Throws:
JasperException- if an error occurs while visiting the node
-
visit
Visits an include directive node.- Parameters:
n- The include directive node to visit- Throws:
JasperException- if an error occurs while visiting the node
-
visit
Visits a taglib directive node.- Parameters:
n- The taglib directive node to visit- Throws:
JasperException- if an error occurs while visiting the node
-
visit
Visits an attribute directive node.- Parameters:
n- The attribute directive node to visit- Throws:
JasperException- if an error occurs while visiting the node
-
visit
Visits a variable directive node.- Parameters:
n- The variable directive node to visit- Throws:
JasperException- if an error occurs while visiting the node
-
visit
Visits a comment node.- Parameters:
n- The comment node to visit- Throws:
JasperException- if an error occurs while visiting the node
-
visit
Visits a declaration node.- Parameters:
n- The declaration node to visit- Throws:
JasperException- if an error occurs while visiting the node
-
visit
Visits an expression node.- Parameters:
n- The expression node to visit- Throws:
JasperException- if an error occurs while visiting the node
-
visit
Visits a scriptlet node.- Parameters:
n- The scriptlet node to visit- Throws:
JasperException- if an error occurs while visiting the node
-
visit
Visits an EL expression node.- Parameters:
n- The EL expression node to visit- Throws:
JasperException- if an error occurs while visiting the node
-
visit
Visits an include action node.- Parameters:
n- The include action node to visit- Throws:
JasperException- if an error occurs while visiting the node
-
visit
Visits a forward action node.- Parameters:
n- The forward action node to visit- Throws:
JasperException- if an error occurs while visiting the node
-
visit
Visits a get property node.- Parameters:
n- The get property node to visit- Throws:
JasperException- if an error occurs while visiting the node
-
visit
Visits a set property node.- Parameters:
n- The set property node to visit- Throws:
JasperException- if an error occurs while visiting the node
-
visit
Visits a param action node.- Parameters:
n- The param action node to visit- Throws:
JasperException- if an error occurs while visiting the node
-
visit
Visits a use bean node.- Parameters:
n- The use bean node to visit- Throws:
JasperException- if an error occurs while visiting the node
-
visit
Visits a custom tag node.- Parameters:
n- The custom tag node to visit- Throws:
JasperException- if an error occurs while visiting the node
-
visit
Visits an uninterpreted tag node.- Parameters:
n- The uninterpreted tag node to visit- Throws:
JasperException- if an error occurs while visiting the node
-
visit
Visits a JSP element node.- Parameters:
n- The JSP element node to visit- Throws:
JasperException- if an error occurs while visiting the node
-
visit
Visits a JSP text node.- Parameters:
n- The JSP text node to visit- Throws:
JasperException- if an error occurs while visiting the node
-
visit
Visits a named attribute node.- Parameters:
n- The named attribute node to visit- Throws:
JasperException- if an error occurs while visiting the node
-
visit
Visits a JSP body node.- Parameters:
n- The JSP body node to visit- Throws:
JasperException- if an error occurs while visiting the node
-
visit
Visits an invoke action node.- Parameters:
n- The invoke action node to visit- Throws:
JasperException- if an error occurs while visiting the node
-
visit
Visits a do body action node.- Parameters:
n- The do body action node to visit- Throws:
JasperException- if an error occurs while visiting the node
-
visit
Visits a template text node.- Parameters:
n- The template text node to visit- Throws:
JasperException- if an error occurs while visiting the node
-
visit
Visits a JSP output node.- Parameters:
n- The JSP output node to visit- Throws:
JasperException- if an error occurs while visiting the node
-
visit
Visits an attribute generator node.- Parameters:
n- The attribute generator node to visit- Throws:
JasperException- if an error occurs while visiting the node
-