net.sf.swan.xpath.pattern
Class PatternHandler

java.lang.Object
  |
  +--org.jaxen.JaxenHandler
        |
        +--net.sf.swan.xpath.pattern.PatternHandler
All Implemented Interfaces:
org.saxpath.XPathHandler

public class PatternHandler
extends org.jaxen.JaxenHandler


Field Summary
static NodeTest ANY_NODE_TEST
           
static NodeTest ATTRIBUTE_TEST
           
static NodeTest COMMENT_TEST
           
static NodeTest DOCUMENT_TEST
           
static NodeTest ELEMENT_TEST
           
static NodeTest PROCESSING_INSTRUCTION_TEST
           
static NodeTest TEXT_TEST
           
 
Fields inherited from class org.jaxen.JaxenHandler
simplified, stack
 
Constructor Summary
PatternHandler()
           
 
Method Summary
protected  java.lang.Object createPatternStep(int axis, NodeTest nodeTest, java.lang.Object next)
           
 void endAbsoluteLocationPath()
           
 void endAdditiveExpr(int additiveOperator)
           
 void endAllNodeStep()
           
 void endAndExpr(boolean create)
           
 void endCommentNodeStep()
           
 void endEqualityExpr(int equalityOperator)
           
 void endFilterExpr()
           
 void endFunction()
           
 void endMultiplicativeExpr(int multiplicativeOperator)
           
 void endNameStep()
           
 void endOrExpr(boolean create)
           
 void endPathExpr()
           
protected  void endPatternStep()
           
 void endPredicate()
           
 void endProcessingInstructionNodeStep()
           
 void endRelationalExpr(int relationalOperator)
           
 void endRelativeLocationPath()
           
 void endTextNodeStep()
           
 void endUnaryExpr(int unaryOperator)
           
 void endUnionExpr(boolean create)
           
 void endXPath()
           
 ParseContext getParseContext()
           
 Pattern[] getPatterns()
           
 org.jaxen.expr.XPathExpr getXPathExpr(boolean shouldSimplify)
           
protected  boolean isInPredicate()
           
 void literal(java.lang.String literal)
           
 void number(double number)
           
 void number(int number)
           
protected  java.lang.String resolveNamespacePrefix(java.lang.String prefix)
           
 void setParseContext(ParseContext context)
           
 void startAbsoluteLocationPath()
           
 void startAdditiveExpr()
           
 void startAllNodeStep(int axis)
           
 void startAndExpr()
           
 void startCommentNodeStep(int axis)
           
 void startEqualityExpr()
           
 void startFilterExpr()
           
 void startFunction(java.lang.String prefix, java.lang.String functionName)
           
 void startMultiplicativeExpr()
           
 void startNameStep(int axis, java.lang.String prefix, java.lang.String localName)
           
 void startOrExpr()
           
 void startPathExpr()
           
protected  java.lang.Object startPatternStep()
           
 void startPredicate()
           
 void startProcessingInstructionNodeStep(int axis, java.lang.String name)
           
 void startRelationalExpr()
           
 void startRelativeLocationPath()
           
 void startTextNodeStep(int axis)
           
 void startUnaryExpr()
           
 void startUnionExpr()
           
 void startXPath()
           
 void variableReference(java.lang.String prefix, java.lang.String variableName)
           
protected  void verifyInPredicate()
           
 
Methods inherited from class org.jaxen.JaxenHandler
addParameters, addPredicates, addSteps, canPop, endLocationPath, endStep, getXPathExpr, getXPathFactory, peekFrame, pop, popFrame, push, pushFrame, returnExpr, setXPathFactory, stackSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DOCUMENT_TEST

public static final NodeTest DOCUMENT_TEST

TEXT_TEST

public static final NodeTest TEXT_TEST

ELEMENT_TEST

public static final NodeTest ELEMENT_TEST

ATTRIBUTE_TEST

public static final NodeTest ATTRIBUTE_TEST

PROCESSING_INSTRUCTION_TEST

public static final NodeTest PROCESSING_INSTRUCTION_TEST

COMMENT_TEST

public static final NodeTest COMMENT_TEST

ANY_NODE_TEST

public static final NodeTest ANY_NODE_TEST
Constructor Detail

PatternHandler

public PatternHandler()
Method Detail

getPatterns

public Pattern[] getPatterns()

