org.jfree.formula.function.userdefined
Class MappedFunction

java.lang.Object
  extended by org.jfree.formula.function.userdefined.MappedFunction
All Implemented Interfaces:
java.io.Serializable, Function

public class MappedFunction
extends java.lang.Object
implements Function

A function, that calls a method on a java class. The class is reinstantiated each time the function is called (unless the method is static).

Author:
Thomas Morgner
See Also:
Serialized Form

Constructor Summary
MappedFunction()
           
 
Method Summary
 java.lang.Object clone()
           
 TypeValuePair evaluate(FormulaContext context, ParameterCallback parameters)
           
 java.lang.String getCanonicalName()
           
 java.lang.String getClassName()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MappedFunction

public MappedFunction()
Method Detail

getClassName

public java.lang.String getClassName()

getCanonicalName

public java.lang.String getCanonicalName()
Specified by:
getCanonicalName in interface Function

evaluate

public TypeValuePair evaluate(FormulaContext context,
                              ParameterCallback parameters)
Specified by:
evaluate in interface Function

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException