may import packages and classes or use the fully qualified name of the class import org.pentaho.reporting.engine.classic.core.*;
String userdefinedFunction (String parameter, Date date) { return parameter + " - the current date is " + date); }
// use simple java code to perform the expression. You may use all classes // available in your classpath as if you write "real" java code in your favourite // IDE. // See the www.beanshell.org site for more information ... // // A return value of type "Object" is alway implied ... getValue () { return userdefinedFunction ("Hello World :) ", new Date()); }
@author Thomas Morgner