Class SelectorPathJaxenHandler

  • All Implemented Interfaces:
    org.jaxen.saxpath.XPathHandler

    public class SelectorPathJaxenHandler
    extends org.jaxen.JaxenHandler
    • Constructor Detail

      • SelectorPathJaxenHandler

        public SelectorPathJaxenHandler​(String selector,
                                        Properties namespaces)
    • Method Detail

      • setXPathFactory

        public void setXPathFactory​(org.jaxen.expr.XPathFactory xpathFactory)
        Overrides:
        setXPathFactory in class org.jaxen.JaxenHandler
      • getXPathFactory

        public org.jaxen.expr.XPathFactory getXPathFactory()
        Overrides:
        getXPathFactory in class org.jaxen.JaxenHandler
      • getXPathExpr

        public org.jaxen.expr.XPathExpr getXPathExpr()
        Overrides:
        getXPathExpr in class org.jaxen.JaxenHandler
      • getXPathExpr

        public org.jaxen.expr.XPathExpr getXPathExpr​(boolean shouldSimplify)
        Overrides:
        getXPathExpr in class org.jaxen.JaxenHandler
      • startXPath

        public void startXPath()
        Specified by:
        startXPath in interface org.jaxen.saxpath.XPathHandler
        Overrides:
        startXPath in class org.jaxen.JaxenHandler
      • endXPath

        public void endXPath()
                      throws org.jaxen.JaxenException
        Specified by:
        endXPath in interface org.jaxen.saxpath.XPathHandler
        Overrides:
        endXPath in class org.jaxen.JaxenHandler
        Throws:
        org.jaxen.JaxenException
      • startPathExpr

        public void startPathExpr()
        Specified by:
        startPathExpr in interface org.jaxen.saxpath.XPathHandler
        Overrides:
        startPathExpr in class org.jaxen.JaxenHandler
      • endPathExpr

        public void endPathExpr()
                         throws org.jaxen.JaxenException
        Specified by:
        endPathExpr in interface org.jaxen.saxpath.XPathHandler
        Overrides:
        endPathExpr in class org.jaxen.JaxenHandler
        Throws:
        org.jaxen.JaxenException
      • startAbsoluteLocationPath

        public void startAbsoluteLocationPath()
                                       throws org.jaxen.JaxenException
        Specified by:
        startAbsoluteLocationPath in interface org.jaxen.saxpath.XPathHandler
        Overrides:
        startAbsoluteLocationPath in class org.jaxen.JaxenHandler
        Throws:
        org.jaxen.JaxenException
      • endAbsoluteLocationPath

        public void endAbsoluteLocationPath()
                                     throws org.jaxen.JaxenException
        Specified by:
        endAbsoluteLocationPath in interface org.jaxen.saxpath.XPathHandler
        Overrides:
        endAbsoluteLocationPath in class org.jaxen.JaxenHandler
        Throws:
        org.jaxen.JaxenException
      • startRelativeLocationPath

        public void startRelativeLocationPath()
                                       throws org.jaxen.JaxenException
        Specified by:
        startRelativeLocationPath in interface org.jaxen.saxpath.XPathHandler
        Overrides:
        startRelativeLocationPath in class org.jaxen.JaxenHandler
        Throws:
        org.jaxen.JaxenException
      • endRelativeLocationPath

        public void endRelativeLocationPath()
                                     throws org.jaxen.JaxenException
        Specified by:
        endRelativeLocationPath in interface org.jaxen.saxpath.XPathHandler
        Overrides:
        endRelativeLocationPath in class org.jaxen.JaxenHandler
        Throws:
        org.jaxen.JaxenException
      • endLocationPath

        protected void endLocationPath()
                                throws org.jaxen.JaxenException
        Overrides:
        endLocationPath in class org.jaxen.JaxenHandler
        Throws:
        org.jaxen.JaxenException
      • addSteps

        protected void addSteps​(org.jaxen.expr.LocationPath locationPath,
                                Iterator stepIter)
        Overrides:
        addSteps in class org.jaxen.JaxenHandler
      • startNameStep

        public void startNameStep​(int axis,
                                  String prefix,
                                  String localName)
                           throws org.jaxen.JaxenException
        Specified by:
        startNameStep in interface org.jaxen.saxpath.XPathHandler
        Overrides:
        startNameStep in class org.jaxen.JaxenHandler
        Throws:
        org.jaxen.JaxenException
      • endNameStep

        public void endNameStep()
        Specified by:
        endNameStep in interface org.jaxen.saxpath.XPathHandler
        Overrides:
        endNameStep in class org.jaxen.JaxenHandler
      • startTextNodeStep

        public void startTextNodeStep​(int axis)
                               throws org.jaxen.JaxenException
        Specified by:
        startTextNodeStep in interface org.jaxen.saxpath.XPathHandler
        Overrides:
        startTextNodeStep in class org.jaxen.JaxenHandler
        Throws:
        org.jaxen.JaxenException
      • endTextNodeStep

        public void endTextNodeStep()
        Specified by:
        endTextNodeStep in interface org.jaxen.saxpath.XPathHandler
        Overrides:
        endTextNodeStep in class org.jaxen.JaxenHandler
      • startCommentNodeStep

        public void startCommentNodeStep​(int axis)
                                  throws org.jaxen.JaxenException
        Specified by:
        startCommentNodeStep in interface org.jaxen.saxpath.XPathHandler
        Overrides:
        startCommentNodeStep in class org.jaxen.JaxenHandler
        Throws:
        org.jaxen.JaxenException
      • endCommentNodeStep

        public void endCommentNodeStep()
        Specified by:
        endCommentNodeStep in interface org.jaxen.saxpath.XPathHandler
        Overrides:
        endCommentNodeStep in class org.jaxen.JaxenHandler
      • startAllNodeStep

        public void startAllNodeStep​(int axis)
                              throws org.jaxen.JaxenException
        Specified by:
        startAllNodeStep in interface org.jaxen.saxpath.XPathHandler
        Overrides:
        startAllNodeStep in class org.jaxen.JaxenHandler
        Throws:
        org.jaxen.JaxenException
      • endAllNodeStep

        public void endAllNodeStep()
        Specified by:
        endAllNodeStep in interface org.jaxen.saxpath.XPathHandler
        Overrides:
        endAllNodeStep in class org.jaxen.JaxenHandler
      • startProcessingInstructionNodeStep

        public void startProcessingInstructionNodeStep​(int axis,
                                                       String name)
                                                throws org.jaxen.JaxenException
        Specified by:
        startProcessingInstructionNodeStep in interface org.jaxen.saxpath.XPathHandler
        Overrides:
        startProcessingInstructionNodeStep in class org.jaxen.JaxenHandler
        Throws:
        org.jaxen.JaxenException
      • endProcessingInstructionNodeStep

        public void endProcessingInstructionNodeStep()
        Specified by:
        endProcessingInstructionNodeStep in interface org.jaxen.saxpath.XPathHandler
        Overrides:
        endProcessingInstructionNodeStep in class org.jaxen.JaxenHandler
      • endStep

        protected void endStep()
        Overrides:
        endStep in class org.jaxen.JaxenHandler
      • startPredicate

        public void startPredicate()
        Specified by:
        startPredicate in interface org.jaxen.saxpath.XPathHandler
        Overrides:
        startPredicate in class org.jaxen.JaxenHandler
      • endPredicate

        public void endPredicate()
                          throws org.jaxen.JaxenException
        Specified by:
        endPredicate in interface org.jaxen.saxpath.XPathHandler
        Overrides:
        endPredicate in class org.jaxen.JaxenHandler
        Throws:
        org.jaxen.JaxenException
      • startFilterExpr

        public void startFilterExpr()
        Specified by:
        startFilterExpr in interface org.jaxen.saxpath.XPathHandler
        Overrides:
        startFilterExpr in class org.jaxen.JaxenHandler
      • endFilterExpr

        public void endFilterExpr()
                           throws org.jaxen.JaxenException
        Specified by:
        endFilterExpr in interface org.jaxen.saxpath.XPathHandler
        Overrides:
        endFilterExpr in class org.jaxen.JaxenHandler
        Throws:
        org.jaxen.JaxenException
      • addPredicates

        protected void addPredicates​(org.jaxen.expr.Predicated obj,
                                     Iterator predIter)
        Overrides:
        addPredicates in class org.jaxen.JaxenHandler
      • returnExpr

        protected void returnExpr()
        Overrides:
        returnExpr in class org.jaxen.JaxenHandler
      • startOrExpr

        public void startOrExpr()
        Specified by:
        startOrExpr in interface org.jaxen.saxpath.XPathHandler
        Overrides:
        startOrExpr in class org.jaxen.JaxenHandler
      • endOrExpr

        public void endOrExpr​(boolean create)
                       throws org.jaxen.JaxenException
        Specified by:
        endOrExpr in interface org.jaxen.saxpath.XPathHandler
        Overrides:
        endOrExpr in class org.jaxen.JaxenHandler
        Throws:
        org.jaxen.JaxenException
      • startAndExpr

        public void startAndExpr()
        Specified by:
        startAndExpr in interface org.jaxen.saxpath.XPathHandler
        Overrides:
        startAndExpr in class org.jaxen.JaxenHandler
      • endAndExpr

        public void endAndExpr​(boolean create)
                        throws org.jaxen.JaxenException
        Specified by:
        endAndExpr in interface org.jaxen.saxpath.XPathHandler
        Overrides:
        endAndExpr in class org.jaxen.JaxenHandler
        Throws:
        org.jaxen.JaxenException
      • startEqualityExpr

        public void startEqualityExpr()
        Specified by:
        startEqualityExpr in interface org.jaxen.saxpath.XPathHandler
        Overrides:
        startEqualityExpr in class org.jaxen.JaxenHandler
      • endEqualityExpr

        public void endEqualityExpr​(int operator)
                             throws org.jaxen.JaxenException
        Specified by:
        endEqualityExpr in interface org.jaxen.saxpath.XPathHandler
        Overrides:
        endEqualityExpr in class org.jaxen.JaxenHandler
        Throws:
        org.jaxen.JaxenException
      • startRelationalExpr

        public void startRelationalExpr()
        Specified by:
        startRelationalExpr in interface org.jaxen.saxpath.XPathHandler
        Overrides:
        startRelationalExpr in class org.jaxen.JaxenHandler
      • endRelationalExpr

        public void endRelationalExpr​(int operator)
                               throws org.jaxen.JaxenException
        Specified by:
        endRelationalExpr in interface org.jaxen.saxpath.XPathHandler
        Overrides:
        endRelationalExpr in class org.jaxen.JaxenHandler
        Throws:
        org.jaxen.JaxenException
      • startAdditiveExpr

        public void startAdditiveExpr()
        Specified by:
        startAdditiveExpr in interface org.jaxen.saxpath.XPathHandler
        Overrides:
        startAdditiveExpr in class org.jaxen.JaxenHandler
      • endAdditiveExpr

        public void endAdditiveExpr​(int operator)
                             throws org.jaxen.JaxenException
        Specified by:
        endAdditiveExpr in interface org.jaxen.saxpath.XPathHandler
        Overrides:
        endAdditiveExpr in class org.jaxen.JaxenHandler
        Throws:
        org.jaxen.JaxenException
      • startMultiplicativeExpr

        public void startMultiplicativeExpr()
        Specified by:
        startMultiplicativeExpr in interface org.jaxen.saxpath.XPathHandler
        Overrides:
        startMultiplicativeExpr in class org.jaxen.JaxenHandler
      • endMultiplicativeExpr

        public void endMultiplicativeExpr​(int operator)
                                   throws org.jaxen.JaxenException
        Specified by:
        endMultiplicativeExpr in interface org.jaxen.saxpath.XPathHandler
        Overrides:
        endMultiplicativeExpr in class org.jaxen.JaxenHandler
        Throws:
        org.jaxen.JaxenException
      • startUnaryExpr

        public void startUnaryExpr()
        Specified by:
        startUnaryExpr in interface org.jaxen.saxpath.XPathHandler
        Overrides:
        startUnaryExpr in class org.jaxen.JaxenHandler
      • endUnaryExpr

        public void endUnaryExpr​(int operator)
                          throws org.jaxen.JaxenException
        Specified by:
        endUnaryExpr in interface org.jaxen.saxpath.XPathHandler
        Overrides:
        endUnaryExpr in class org.jaxen.JaxenHandler
        Throws:
        org.jaxen.JaxenException
      • startUnionExpr

        public void startUnionExpr()
        Specified by:
        startUnionExpr in interface org.jaxen.saxpath.XPathHandler
        Overrides:
        startUnionExpr in class org.jaxen.JaxenHandler
      • endUnionExpr

        public void endUnionExpr​(boolean create)
                          throws org.jaxen.JaxenException
        Specified by:
        endUnionExpr in interface org.jaxen.saxpath.XPathHandler
        Overrides:
        endUnionExpr in class org.jaxen.JaxenHandler
        Throws:
        org.jaxen.JaxenException
      • number

        public void number​(int number)
                    throws org.jaxen.JaxenException
        Specified by:
        number in interface org.jaxen.saxpath.XPathHandler
        Overrides:
        number in class org.jaxen.JaxenHandler
        Throws:
        org.jaxen.JaxenException
      • number

        public void number​(double number)
                    throws org.jaxen.JaxenException
        Specified by:
        number in interface org.jaxen.saxpath.XPathHandler
        Overrides:
        number in class org.jaxen.JaxenHandler
        Throws:
        org.jaxen.JaxenException
      • literal

        public void literal​(String literal)
                     throws org.jaxen.JaxenException
        Specified by:
        literal in interface org.jaxen.saxpath.XPathHandler
        Overrides:
        literal in class org.jaxen.JaxenHandler
        Throws:
        org.jaxen.JaxenException
      • variableReference

        public void variableReference​(String prefix,
                                      String variableName)
                               throws org.jaxen.JaxenException
        Specified by:
        variableReference in interface org.jaxen.saxpath.XPathHandler
        Overrides:
        variableReference in class org.jaxen.JaxenHandler
        Throws:
        org.jaxen.JaxenException
      • startFunction

        public void startFunction​(String prefix,
                                  String functionName)
                           throws org.jaxen.JaxenException
        Specified by:
        startFunction in interface org.jaxen.saxpath.XPathHandler
        Overrides:
        startFunction in class org.jaxen.JaxenHandler
        Throws:
        org.jaxen.JaxenException
      • endFunction

        public void endFunction()
        Specified by:
        endFunction in interface org.jaxen.saxpath.XPathHandler
        Overrides:
        endFunction in class org.jaxen.JaxenHandler
      • addParameters

        protected void addParameters​(org.jaxen.expr.FunctionCallExpr function,
                                     Iterator paramIter)
        Overrides:
        addParameters in class org.jaxen.JaxenHandler
      • stackSize

        protected int stackSize()
        Overrides:
        stackSize in class org.jaxen.JaxenHandler
      • push

        protected void push​(Object obj)
        Overrides:
        push in class org.jaxen.JaxenHandler
      • pop

        protected Object pop()
        Overrides:
        pop in class org.jaxen.JaxenHandler
      • canPop

        protected boolean canPop()
        Overrides:
        canPop in class org.jaxen.JaxenHandler
      • pushFrame

        protected void pushFrame()
        Overrides:
        pushFrame in class org.jaxen.JaxenHandler
      • popFrame

        protected LinkedList popFrame()
        Overrides:
        popFrame in class org.jaxen.JaxenHandler
      • peekFrame

        protected LinkedList peekFrame()
        Overrides:
        peekFrame in class org.jaxen.JaxenHandler
      • getSelector

        public String getSelector()