Package org.jaxen.pattern
Class PatternHandler
java.lang.Object
org.jaxen.JaxenHandler
org.jaxen.pattern.PatternHandler
- All Implemented Interfaces:
XPathHandler
Deprecated.
will be removed in Jaxen 2.0
SAXPath
XPathHandler
implementation capable
of building Jaxen expression trees which can walk various
different object models.-
Field Summary
FieldsFields inherited from class org.jaxen.JaxenHandler
simplified, stack
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Pattern
Deprecated.protected Pattern
Deprecated.void
Deprecated.Receive notification of the end of an absolute location path expression.protected void
Deprecated.void
Deprecated.Receive notification of the end of a path expression.void
Deprecated.Receive notification of the end of a relative location path expression.protected void
endStep()
Deprecated.void
endUnionExpr
(boolean create) Deprecated.Receive notification of the end of a union ('|') expression.void
endXPath()
Deprecated.Receive notification of the end of an XPath expression parse.Deprecated.Retrieve the simplified Jaxen Pattern expression tree.getPattern
(boolean shouldSimplify) Deprecated.Retrieve the Jaxen Pattern expression tree, optionally simplified.void
Deprecated.Receive notification of the start of an absolute location path expression.void
startAllNodeStep
(int axis) Deprecated.Receive notification of the start of a node() step.void
startCommentNodeStep
(int axis) Deprecated.Receive notification of the start of a comment() step.void
startNameStep
(int axis, String prefix, String localName) Deprecated.Receive notification of the start of a name step.void
startProcessingInstructionNodeStep
(int axis, String name) Deprecated.Receive notification of the start of a processing-instruction(...) step.void
Deprecated.Receive notification of the start of a relative location path expression.void
startTextNodeStep
(int axis) Deprecated.Receive notification of the start of a text() step.void
Deprecated.Receive notification of the start of a union ('|') expression.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
-
Field Details
-
pattern
Deprecated.
-
-
Constructor Details
-
PatternHandler
public PatternHandler()Deprecated.
-
-
Method Details
-
getPattern
Deprecated.Retrieve the simplified Jaxen Pattern expression tree.This method is only valid once
XPathReader.parse(...)
successfully returned.- Returns:
- The Pattern expression tree.
-
getPattern
Deprecated.Retrieve the Jaxen Pattern expression tree, optionally simplified.This method is only valid once
XPathReader.parse(...)
successfully returned.- Parameters:
shouldSimplify
- ????- Returns:
- The Pattern expression tree.
-
endXPath
public void endXPath()Deprecated.Description copied from interface:XPathHandler
Receive notification of the end of an XPath expression parse.- Specified by:
endXPath
in interfaceXPathHandler
- Overrides:
endXPath
in classJaxenHandler
-
endPathExpr
public void endPathExpr()Deprecated.Description copied from interface:XPathHandler
Receive notification of the end of a path expression.- Specified by:
endPathExpr
in interfaceXPathHandler
- Overrides:
endPathExpr
in classJaxenHandler
-
startAbsoluteLocationPath
public void startAbsoluteLocationPath()Deprecated.Description copied from interface:XPathHandler
Receive notification of the start of an absolute location path expression.- Specified by:
startAbsoluteLocationPath
in interfaceXPathHandler
- Overrides:
startAbsoluteLocationPath
in classJaxenHandler
-
endAbsoluteLocationPath
Deprecated.Description copied from interface:XPathHandler
Receive notification of the end of an absolute location path expression.- Specified by:
endAbsoluteLocationPath
in interfaceXPathHandler
- Overrides:
endAbsoluteLocationPath
in classJaxenHandler
- Throws:
JaxenException
-
startRelativeLocationPath
public void startRelativeLocationPath()Deprecated.Description copied from interface:XPathHandler
Receive notification of the start of a relative location path expression.- Specified by:
startRelativeLocationPath
in interfaceXPathHandler
- Overrides:
startRelativeLocationPath
in classJaxenHandler
-
endRelativeLocationPath
Deprecated.Description copied from interface:XPathHandler
Receive notification of the end of a relative location path expression.- Specified by:
endRelativeLocationPath
in interfaceXPathHandler
- Overrides:
endRelativeLocationPath
in classJaxenHandler
- Throws:
JaxenException
-
endLocationPath
Deprecated.- Overrides:
endLocationPath
in classJaxenHandler
- Throws:
JaxenException
-
startNameStep
Deprecated.Description copied from interface:XPathHandler
Receive notification of the start of a name step.- Specified by:
startNameStep
in interfaceXPathHandler
- Overrides:
startNameStep
in classJaxenHandler
- Parameters:
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
-
startTextNodeStep
public void startTextNodeStep(int axis) Deprecated.Description copied from interface:XPathHandler
Receive notification of the start of a text() step.- Specified by:
startTextNodeStep
in interfaceXPathHandler
- Overrides:
startTextNodeStep
in classJaxenHandler
- Parameters:
axis
- the axis of this step
-
startCommentNodeStep
public void startCommentNodeStep(int axis) Deprecated.Description copied from interface:XPathHandler
Receive notification of the start of a comment() step.- Specified by:
startCommentNodeStep
in interfaceXPathHandler
- Overrides:
startCommentNodeStep
in classJaxenHandler
- Parameters:
axis
- the axis of this step
-
startAllNodeStep
public void startAllNodeStep(int axis) Deprecated.Description copied from interface:XPathHandler
Receive notification of the start of a node() step.- Specified by:
startAllNodeStep
in interfaceXPathHandler
- Overrides:
startAllNodeStep
in classJaxenHandler
- Parameters:
axis
- the axis of this step
-
startProcessingInstructionNodeStep
Deprecated.Description copied from interface:XPathHandler
Receive notification of the start of a processing-instruction(...) step.- Specified by:
startProcessingInstructionNodeStep
in interfaceXPathHandler
- Overrides:
startProcessingInstructionNodeStep
in classJaxenHandler
- Parameters:
axis
- the axis of this stepname
- the name of the processing-instruction, or the empty string if none is specified
-
endStep
protected void endStep()Deprecated.- Overrides:
endStep
in classJaxenHandler
-
startUnionExpr
public void startUnionExpr()Deprecated.Description copied from interface:XPathHandler
Receive notification of the start of a union ('|') expression.- Specified by:
startUnionExpr
in interfaceXPathHandler
- Overrides:
startUnionExpr
in classJaxenHandler
-
endUnionExpr
Deprecated.Description copied from interface:XPathHandler
Receive notification of the end of a union ('|') expression.- Specified by:
endUnionExpr
in interfaceXPathHandler
- Overrides:
endUnionExpr
in classJaxenHandler
- Parameters:
create
- flag that indicates if this expression should truly be instantiated, or if it was just a pass-through, based upon the grammar productions- Throws:
JaxenException
-
createAbsoluteLocationPath
Deprecated. -
createRelativeLocationPath
Deprecated.
-