com.werken.xpath.function

Class SumFunction

Implemented Interfaces:
Function

public class SumFunction
extends java.lang.Object
implements Function

4.4 number sum(node-set)

Author:
bob mcwhirter (bob @ werken.com)

Method Summary

Object
call(Context context, List args)
Call the function object.
static Double
evaluate(Object obj)

Method Details

call

public Object call(Context context,
                   List args)
Call the function object.
Specified by:
call in interface Function

Parameters:
context - The current context the function operates upon
args - The argument list to the function.

Returns:
The result from calling the function.


evaluate

public static Double evaluate(Object obj)


Copyright B) 2000 bob mcwhirter and The Werken & Sons Company. All Rights Reserved.