Class ELNode.Visitor
java.lang.Object
org.apache.jasper.compiler.ELNode.Visitor
- Enclosing class:
ELNode
A visitor class for traversing ELNodes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidVisits an ELText node.voidVisits a Function node.voidvisit(ELNode.Root n) Visits a Root node by traversing its contained expression.voidvisit(ELNode.Text n) Visits a Text node.
-
Constructor Details
-
Visitor
public Visitor()Creates a new Visitor instance.
-
-
Method Details
-
visit
Visits a Root node by traversing its contained expression.- Parameters:
n- the root node- Throws:
JasperException- if an error occurs during visitation
-
visit
Visits a Function node. No-op by default; override to handle functions.- Parameters:
n- the function node- Throws:
JasperException- if an error occurs during visitation
-
visit
Visits a Text node. No-op by default; override to handle text.- Parameters:
n- the text node- Throws:
JasperException- if an error occurs during visitation
-
visit
Visits an ELText node. No-op by default; override to handle EL text.- Parameters:
n- the EL text node- Throws:
JasperException- if an error occurs during visitation
-