Class Abs

All Implemented Interfaces:
Callable, ArityOneFunction, IFunctionWithRetainedParameterNames, FunctionItem, GroundedValue, Item, Sequence

public final class Abs extends ScalarSystemFunction
This class implements the fn:abs() function
  • Constructor Details

    • Abs

      public Abs()
  • Method Details

    • evaluate

      public AtomicValue evaluate(Item arg, XPathContext context)
      Description copied from class: ScalarSystemFunction
      Abstract method that must be supplied in subclasses to perform the evaluation
      Specified by:
      evaluate in class ScalarSystemFunction
      Parameters:
      arg - the supplied argument
      context - the dynamic context
      Returns:
      the result of the evaluation. May be null indicating the result is an empty sequence.
    • getElaborator

      public Elaborator getElaborator()
      Make an elaborator for this expression
      Overrides:
      getElaborator in class SystemFunction
      Returns:
      a suitable elaborator