Class AbstractHandler

    • Constructor Detail

      • AbstractHandler

        public AbstractHandler​(Jep jep)
    • Method Detail

      • convertToNode

        protected Node convertToNode​(StackFrame frame,
                                     java.lang.Object arg,
                                     org.xml.sax.Locator loc)
                              throws org.xml.sax.SAXParseException
        Casts the argument to a Node.
        Parameters:
        frame - TODO
        arg - the argument
        loc -
        Returns:
        the argument cast as a Node.
        Throws:
        org.xml.sax.SAXParseException - if the argument is not a Node
      • convertChildrenToNodes

        protected Node[] convertChildrenToNodes​(StackFrame frame,
                                                int start,
                                                org.xml.sax.Locator loc)
                                         throws org.xml.sax.SAXParseException
        Converts the children of a StackFrame to an array of Nodes.
        Parameters:
        frame - the StackFrame
        start - the first child to convert
        loc -
        Returns:
        an array of size (frame.getNumChildren - start)
        Throws:
        org.xml.sax.SAXParseException - if any of the arguments are not nodes
      • jepNodesAsArray

        protected Node[] jepNodesAsArray​(StackFrame frame,
                                         org.xml.sax.Locator loc)
        Convert those children which are nodes to a list, other nodes are ignored.
        Parameters:
        frame -
        loc -
        Returns:
        an array of nodes
      • jepNodesToFlatArray

        protected Node[] jepNodesToFlatArray​(StackFrame frame,
                                             org.xml.sax.Locator loc)
        Convert those children which are nodes or arrays of nodes to a list.
        Parameters:
        frame -
        loc -
        Returns:
        an array of nodes
      • jepNodesToFlatList

        protected java.util.List<Node> jepNodesToFlatList​(StackFrame frame)
      • getJep

        public Jep getJep()