Class WebError


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

    • WebError

      public WebError()
  • Method Details

    • iter

      public Iter iter(QueryContext qc)
      Description copied from class: Expr
      Evaluates the expression and returns an iterator on the resulting items. The implementation of this method is optional.
      Overrides:
      iter in class ParseExpr
      Parameters:
      qc - query context
      Returns:
      iterator
    • item

      public Item 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
    • vacuous

      public boolean vacuous()
      Description copied from class: Expr
      Tests if this is a vacuous expression (empty sequence or error function). This check is needed for updating queries.
      Overrides:
      vacuous in class StandardFunc
      Returns:
      result of check
    • typeCheck

      protected Expr typeCheck(TypeCheck tc, CompileContext cc)
      Description copied from class: Expr
      Tries to push the given type check inside this expression.
      Overrides:
      typeCheck in class Expr
      Parameters:
      tc - type check to push into the expression
      cc - compilation context
      Returns:
      the resulting expression if successful, null otherwise