Class NodeName_1

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

public class NodeName_1 extends ScalarSystemFunction
This class supports the node-name() function with a single argument
  • Constructor Details

    • NodeName_1

      public NodeName_1()
  • Method Details

    • evaluate

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

      public static QNameValue nodeName(NodeInfo node)
    • getElaborator

      public Elaborator getElaborator()
      Make an elaborator for a system function call on this function
      Overrides:
      getElaborator in class SystemFunction
      Returns:
      a suitable elaborator; or null if no custom elaborator is available