public class JRBshEvaluator extends JREvaluator
JRBshCompiler
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EXCEPTION_MESSAGE_KEY_EXPRESSIONS_EVALUATING_ERROR
Deprecated.
|
static java.lang.String |
EXCEPTION_MESSAGE_KEY_EXPRESSIONS_TESTING_ERROR
Deprecated.
|
static java.lang.String |
EXCEPTION_MESSAGE_KEY_INITIALIZING_REPORT_CALCULATOR
Deprecated.
|
EXCEPTION_MESSAGE_KEY_RESOURCE_NOT_FOUND, ignoreNPE, PROPERTY_IGNORE_NPE
Constructor and Description |
---|
JRBshEvaluator(java.lang.String bshScript)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
customizedInit(java.util.Map<java.lang.String,JRFillParameter> pars,
java.util.Map<java.lang.String,JRFillField> fldsm,
java.util.Map<java.lang.String,JRFillVariable> varsm)
Deprecated.
Initializes the parameters, fields and variables of the evaluator.
|
protected java.lang.Object |
evaluate(int id)
Deprecated.
Evaluates an expression using current fields and variables values.
|
protected java.lang.Object |
evaluateEstimated(int id)
Deprecated.
Evaluates an expression using estimated variables values.
|
protected java.lang.Object |
evaluateOld(int id)
Deprecated.
Evaluates an expression using old fields and variables values.
|
<T> void |
verify(java.util.Collection<T> expressions)
Deprecated.
|
evaluate, evaluateEstimated, evaluateOld, getFunctionSupport, handleEvaluationException, handleMissingResource, init, msg, msg, msg, msg, str
public static final java.lang.String EXCEPTION_MESSAGE_KEY_INITIALIZING_REPORT_CALCULATOR
public static final java.lang.String EXCEPTION_MESSAGE_KEY_EXPRESSIONS_EVALUATING_ERROR
public static final java.lang.String EXCEPTION_MESSAGE_KEY_EXPRESSIONS_TESTING_ERROR
public JRBshEvaluator(java.lang.String bshScript) throws JRException
JRException
public <T> void verify(java.util.Collection<T> expressions) throws JRException
JRException
protected void customizedInit(java.util.Map<java.lang.String,JRFillParameter> pars, java.util.Map<java.lang.String,JRFillField> fldsm, java.util.Map<java.lang.String,JRFillVariable> varsm) throws JRException
JREvaluator
customizedInit
in class JREvaluator
pars
- the parameters indexed by namefldsm
- the fields indexed by namevarsm
- the variables indexed by nameJRException
protected java.lang.Object evaluateOld(int id) throws java.lang.Throwable
JREvaluator
evaluateOld
in class JREvaluator
id
- the expression idjava.lang.Throwable
JRExpression.EVALUATION_OLD
,
JRFillVariable.getOldValue()
,
JRFillField.getOldValue()
protected java.lang.Object evaluateEstimated(int id) throws java.lang.Throwable
JREvaluator
evaluateEstimated
in class JREvaluator
id
- the expression idjava.lang.Throwable
JRExpression.EVALUATION_ESTIMATED
,
JRFillVariable.getEstimatedValue()
protected java.lang.Object evaluate(int id) throws java.lang.Throwable
JREvaluator
evaluate
in class JREvaluator
id
- the expression idjava.lang.Throwable
JRExpression.EVALUATION_DEFAULT
,
JRFillVariable.getValue()
,
JRFillField.getValue()
© 2001 - 2018 TIBCO Software Inc. www.jaspersoft.com