Exemple #1
0
 public XPathParser(
     NamespaceContext nsContext,
     XPathVariableResolver variableResolver,
     XPathFunctionResolver functionResolver) {
   this.nsContext = nsContext;
   this.variableResolver = variableResolver;
   this.functionResolver = functionResolver;
   reader.setXPathHandler(this);
 }
Exemple #2
0
  public Expression parse(String xpath, boolean documentContext) throws SAXPathException {
    this.documentContext = documentContext;
    frames.clear();
    peekFrame = null;
    stepStack.clear();
    predicateDepth = 0;
    expr = null;

    reader.parse(xpath);
    return expr;
  }