Class ELNode.Nodes

  • Enclosing class:
    ELNode

    public static class ELNode.Nodes
    extends java.lang.Object
    An ordered list of ELNode.
    • Constructor Summary

      Constructors 
      Constructor Description
      Nodes()
      Creates a new empty Nodes list.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(ELNode en)
      Adds an ELNode to this list.
      boolean containsEL()
      Checks whether the expression contains an EL expression in the form ${...}.
      java.lang.String getMapName()
      Returns the function map name for this EL expression.
      boolean isEmpty()
      Returns whether this list contains no nodes.
      java.util.Iterator<ELNode> iterator()
      Returns an iterator over the nodes in this list.
      void setMapName​(java.lang.String name)
      Sets the function map name for this EL expression.
      void visit​(ELNode.Visitor v)
      Visit the nodes in the list with the supplied visitor.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Nodes

        public Nodes()
        Creates a new empty Nodes list.
    • Method Detail

      • add

        public void add​(ELNode en)
        Adds an ELNode to this list.
        Parameters:
        en - the node to add
      • visit

        public void visit​(ELNode.Visitor v)
                   throws JasperException
        Visit the nodes in the list with the supplied visitor.
        Parameters:
        v - The visitor used
        Throws:
        JasperException - if an error occurs while visiting a node
      • iterator

        public java.util.Iterator<ELNode> iterator()
        Returns an iterator over the nodes in this list.
        Returns:
        an iterator over the nodes
      • isEmpty

        public boolean isEmpty()
        Returns whether this list contains no nodes.
        Returns:
        true if empty
      • containsEL

        public boolean containsEL()
        Checks whether the expression contains an EL expression in the form ${...}.
        Returns:
        true if the expression contains a ${...}
      • setMapName

        public void setMapName​(java.lang.String name)
        Sets the function map name for this EL expression.
        Parameters:
        name - the function map name
      • getMapName

        public java.lang.String getMapName()
        Returns the function map name for this EL expression.
        Returns:
        the function map name