net.christopherschultz.evaluator.function
Class MemoryFunction
java.lang.Object
net.christopherschultz.evaluator.StandardFunction
net.christopherschultz.evaluator.function.MemoryFunction
- All Implemented Interfaces:
- Function
public class MemoryFunction
- extends StandardFunction
Returns the current memory usage as a Map of descriptions to Integers.
This method takes no arguments.
- Version:
- $Revision: 1.1 $ $Date: 2005/07/16 17:25:21 $
- Author:
- Chris Schultz
MemoryFunction
public MemoryFunction()
call
public Object call(EvaluationContext ec,
String functionName,
Object[] arguments)
throws EvaluationException
- Description copied from class:
StandardFunction
- Calls this function with standard argument evaluation semantics.
- Specified by:
call
in class StandardFunction
- Parameters:
ec
- The EvaluationContext in which this function is being called.functionName
- The name of the function being invoked.arguments
- The argument values to pass to this function.
- Returns:
- The result of the function.
- Throws:
EvaluationException
- If there is an error during function
execution.