Package org.jaxen.pattern
Class PatternHandler
- java.lang.Object
-
- org.jaxen.JaxenHandler
-
- org.jaxen.pattern.PatternHandler
-
- All Implemented Interfaces:
XPathHandler
public class PatternHandler extends JaxenHandler
Deprecated.will be removed in Jaxen 2.0SAXPathXPathHandler
implementation capable of building Jaxen expression trees which can walk various different object models.
-
-
Field Summary
Fields Modifier and Type Field Description private Pattern
pattern
Deprecated.-
Fields inherited from class org.jaxen.JaxenHandler
simplified, stack
-
-
Constructor Summary
Constructors Constructor Description PatternHandler()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected Pattern
createAbsoluteLocationPath()
Deprecated.protected Pattern
createRelativeLocationPath()
Deprecated.void
endAbsoluteLocationPath()
Deprecated.Receive notification of the end of an absolute location path expression.protected void
endLocationPath()
Deprecated.void
endPathExpr()
Deprecated.Receive notification of the end of a path expression.void
endRelativeLocationPath()
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.Pattern
getPattern()
Deprecated.Retrieve the simplified Jaxen Pattern expression tree.Pattern
getPattern(boolean shouldSimplify)
Deprecated.Retrieve the Jaxen Pattern expression tree, optionally simplified.void
startAbsoluteLocationPath()
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, java.lang.String prefix, java.lang.String localName)
Deprecated.Receive notification of the start of a name step.void
startProcessingInstructionNodeStep(int axis, java.lang.String name)
Deprecated.Receive notification of the start of a processing-instruction(...) step.void
startRelativeLocationPath()
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
startUnionExpr()
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 Detail
-
pattern
private Pattern pattern
Deprecated.
-
-
Method Detail
-
getPattern
public Pattern 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
public Pattern getPattern(boolean shouldSimplify)
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
public void endAbsoluteLocationPath() throws JaxenException
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
public void endRelativeLocationPath() throws JaxenException
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
protected void endLocationPath() throws JaxenException
Deprecated.- Overrides:
endLocationPath
in classJaxenHandler
- Throws:
JaxenException
-
startNameStep
public void startNameStep(int axis, java.lang.String prefix, java.lang.String localName)
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
public void startProcessingInstructionNodeStep(int axis, java.lang.String name)
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
public void endUnionExpr(boolean create) throws JaxenException
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
protected Pattern createAbsoluteLocationPath()
Deprecated.
-
createRelativeLocationPath
protected Pattern createRelativeLocationPath()
Deprecated.
-
-