getXPathExpr

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

setParseContext

public void setParseContext(ParseContext context)

getParseContext

public ParseContext getParseContext()

startXPath

public void startXPath()
                throws org.jaxen.JaxenException
Overrides:
startXPath in class org.jaxen.JaxenHandler

endXPath

public void endXPath()
              throws org.jaxen.JaxenException
Overrides:
endXPath in class org.jaxen.JaxenHandler

startPathExpr

public void startPathExpr()
                   throws org.jaxen.JaxenException
Overrides:
startPathExpr in class org.jaxen.JaxenHandler

endPathExpr

public void endPathExpr()
                 throws org.jaxen.JaxenException
Overrides:
endPathExpr in class org.jaxen.JaxenHandler

startAbsoluteLocationPath

public void startAbsoluteLocationPath()
                               throws org.jaxen.JaxenException
Overrides:
startAbsoluteLocationPath in class org.jaxen.JaxenHandler

endAbsoluteLocationPath

public void endAbsoluteLocationPath()
                             throws org.jaxen.JaxenException
Overrides:
endAbsoluteLocationPath in class org.jaxen.JaxenHandler

startRelativeLocationPath

public void startRelativeLocationPath()
                               throws org.jaxen.JaxenException
Overrides:
startRelativeLocationPath in class org.jaxen.JaxenHandler

endRelativeLocationPath

public void endRelativeLocationPath()
                             throws org.jaxen.JaxenException
Overrides:
endRelativeLocationPath in class org.jaxen.JaxenHandler

startNameStep

public void startNameStep(int axis,
                          java.lang.String prefix,
                          java.lang.String localName)
                   throws org.jaxen.JaxenException
Overrides:
startNameStep in class org.jaxen.JaxenHandler

endNameStep

public void endNameStep()
                 throws org.jaxen.JaxenException
Overrides:
endNameStep in class org.jaxen.JaxenHandler

startTextNodeStep

public void startTextNodeStep(int axis)
                       throws org.jaxen.JaxenException
Overrides:
startTextNodeStep in class org.jaxen.JaxenHandler

endTextNodeStep

public void endTextNodeStep()
                     throws org.jaxen.JaxenException
Overrides:
endTextNodeStep in class org.jaxen.JaxenHandler

startCommentNodeStep

public void startCommentNodeStep(int axis)
                          throws org.jaxen.JaxenException
Overrides:
startCommentNodeStep in class org.jaxen.JaxenHandler

endCommentNodeStep

public void endCommentNodeStep()
                        throws org.jaxen.JaxenException
Overrides:
endCommentNodeStep in class org.jaxen.JaxenHandler

startAllNodeStep

public void startAllNodeStep(int axis)
                      throws org.jaxen.JaxenException
Overrides:
startAllNodeStep in class org.jaxen.JaxenHandler

endAllNodeStep

public void endAllNodeStep()
                    throws org.jaxen.JaxenException
Overrides:
endAllNodeStep in class org.jaxen.JaxenHandler

startProcessingInstructionNodeStep

public void startProcessingInstructionNodeStep(int axis,
                                               java.lang.String name)
                                        throws org.jaxen.JaxenException
Overrides:
startProcessingInstructionNodeStep in class org.jaxen.JaxenHandler

endProcessingInstructionNodeStep

public void endProcessingInstructionNodeStep()
                                      throws org.jaxen.JaxenException
Overrides:
endProcessingInstructionNodeStep in class org.jaxen.JaxenHandler

startPredicate

public void startPredicate()
                    throws org.jaxen.JaxenException
Overrides:
startPredicate in class org.jaxen.JaxenHandler

endPredicate

public void endPredicate()
                  throws org.jaxen.JaxenException
Overrides:
endPredicate in class org.jaxen.JaxenHandler

startFilterExpr

public void startFilterExpr()
                     throws org.jaxen.JaxenException
Overrides:
startFilterExpr in class org.jaxen.JaxenHandler

endFilterExpr

public void endFilterExpr()
                   throws org.jaxen.JaxenException
Overrides:
endFilterExpr in class org.jaxen.JaxenHandler

startOrExpr

public void startOrExpr()
                 throws org.jaxen.JaxenException
Overrides:
startOrExpr in class org.jaxen.JaxenHandler

endOrExpr

public void endOrExpr(boolean create)
               throws org.jaxen.JaxenException
