Class FnTokenize


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

    • FnTokenize

      public FnTokenize()
  • Method Details

    • value

      public Value value(QueryContext qc) throws QueryException
      Description copied from class: Expr
      Evaluates the expression and returns the resulting value. If this method is not implemented, Expr.item(QueryContext, InputInfo) must be implemented instead.
      Overrides:
      value in class ParseExpr
      Parameters:
      qc - query context
      Returns:
      value
      Throws:
      QueryException - query exception
    • opt

      protected Expr opt(CompileContext cc) throws QueryException
      Description copied from class: StandardFunc
      Performs function specific optimizations.
      Overrides:
      opt in class StandardFunc
      Parameters:
      cc - compilation context
      Returns:
      optimized or original expression
      Throws:
      QueryException - query exception
    • whitespaces

      public boolean whitespaces()
      Indicates if a default whitespace tokenization is to be performed.
      Returns:
      result of check
    • 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