Class FnLang


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

    • FnLang

      public FnLang()
  • 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
    • ids

      protected final Value ids(QueryContext qc, boolean idref) throws QueryException
      Returns referenced nodes.
      Parameters:
      qc - query context
      idref - resolve id reference
      Returns:
      referenced nodes
      Throws:
      QueryException - query exception
    • contextArg

      public final int contextArg()
      Description copied from class: ContextFn
      Argument that provides the context.
      Overrides:
      contextArg in class ContextFn
      Returns:
      context argument.
    • ddo

      public final boolean ddo()
      Description copied from class: Expr
      Indicates if this expression returns nodes in document order without duplicates.
      Overrides:
      ddo in class Expr
      Returns:
      result of check