Package org.apache.commons.jxpath.ri
Class Parser
java.lang.Object
org.apache.commons.jxpath.ri.Parser
XPath parser.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static StringaddEscapes(String string) Add escapes to the specified String.private static StringdescribePosition(String expression, int position) Describe a parse position.static ObjectparseExpression(String expression, Compiler compiler) Parses the XPath expression.
-
Field Details
-
PARSER
-
-
Constructor Details
-
Parser
Deprecated.Will be private in the next major version.Constructs a new instance.
-
-
Method Details
-
addEscapes
Add escapes to the specified String.- Parameters:
string- incoming String- Returns:
- String
-
describePosition
Describe a parse position.- Parameters:
expression- to parseposition- parse position- Returns:
- String
-
parseExpression
Parses the XPath expression. Throws a JXPathException in case of a syntax error.- Parameters:
expression- to parsecompiler- the compiler- Returns:
- parsed Object
-