Class ArraySort


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

    • ArraySort

      public ArraySort()
  • Method Details

    • 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
    • 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
    • has

      public boolean has(Flag... flags)
      Description copied from class: Expr
      Indicates if an expression has one of the specified compiler properties. This method must only be called at compile time. It is invoked to test properties of sub-expressions. It returns true if at least flag matches an expression.
      Overrides:
      has in class StandardFunc
      Parameters:
      flags - flags to be checked
      Returns:
      result of check