Class ELNode.Visitor

  • Enclosing class:
    ELNode

    public static class ELNode.Visitor
    extends java.lang.Object
    A visitor class for traversing ELNodes.
    • Constructor Summary

      Constructors 
      Constructor Description
      Visitor()
      Creates a new Visitor instance.
    • Constructor Detail

      • Visitor

        public Visitor()
        Creates a new Visitor instance.
    • 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