public class PatternHandler extends JaxenHandler
XPathHandler implementation capable
of building Jaxen expression trees which can walk various
different object models.simplified, stack| Constructor and Description |
|---|
PatternHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected Pattern |
createAbsoluteLocationPath() |
protected Pattern |
createRelativeLocationPath() |
void |
endAbsoluteLocationPath()
Receive notification of the end of an absolute location path expression.
|
protected void |
endLocationPath() |
void |
endPathExpr()
Receive notification of the end of a path expression.
|
void |
endRelativeLocationPath()
Receive notification of the end of a relative location path expression.
|
protected void |
endStep() |
void |
endUnionExpr(boolean create)
Receive notification of the end of a union ('|') expression.
|
void |
endXPath()
Receive notification of the end of an XPath expression parse.
|
Pattern |
getPattern()
Retrieve the simplified Jaxen Pattern expression tree.
|
Pattern |
getPattern(boolean shouldSimplify)
Retrieve the Jaxen Pattern expression tree, optionally
simplified.
|
void |
startAbsoluteLocationPath()
Receive notification of the start of an absolute location path expression.
|
void |
startAllNodeStep(int axis)
Receive notification of the start of a node() step.
|
void |
startCommentNodeStep(int axis)
Receive notification of the start of a comment() step.
|
void |
startNameStep(int axis,
String prefix,
String localName)
Receive notification of the start of a name step.
|
void |
startProcessingInstructionNodeStep(int axis,
String name)
Receive notification of the start of a processing-instruction(...) step.
|
void |
startRelativeLocationPath()
Receive notification of the start of a relative location path expression.
|
void |
startTextNodeStep(int axis)
Receive notification of the start of a text() step.
|
void |
startUnionExpr()
Receive notification of the start of a union ('|') expression.
|
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, variableReferencepublic Pattern getPattern()
This method is only valid once XPathReader.parse(...)
successfully returned.
public Pattern getPattern(boolean shouldSimplify)
This method is only valid once XPathReader.parse(...)
successfully returned.
public void endXPath()
throws JaxenException
XPathHandlerendXPath in interface XPathHandlerendXPath in class JaxenHandlerJaxenExceptionpublic void endPathExpr()
throws JaxenException
XPathHandlerendPathExpr in interface XPathHandlerendPathExpr in class JaxenHandlerJaxenExceptionpublic void startAbsoluteLocationPath()
throws JaxenException
XPathHandlerstartAbsoluteLocationPath in interface XPathHandlerstartAbsoluteLocationPath in class JaxenHandlerJaxenExceptionpublic void endAbsoluteLocationPath()
throws JaxenException
XPathHandlerendAbsoluteLocationPath in interface XPathHandlerendAbsoluteLocationPath in class JaxenHandlerJaxenExceptionpublic void startRelativeLocationPath()
throws JaxenException
XPathHandlerstartRelativeLocationPath in interface XPathHandlerstartRelativeLocationPath in class JaxenHandlerJaxenExceptionpublic void endRelativeLocationPath()
throws JaxenException
XPathHandlerendRelativeLocationPath in interface XPathHandlerendRelativeLocationPath in class JaxenHandlerJaxenExceptionprotected void endLocationPath()
throws JaxenException
endLocationPath in class JaxenHandlerJaxenExceptionpublic void startNameStep(int axis,
String prefix,
String localName)
throws JaxenException
XPathHandlerstartNameStep in interface XPathHandlerstartNameStep in class JaxenHandleraxis - The axis of this step.prefix - The namespace prefix for the name to test,
or the empty-string if no prefix is specified.localName - The local part of the name to test.JaxenExceptionpublic void startTextNodeStep(int axis)
throws JaxenException
XPathHandlerstartTextNodeStep in interface XPathHandlerstartTextNodeStep in class JaxenHandleraxis - The axis of this step.JaxenExceptionpublic void startCommentNodeStep(int axis)
throws JaxenException
XPathHandlerstartCommentNodeStep in interface XPathHandlerstartCommentNodeStep in class JaxenHandleraxis - The axis of this step.JaxenExceptionpublic void startAllNodeStep(int axis)
throws JaxenException
XPathHandlerstartAllNodeStep in interface XPathHandlerstartAllNodeStep in class JaxenHandleraxis - The axis of this step.JaxenExceptionpublic void startProcessingInstructionNodeStep(int axis,
String name)
throws JaxenException
XPathHandlerstartProcessingInstructionNodeStep in interface XPathHandlerstartProcessingInstructionNodeStep in class JaxenHandleraxis - The axis of this step.name - The name of the processing-instruction, of
the empty-string if none is specified.JaxenExceptionprotected void endStep()
endStep in class JaxenHandlerpublic void startUnionExpr()
throws JaxenException
XPathHandlerstartUnionExpr in interface XPathHandlerstartUnionExpr in class JaxenHandlerJaxenExceptionpublic void endUnionExpr(boolean create)
throws JaxenException
XPathHandlerendUnionExpr in interface XPathHandlerendUnionExpr in class JaxenHandlercreate - Flag that indicates if this expression
should truly be instantiated, or if it was just
a pass-through, based upon the grammar productions.JaxenExceptionprotected Pattern createAbsoluteLocationPath()
protected Pattern createRelativeLocationPath()
Copyright © 2013. All Rights Reserved.