Class AnalyzeStringFn

All Implemented Interfaces:
Callable, StatefulSystemFunction, FunctionItem, GroundedValue, Item, Sequence

public class AnalyzeStringFn extends RegexFunction
Implements the fn:analyze-string function defined in XPath 3.0.
  • Constructor Details

    • AnalyzeStringFn

      public AnalyzeStringFn()
  • Method Details

    • allowRegexMatchingEmptyString

      protected boolean allowRegexMatchingEmptyString()
      Specified by:
      allowRegexMatchingEmptyString in class RegexFunction
    • call

      public NodeInfo call(XPathContext context, Sequence[] arguments) throws XPathException
      Evaluate the expression
      Parameters:
      context - the dynamic evaluation context
      arguments - the values of the arguments, supplied as Sequences
      Returns:
      the result of the evaluation, in the form of a Sequence
      Throws:
      XPathException - if a dynamic error occurs during the evaluation of the expression