Package org.apache.jasper.compiler
Class ELNode.Visitor
- java.lang.Object
-
- org.apache.jasper.compiler.ELNode.Visitor
-
- Enclosing class:
- ELNode
public static class ELNode.Visitor extends java.lang.ObjectA visitor class for traversing ELNodes.
-
-
Constructor Summary
Constructors Constructor Description Visitor()Creates a new Visitor instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvisit(ELNode.ELText n)Visits an ELText node.voidvisit(ELNode.Function n)Visits a Function node.voidvisit(ELNode.Root n)Visits a Root node by traversing its contained expression.voidvisit(ELNode.Text n)Visits a Text node.
-
-
-
Method Detail
-
visit
public void visit(ELNode.Root n) throws JasperException
Visits a Root node by traversing its contained expression.- Parameters:
n- the root node- Throws:
JasperException- if an error occurs during visitation
-
visit
public void visit(ELNode.Function n) throws JasperException
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
public void visit(ELNode.Text n) throws JasperException
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
public void visit(ELNode.ELText n) throws JasperException
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
-
-