Package net.sf.jasperreports.groovy
Class GroovyEvaluator
java.lang.Object
net.sf.jasperreports.engine.fill.JREvaluator
net.sf.jasperreports.groovy.GroovyEvaluator
- All Implemented Interfaces:
DatasetExpressionEvaluator,JasperReportsContextAware
- Direct Known Subclasses:
GroovySandboxEvaluator
Groovy expression evaluator that compiles expressions at fill time.
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
-
Field Summary
FieldsFields inherited from class net.sf.jasperreports.engine.fill.JREvaluator
EXCEPTION_MESSAGE_KEY_RESOURCE_NOT_FOUND, ignoreNPE, PROPERTY_IGNORE_NPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddFunctionClosureMethods(org.codehaus.groovy.runtime.MethodClosure methodClosure, String functionName) protected ObjectfunctionCall(String methodName, Object[] args) protected ObjecthandleEvaluationException(JRExpression expression, Throwable e) protected voidregisterMethods(groovy.lang.ExpandoMetaClass extendedMetaClass) voidMethods inherited from class net.sf.jasperreports.engine.fill.JREvaluator
customizedInit, evaluate, evaluate, evaluateEstimated, evaluateEstimated, evaluateOld, evaluateOld, getFunctionSupport, handleMissingResource, init, msg, msg, msg, msg, setDirectExpressionEvaluators, str
-
Field Details
-
EXCEPTION_MESSAGE_KEY_FUNCTION_NOT_FOUND
- See Also:
-
-
Constructor Details
-
GroovyEvaluator
public GroovyEvaluator()
-
-
Method Details
-
setJasperReportsContext
- Specified by:
setJasperReportsContextin interfaceJasperReportsContextAware
-
handleEvaluationException
protected Object handleEvaluationException(JRExpression expression, Throwable e) throws JRExpressionEvalException - Overrides:
handleEvaluationExceptionin classJREvaluator- Throws:
JRExpressionEvalException
-
functionCall
-
addFunctionClosureMethods
protected void addFunctionClosureMethods(org.codehaus.groovy.runtime.MethodClosure methodClosure, String functionName) -
registerMethods
protected void registerMethods(groovy.lang.ExpandoMetaClass extendedMetaClass)
-