Package org.apache.commons.jxpath.ri
Class Parser
java.lang.Object
org.apache.commons.jxpath.ri.Parser
XPath parser
- Version:
- $Revision: 652845 $ $Date: 2008-05-02 12:46:46 -0500 (Fri, 02 May 2008) $
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static String
addEscapes
(String string) Add escapes to the specified String.private static String
describePosition
(String expression, int position) Describe a parse position.static Object
parseExpression
(String expression, Compiler compiler) Parses the XPath expression.
-
Field Details
-
parser
-
-
Constructor Details
-
Parser
public Parser()
-
-
Method Details
-
parseExpression
Parses the XPath expression. Throws a JXPathException in case of a syntax error.- Parameters:
expression
- to parsecompiler
- the compiler- Returns:
- parsed Object
-
describePosition
Describe a parse position.- Parameters:
expression
- to parseposition
- parse position- Returns:
- String
-
addEscapes
Add escapes to the specified String.- Parameters:
string
- incoming String- Returns:
- String
-