org.jaxen.pattern
Class PatternHandler
- XPathHandler
public class PatternHandler
SAXPath XPathHandler
implementation capable
of building Jaxen expression trees which can walk various
different object models.
- bob mcwhirter (bob@werken.com)
addParameters , addPredicates , addSteps , canPop , endAbsoluteLocationPath , endAdditiveExpr , endAllNodeStep , endAndExpr , endCommentNodeStep , endEqualityExpr , endFilterExpr , endFunction , endLocationPath , endMultiplicativeExpr , endNameStep , endOrExpr , endPathExpr , endPredicate , endProcessingInstructionNodeStep , endRelationalExpr , endRelativeLocationPath , endStep , endTextNodeStep , endUnaryExpr , endUnionExpr , endXPath , getXPathExpr , getXPathExpr , getXPathFactory , literal , number , number , peekFrame , pop , popFrame , push , pushFrame , returnExpr , setXPathFactory , stackSize , startAbsoluteLocationPath , startAdditiveExpr , startAllNodeStep , startAndExpr , startCommentNodeStep , startEqualityExpr , startFilterExpr , startFunction , startMultiplicativeExpr , startNameStep , startOrExpr , startPathExpr , startPredicate , startProcessingInstructionNodeStep , startRelationalExpr , startRelativeLocationPath , startTextNodeStep , startUnaryExpr , startUnionExpr , startXPath , variableReference |
PatternHandler
public PatternHandler()
Constructor
createAbsoluteLocationPath
protected Pattern createAbsoluteLocationPath()
createRelativeLocationPath
protected Pattern createRelativeLocationPath()
endUnionExpr
public void endUnionExpr(boolean create)
throws JaxenException
Receive notification of the end of a union ('|') expression.
- endUnionExpr in interface XPathHandler
- endUnionExpr in interface JaxenHandler
create
- flag that indicates if this expression
should truly be instantiated, or if it was just
a pass-through, based upon the grammar productions
getPattern
public Pattern getPattern()
Retrieve the simplified Jaxen Pattern expression tree.
This method is only valid once
XPathReader.parse(...)
successfully returned.
- 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.
- The Pattern expression tree.
startNameStep
public void startNameStep(int axis,
String prefix,
String localName)
Receive notification of the start of a name step.
- startNameStep in interface XPathHandler
- startNameStep in interface JaxenHandler
axis
- the axis of this stepprefix
- the namespace prefix for the name to test,
or the empty string if no prefix is specifiedlocalName
- the local part of the name to test