Class FnContainsToken


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

    • FnContainsToken

      public FnContainsToken()
  • 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
    • indexAccessible

      public boolean indexAccessible(IndexInfo ii) throws QueryException
      Description copied from class: Expr
      Checks if an expression can be rewritten to an index access. If so, the index expression will be bound to IndexInfo.expr. This method will be called by the Path expression.
      Overrides:
      indexAccessible in class Expr
      Parameters:
      ii - index info
      Returns:
      true if an index can be used
      Throws:
      QueryException - query exception