Class ELNode.Visitor

java.lang.Object
org.apache.jasper.compiler.ELNode.Visitor
Enclosing class:
ELNode

public static class ELNode.Visitor extends Object
A visitor class for traversing ELNodes.
  • Constructor Details

    • Visitor

      public Visitor()
      Creates a new Visitor instance.
  • Method Details

    • 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