Class FnMatches


public final class FnMatches extends StandardFunc
Function implementation.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
  • Constructor Details

    • FnMatches

      public FnMatches()
  • Method Details

    • item

      public Bln item(QueryContext qc, InputInfo ii) throws QueryException
      Description copied from class: Expr
      Evaluates the expression and returns the resulting item, or Empty.VALUE if the expression yields an empty sequence. If this method is not implemented, Expr.value(QueryContext) must be implemented instead.
      Overrides:
      item in class ParseExpr
      Parameters:
      qc - query context
      ii - input info (only required by Seq instances, which have no input info)
      Returns:
      item or Empty.VALUE
      Throws:
      QueryException - query exception
    • pattern

      protected final Pattern pattern(Expr regex, Expr modifier, QueryContext qc, boolean check) throws QueryException
      Returns a regular expression pattern.
      Parameters:
      regex - pattern
      modifier - modifier item
      qc - query context
      check - check result for empty strings
      Returns:
      pattern modifier
      Throws:
      QueryException - query exception
    • regExpr

      protected final org.basex.query.func.fn.RegEx.RegExpr regExpr(Expr regex, Expr modifier, QueryContext qc, boolean check) throws QueryException
      Returns a regular expression pattern.
      Parameters:
      regex - pattern
      modifier - modifier item
      qc - query context
      check - check result for empty strings
      Returns:
      pattern modifier
      Throws:
      QueryException - query exception