public final class XPathParser extends Object implements org.jaxen.saxpath.XPathHandler
| Modifier and Type | Field and Description |
|---|---|
ArrayList |
constraints
this list contains all constraints created by parser.
|
boolean |
langInterested
Tells whether any xpath parsed by this parser uses lang() function.
This is used by xpath engine to avoid tracking of language when none of xpaths used lang() function. |
| Constructor and Description |
|---|
XPathParser(NamespaceContext nsContext,
XPathVariableResolver variableResolver,
XPathFunctionResolver functionResolver) |
public boolean langInterested
public ArrayList constraints
public XPathParser(NamespaceContext nsContext, XPathVariableResolver variableResolver, XPathFunctionResolver functionResolver)
public boolean isAllowDefaultPrefixMapping()
public void setAllowDefaultPrefixMapping(boolean allow)
public Expression parse(String xpath, boolean documentContext) throws org.jaxen.saxpath.SAXPathException
org.jaxen.saxpath.SAXPathExceptionpublic void startXPath()
startXPath in interface org.jaxen.saxpath.XPathHandlerpublic void endXPath()
endXPath in interface org.jaxen.saxpath.XPathHandlerpublic void startAbsoluteLocationPath()
startAbsoluteLocationPath in interface org.jaxen.saxpath.XPathHandlerpublic void endAbsoluteLocationPath()
endAbsoluteLocationPath in interface org.jaxen.saxpath.XPathHandlerpublic void startRelativeLocationPath()
startRelativeLocationPath in interface org.jaxen.saxpath.XPathHandlerpublic void endRelativeLocationPath()
endRelativeLocationPath in interface org.jaxen.saxpath.XPathHandlerpublic void startNameStep(int axis,
String prefix,
String localName)
throws org.jaxen.saxpath.SAXPathException
startNameStep in interface org.jaxen.saxpath.XPathHandlerorg.jaxen.saxpath.SAXPathExceptionpublic void endNameStep()
endNameStep in interface org.jaxen.saxpath.XPathHandlerpublic void startAllNodeStep(int axis)
startAllNodeStep in interface org.jaxen.saxpath.XPathHandlerpublic void endAllNodeStep()
endAllNodeStep in interface org.jaxen.saxpath.XPathHandlerpublic void startTextNodeStep(int axis)
startTextNodeStep in interface org.jaxen.saxpath.XPathHandlerpublic void endTextNodeStep()
endTextNodeStep in interface org.jaxen.saxpath.XPathHandlerpublic void startCommentNodeStep(int axis)
startCommentNodeStep in interface org.jaxen.saxpath.XPathHandlerpublic void endCommentNodeStep()
endCommentNodeStep in interface org.jaxen.saxpath.XPathHandlerpublic void startProcessingInstructionNodeStep(int axis,
String name)
startProcessingInstructionNodeStep in interface org.jaxen.saxpath.XPathHandlerpublic void endProcessingInstructionNodeStep()
endProcessingInstructionNodeStep in interface org.jaxen.saxpath.XPathHandlerpublic void startPredicate()
startPredicate in interface org.jaxen.saxpath.XPathHandlerpublic void endPredicate()
endPredicate in interface org.jaxen.saxpath.XPathHandlerpublic void literal(String literal)
literal in interface org.jaxen.saxpath.XPathHandlerpublic void number(int number)
number in interface org.jaxen.saxpath.XPathHandlerpublic void number(double number)
number in interface org.jaxen.saxpath.XPathHandlerpublic void startUnaryExpr()
startUnaryExpr in interface org.jaxen.saxpath.XPathHandlerpublic void endUnaryExpr(int operator)
endUnaryExpr in interface org.jaxen.saxpath.XPathHandlerpublic void startEqualityExpr()
startEqualityExpr in interface org.jaxen.saxpath.XPathHandlerpublic void endEqualityExpr(int operator)
endEqualityExpr in interface org.jaxen.saxpath.XPathHandlerpublic void startAdditiveExpr()
startAdditiveExpr in interface org.jaxen.saxpath.XPathHandlerpublic void endAdditiveExpr(int operator)
endAdditiveExpr in interface org.jaxen.saxpath.XPathHandlerpublic void startMultiplicativeExpr()
startMultiplicativeExpr in interface org.jaxen.saxpath.XPathHandlerpublic void endMultiplicativeExpr(int operator)
endMultiplicativeExpr in interface org.jaxen.saxpath.XPathHandlerpublic void startRelationalExpr()
startRelationalExpr in interface org.jaxen.saxpath.XPathHandlerpublic void endRelationalExpr(int operator)
endRelationalExpr in interface org.jaxen.saxpath.XPathHandlerpublic void startAndExpr()
startAndExpr in interface org.jaxen.saxpath.XPathHandlerpublic void endAndExpr(boolean create)
endAndExpr in interface org.jaxen.saxpath.XPathHandlerpublic void startOrExpr()
startOrExpr in interface org.jaxen.saxpath.XPathHandlerpublic void endOrExpr(boolean create)
endOrExpr in interface org.jaxen.saxpath.XPathHandlerpublic void startFunction(String prefix, String name) throws org.jaxen.saxpath.SAXPathException
startFunction in interface org.jaxen.saxpath.XPathHandlerorg.jaxen.saxpath.SAXPathExceptionpublic void endFunction()
throws org.jaxen.saxpath.SAXPathException
endFunction in interface org.jaxen.saxpath.XPathHandlerorg.jaxen.saxpath.SAXPathExceptionpublic void startUnionExpr()
startUnionExpr in interface org.jaxen.saxpath.XPathHandlerpublic void endUnionExpr(boolean create)
endUnionExpr in interface org.jaxen.saxpath.XPathHandlerpublic void startFilterExpr()
startFilterExpr in interface org.jaxen.saxpath.XPathHandlerpublic void endFilterExpr()
endFilterExpr in interface org.jaxen.saxpath.XPathHandlerpublic void startPathExpr()
startPathExpr in interface org.jaxen.saxpath.XPathHandlerpublic void endPathExpr()
endPathExpr in interface org.jaxen.saxpath.XPathHandlerCopyright © 2019. All rights reserved.