public class PatternHandler extends JaxenHandler
XPathHandler implementation capable
of building Jaxen expression trees which can walk various
different object models.simplified, stack| コンストラクタと説明 |
|---|
PatternHandler() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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.
shouldSimplify - ????public void endXPath()
XPathHandlerendXPath インタフェース内 XPathHandlerendXPath クラス内 JaxenHandlerpublic void endPathExpr()
XPathHandlerendPathExpr インタフェース内 XPathHandlerendPathExpr クラス内 JaxenHandlerpublic void startAbsoluteLocationPath()
XPathHandlerstartAbsoluteLocationPath インタフェース内 XPathHandlerstartAbsoluteLocationPath クラス内 JaxenHandlerpublic void endAbsoluteLocationPath()
throws JaxenException
XPathHandlerendAbsoluteLocationPath インタフェース内 XPathHandlerendAbsoluteLocationPath クラス内 JaxenHandlerJaxenExceptionpublic void startRelativeLocationPath()
XPathHandlerstartRelativeLocationPath インタフェース内 XPathHandlerstartRelativeLocationPath クラス内 JaxenHandlerpublic void endRelativeLocationPath()
throws JaxenException
XPathHandlerendRelativeLocationPath インタフェース内 XPathHandlerendRelativeLocationPath クラス内 JaxenHandlerJaxenExceptionprotected void endLocationPath()
throws JaxenException
endLocationPath クラス内 JaxenHandlerJaxenExceptionpublic void startNameStep(int axis,
String prefix,
String localName)
XPathHandlerstartNameStep インタフェース内 XPathHandlerstartNameStep クラス内 JaxenHandleraxis - 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 testpublic void startTextNodeStep(int axis)
XPathHandlerstartTextNodeStep インタフェース内 XPathHandlerstartTextNodeStep クラス内 JaxenHandleraxis - the axis of this steppublic void startCommentNodeStep(int axis)
XPathHandlerstartCommentNodeStep インタフェース内 XPathHandlerstartCommentNodeStep クラス内 JaxenHandleraxis - the axis of this steppublic void startAllNodeStep(int axis)
XPathHandlerstartAllNodeStep インタフェース内 XPathHandlerstartAllNodeStep クラス内 JaxenHandleraxis - the axis of this steppublic void startProcessingInstructionNodeStep(int axis,
String name)
XPathHandlerstartProcessingInstructionNodeStep インタフェース内 XPathHandlerstartProcessingInstructionNodeStep クラス内 JaxenHandleraxis - the axis of this stepname - the name of the processing-instruction, or
the empty string if none is specifiedprotected void endStep()
endStep クラス内 JaxenHandlerpublic void startUnionExpr()
XPathHandlerstartUnionExpr インタフェース内 XPathHandlerstartUnionExpr クラス内 JaxenHandlerpublic void endUnionExpr(boolean create)
throws JaxenException
XPathHandlerendUnionExpr インタフェース内 XPathHandlerendUnionExpr クラス内 JaxenHandlercreate - flag that indicates if this expression
should truly be instantiated, or if it was just
a pass-through, based upon the grammar productionsJaxenExceptionprotected Pattern createAbsoluteLocationPath()
protected Pattern createRelativeLocationPath()
Copyright © 2001-2013 Codehaus. All Rights Reserved.