Class FnContainsToken


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

      • FnContainsToken

        public FnContainsToken()
    • Method Detail

      • test

        public boolean test​(QueryContext qc,
                            InputInfo ii,
                            long pos)
                     throws QueryException
        Description copied from class: Expr
        Computes the effective boolean value for this expression.
        Overrides:
        test in class ParseExpr
        Parameters:
        qc - query context
        ii - input info (can be null); required for those Value instances that have no input info)
        pos - position of context item (if 0, perform EBV test)
        Returns:
        item
        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 (can be null)
        Returns:
        true if an index can be used
        Throws:
        QueryException - query exception