org.jaxen.pattern
Class PatternHandler
java.lang.Object
|
+--org.jaxen.JaxenHandler
|
+--org.jaxen.pattern.PatternHandler
- All Implemented Interfaces:
- org.saxpath.XPathHandler
- public class PatternHandler
- extends JaxenHandler
SAXPath XPathHandler
implementation capable
of building Jaxen expression trees which can walk various
different object models.
- Author:
- bob mcwhirter (bob@werken.com)
Methods inherited from class org.jaxen.JaxenHandler |
addParameters, addPredicates, addSteps, canPop, endAdditiveExpr, endAllNodeStep, endAndExpr, endCommentNodeStep, endEqualityExpr, endFilterExpr, endFunction, endMultiplicativeExpr, endNameStep, endOrExpr, endPredicate, endProcessingInstructionNodeStep, endRelationalExpr, endTextNodeStep, endUnaryExpr, getXPathExpr, getXPathExpr, getXPathFactory, literal, number, number, peekFrame, pop, popFrame, push, pushFrame, returnExpr, setXPathFactory, stackSize, startAdditiveExpr, startAndExpr, startEqualityExpr, startFilterExpr, startFunction, startMultiplicativeExpr, startOrExpr, startPathExpr, startPredicate, startRelationalExpr, startUnaryExpr, startXPath, variableReference |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PatternHandler
public PatternHandler()
getPattern
public Pattern getPattern()
- Retrieve the simplified Jaxen Pattern expression tree.
This method is only valid once XPathReader.parse(...)
successfully returned.
- Returns:
- The Pattern expression tree.
getPattern
public Pattern getPattern(boolean shouldSimplify)
- Retrieve the Jaxen Pattern expression tree, optionally
simplified.
This method is only valid once XPathReader.parse(...)
successfully returned.
- Returns:
- The Pattern expression tree.
endXPath
public void endXPath()
throws JaxenException
- Overrides:
endXPath
in class JaxenHandler
endPathExpr
public void endPathExpr()
throws JaxenException
- Overrides:
endPathExpr
in class JaxenHandler
startAbsoluteLocationPath
public void startAbsoluteLocationPath()
throws JaxenException
- Overrides:
startAbsoluteLocationPath
in class JaxenHandler
endAbsoluteLocationPath
public void endAbsoluteLocationPath()
throws JaxenException
- Overrides:
endAbsoluteLocationPath
in class JaxenHandler
startRelativeLocationPath
public void startRelativeLocationPath()
throws JaxenException
- Overrides:
startRelativeLocationPath
in class JaxenHandler
endRelativeLocationPath
public void endRelativeLocationPath()
throws JaxenException
- Overrides:
endRelativeLocationPath
in class JaxenHandler
endLocationPath
protected void endLocationPath()
throws JaxenException
- Overrides:
endLocationPath
in class JaxenHandler
startNameStep
public void startNameStep(int axis,
String prefix,
String localName)
throws JaxenException
- Overrides:
startNameStep
in class JaxenHandler
startTextNodeStep
public void startTextNodeStep(int axis)
throws JaxenException
- Overrides:
startTextNodeStep
in class JaxenHandler
startCommentNodeStep
public void startCommentNodeStep(int axis)
throws JaxenException
- Overrides:
startCommentNodeStep
in class JaxenHandler
startAllNodeStep
public void startAllNodeStep(int axis)
throws JaxenException
- Overrides:
startAllNodeStep
in class JaxenHandler
startProcessingInstructionNodeStep
public void startProcessingInstructionNodeStep(int axis,
String name)
throws JaxenException
- Overrides:
startProcessingInstructionNodeStep
in class JaxenHandler
endStep
protected void endStep()
- Overrides:
endStep
in class JaxenHandler
startUnionExpr
public void startUnionExpr()
throws JaxenException
- Overrides:
startUnionExpr
in class JaxenHandler
endUnionExpr
public void endUnionExpr(boolean create)
throws JaxenException
- Overrides:
endUnionExpr
in class JaxenHandler
createAbsoluteLocationPath
protected Pattern createAbsoluteLocationPath()
createRelativeLocationPath
protected Pattern createRelativeLocationPath()
Copyright © 2002 bob mcwhirter & James Strachan. All Rights Reserved. Hosted by