Class Idref

All Implemented Interfaces:
Iterable<Function>, Callable, Function, GroundedValue<Function>, Item<Function>, Sequence<Function>

public class Idref extends SystemFunction
  • Constructor Details

    • Idref

      public Idref()
  • 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
    • getIdrefMultiple

      public static SequenceIterator<NodeInfo> getIdrefMultiple(TreeInfo doc, SequenceIterator<StringValue> keys, XPathContext context) throws XPathException
      Get the result when multiple idref values are supplied. Note this is also called from compiled XQuery code.
      Parameters:
      doc - the document to be searched
      keys - the idref values supplied
      context - the dynamic execution context
      Returns:
      iterator over the result of the function
      Throws:
      XPathException - if a dynamic error occurs
    • call

      public Sequence<?> call(XPathContext context, Sequence[] arguments) throws XPathException
      Evaluate the expression
      Parameters:
      context - the dynamic evaluation context
      arguments - the values of the arguments, supplied as SequenceIterators
      Returns:
      the result of the evaluation, in the form of a SequenceIterator
      Throws:
      XPathException - if a dynamic error occurs during the evaluation of the expression