Interface XPathParser.Accelerator

All Known Implementing Classes:
QuickXPathParser
Enclosing class:
XPathParser

public static interface XPathParser.Accelerator
  • Method Summary

    Modifier and Type
    Method
    Description
    parse(Tokenizer t, StaticContext env, String expression, int start, int terminator)
    Attempt fast parsing of an expression, provided it is sufficiently simple.
  • Method Details

    • parse

      Expression parse(Tokenizer t, StaticContext env, String expression, int start, int terminator)
      Attempt fast parsing of an expression, provided it is sufficiently simple.
      Parameters:
      t - the tokenizer
      env - the static context
      expression - the string containing expression to be parsed
      start - start position within the input string
      terminator - either EOF or RCURLY, indicating how parsing should end
      Returns:
      either the parsed expression, or null if it is erroneous or too complex to parse.