Class NodeName_1

All Implemented Interfaces:
Callable, Function, 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
      Throws:
      XPathException - if a dynamic error occurs
    • nodeName

      public static QNameValue nodeName(NodeInfo node)
    • getCompilerName

      public String getCompilerName()
      Description copied from class: SystemFunction
      Get the (local) name of a class that can be used to generate bytecode for this system function
      Overrides:
      getCompilerName in class SystemFunction
      Returns:
      the name of a bytecode generation class, or null if there is no bytecode support for this function