Class FunctionName

All Implemented Interfaces:
Serializable, SourceLocator, LocationProvider, SaxonLocator, CallableExpression, InstructionInfo, Locator

public class FunctionName extends SystemFunction implements CallableExpression
This class implements the function function-name(), which is a standard function in XQuery 1.1
See Also:
  • Constructor Details

    • FunctionName

      public FunctionName()
  • Method Details

    • evaluateItem

      public Item evaluateItem(XPathContext context) throws XPathException
      Evaluate this function call at run-time
      Overrides:
      evaluateItem in class Expression
      Parameters:
      context - The XPath dynamic evaluation context
      Returns:
      the result of the function, or null to represent an empty sequence
      Throws:
      XPathException - if a dynamic error occurs during evaluation of the function.
    • call

      public SequenceIterator<AtomicValue> call(SequenceIterator[] arguments, XPathContext context) throws XPathException
      Evaluate the expression
      Specified by:
      call in interface CallableExpression
      Parameters:
      arguments - the values of the arguments, supplied as SequenceIterators
      context - the dynamic evaluation context
      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