Class LastFunction

  • All Implemented Interfaces:
    Function

    public class LastFunction
    extends Object
    implements Function

    4.1 number last()

    The last function returns a number equal to the context size from the expression evaluation context.
    Author:
    bob mcwhirter (bob @ werken.com)
    See Also:
    Section 4.1 of the XPath Specification
    • Constructor Detail

      • LastFunction

        public LastFunction()
        Create a new LastFunction object.
    • Method Detail

      • evaluate

        public static Double evaluate​(Context context)
        Returns the number of nodes in the context node-set.
        Parameters:
        context - the context at the point in the expression where the function is called
        Returns:
        the context size
        See Also:
        Context.getSize()