Overrides:
endOrExpr in class org.jaxen.JaxenHandler

startAndExpr

public void startAndExpr()
                  throws org.jaxen.JaxenException
Overrides:
startAndExpr in class org.jaxen.JaxenHandler

endAndExpr

public void endAndExpr(boolean create)
                throws org.jaxen.JaxenException
Overrides:
endAndExpr in class org.jaxen.JaxenHandler

startEqualityExpr

public void startEqualityExpr()
                       throws org.jaxen.JaxenException
Overrides:
startEqualityExpr in class org.jaxen.JaxenHandler

endEqualityExpr

public void endEqualityExpr(int equalityOperator)
                     throws org.jaxen.JaxenException
Overrides:
endEqualityExpr in class org.jaxen.JaxenHandler

startRelationalExpr

public void startRelationalExpr()
                         throws org.jaxen.JaxenException
Overrides:
startRelationalExpr in class org.jaxen.JaxenHandler

endRelationalExpr

public void endRelationalExpr(int relationalOperator)
                       throws org.jaxen.JaxenException
Overrides:
endRelationalExpr in class org.jaxen.JaxenHandler

startAdditiveExpr

public void startAdditiveExpr()
                       throws org.jaxen.JaxenException
Overrides:
startAdditiveExpr in class org.jaxen.JaxenHandler

endAdditiveExpr

public void endAdditiveExpr(int additiveOperator)
                     throws org.jaxen.JaxenException
Overrides:
endAdditiveExpr in class org.jaxen.JaxenHandler

startMultiplicativeExpr

public void startMultiplicativeExpr()
                             throws org.jaxen.JaxenException
Overrides:
startMultiplicativeExpr in class org.jaxen.JaxenHandler

endMultiplicativeExpr

public void endMultiplicativeExpr(int multiplicativeOperator)
                           throws org.jaxen.JaxenException
Overrides:
endMultiplicativeExpr in class org.jaxen.JaxenHandler

startUnaryExpr

public void startUnaryExpr()
                    throws org.jaxen.JaxenException
Overrides:
startUnaryExpr in class org.jaxen.JaxenHandler

endUnaryExpr

public void endUnaryExpr(int unaryOperator)
                  throws org.jaxen.JaxenException
Overrides:
endUnaryExpr in class org.jaxen.JaxenHandler

startUnionExpr

public void startUnionExpr()
                    throws org.jaxen.JaxenException
Overrides:
startUnionExpr in class org.jaxen.JaxenHandler

endUnionExpr

public void endUnionExpr(boolean create)
                  throws org.jaxen.JaxenException
Overrides:
endUnionExpr in class org.jaxen.JaxenHandler

number

public void number(int number)
            throws org.jaxen.JaxenException
Overrides:
number in class org.jaxen.JaxenHandler

number

public void number(double number)
            throws org.jaxen.JaxenException
Overrides:
number in class org.jaxen.JaxenHandler

literal

public void literal(java.lang.String literal)
             throws org.jaxen.JaxenException
Overrides:
literal in class org.jaxen.JaxenHandler

variableReference

public void variableReference(java.lang.String prefix,
                              java.lang.String variableName)
                       throws org.jaxen.JaxenException
Overrides:
variableReference in class org.jaxen.JaxenHandler

startFunction

public void startFunction(java.lang.String prefix,
                          java.lang.String functionName)
                   throws org.jaxen.JaxenException
Overrides:
startFunction in class org.jaxen.JaxenHandler

endFunction

public void endFunction()
                 throws org.jaxen.JaxenException
Overrides:
endFunction in class org.jaxen.JaxenHandler

resolveNamespacePrefix

protected java.lang.String resolveNamespacePrefix(java.lang.String prefix)
                                           throws org.jaxen.JaxenException

isInPredicate

protected boolean isInPredicate()

verifyInPredicate

protected void verifyInPredicate()
                          throws org.jaxen.JaxenException

createPatternStep

protected java.lang.Object createPatternStep(int axis,
                                             NodeTest nodeTest,
                                             java.lang.Object next)
                                      throws org.jaxen.JaxenException

startPatternStep

protected java.lang.Object startPatternStep()
                                     throws org.jaxen.JaxenException

endPatternStep

protected void endPatternStep()
                       throws org.jaxen.JaxenException