Class ItemsAt

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

public class ItemsAt extends SystemFunction
Implements the XPath 4.0 items-at() function
  • Constructor Details

    • ItemsAt

      public ItemsAt()
  • Method Details

    • getSpecialProperties

      public int getSpecialProperties(Expression[] arguments)
      Get the static properties of this expression (other than its type). The result is bit-significant. These properties are used for optimizations. In general, if property bit is set, it is true, but if it is unset, the value is unknown.
      Overrides:
      getSpecialProperties in class SystemFunction
      Parameters:
      arguments - the actual arguments to the function call
      Returns:
      the properties
    • call

      public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException
      Call the function
      Parameters:
      context - the dynamic evaluation context
      arguments - the values of the arguments, supplied as Sequences.
      Returns:
      the result of the function call
      Throws:
      XPathException - if a dynamic error occurs