Package org.apache.commons.jxpath.ri

# Class Parser

java.lang.Object
org.apache.commons.jxpath.ri.Parser

public class Parser extends Object
XPath parser.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Parser()`
  Deprecated.
  Will be private in the next major version.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static Object`
  `parseExpression(String expression, Compiler compiler)`
  Parses the XPath expression.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### Parser

    @Deprecated public Parser()
    Deprecated.
    Will be private in the next major version.
    Constructs a new instance.

- ## Method Details

  - ### parseExpression

    public static Object parseExpression(String expression, Compiler compiler)
    Parses the XPath expression. Throws a JXPathException in case of a syntax error.
    Parameters:
      `expression` - to parse
      `compiler` - the compiler
    Returns:
      parsed Object