Package net.sf.jasperreports.groovy
Class GroovySandboxEvaluator
- java.lang.Object
-
- net.sf.jasperreports.engine.fill.JREvaluator
-
- net.sf.jasperreports.groovy.GroovyEvaluator
-
- net.sf.jasperreports.groovy.GroovySandboxEvaluator
-
- All Implemented Interfaces:
DatasetExpressionEvaluator
,JasperReportsContextAware
public abstract class GroovySandboxEvaluator extends GroovyEvaluator
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Field Summary
-
Fields inherited from class net.sf.jasperreports.groovy.GroovyEvaluator
EXCEPTION_MESSAGE_KEY_FUNCTION_NOT_FOUND
-
Fields inherited from class net.sf.jasperreports.engine.fill.JREvaluator
EXCEPTION_MESSAGE_KEY_RESOURCE_NOT_FOUND, ignoreNPE, PROPERTY_IGNORE_NPE
-
-
Constructor Summary
Constructors Constructor Description GroovySandboxEvaluator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
evaluate(JRExpression expression)
Object
evaluateEstimated(JRExpression expression)
Object
evaluateOld(JRExpression expression)
void
setReportClassFilter(ReportClassFilter reportClassFilter)
-
Methods inherited from class net.sf.jasperreports.groovy.GroovyEvaluator
addFunctionClosureMethods, functionCall, handleEvaluationException, registerMethods, setJasperReportsContext
-
Methods inherited from class net.sf.jasperreports.engine.fill.JREvaluator
customizedInit, evaluate, evaluateEstimated, evaluateOld, getFunctionSupport, handleMissingResource, init, msg, msg, msg, msg, setDirectExpressionEvaluators, str
-
-
-
-
Method Detail
-
setReportClassFilter
public void setReportClassFilter(ReportClassFilter reportClassFilter)
-
evaluate
public Object evaluate(JRExpression expression) throws JRExpressionEvalException
- Specified by:
evaluate
in interfaceDatasetExpressionEvaluator
- Overrides:
evaluate
in classJREvaluator
- Throws:
JRExpressionEvalException
-
evaluateOld
public Object evaluateOld(JRExpression expression) throws JRExpressionEvalException
- Specified by:
evaluateOld
in interfaceDatasetExpressionEvaluator
- Overrides:
evaluateOld
in classJREvaluator
- Throws:
JRExpressionEvalException
-
evaluateEstimated
public Object evaluateEstimated(JRExpression expression) throws JRExpressionEvalException
- Specified by:
evaluateEstimated
in interfaceDatasetExpressionEvaluator
- Overrides:
evaluateEstimated
in classJREvaluator
- Throws:
JRExpressionEvalException
-
-