public class JavaScriptEvaluator extends JREvaluator implements JasperReportsContextAware
JavaScriptCompiler| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROPERTY_OPTIMIZATION_LEVEL
Property that determines the optimization level used when compiling expressions.
|
| Constructor and Description |
|---|
JavaScriptEvaluator(JasperReportsContext jrContext,
JavaScriptCompileData compileData)
Create a JavaScript expression evaluator.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
customizedInit(java.util.Map<java.lang.String,JRFillParameter> parametersMap,
java.util.Map<java.lang.String,JRFillField> fieldsMap,
java.util.Map<java.lang.String,JRFillVariable> variablesMap)
Initializes the parameters, fields and variables of the evaluator.
|
protected java.lang.Object |
evaluate(int id)
Evaluates an expression using current fields and variables values.
|
protected java.lang.Object |
evaluateEstimated(int id)
Evaluates an expression using estimated variables values.
|
protected java.lang.Object |
evaluateExpression(java.lang.String expression) |
protected java.lang.Object |
evaluateExpression(java.lang.String type,
java.lang.String expression)
Deprecated.
Replaced by
evaluateExpression(String). |
protected java.lang.Object |
evaluateOld(int id)
Evaluates an expression using old fields and variables values.
|
protected JavaScriptCompileData.Expression |
getExpression(int id) |
protected java.lang.Class<?> |
getTypeClass(java.lang.String type)
Deprecated.
To be removed.
|
void |
setJasperReportsContext(JasperReportsContext context) |
evaluate, evaluateEstimated, evaluateOld, getFunctionSupport, handleMissingResource, init, msg, msg, msg, msg, strpublic static final java.lang.String PROPERTY_OPTIMIZATION_LEVEL
public JavaScriptEvaluator(JasperReportsContext jrContext, JavaScriptCompileData compileData)
compileData - the report compile datapublic void setJasperReportsContext(JasperReportsContext context)
setJasperReportsContext in interface JasperReportsContextAwareprotected void customizedInit(java.util.Map<java.lang.String,JRFillParameter> parametersMap, java.util.Map<java.lang.String,JRFillField> fieldsMap, java.util.Map<java.lang.String,JRFillVariable> variablesMap) throws JRException
JREvaluatorcustomizedInit in class JREvaluatorparametersMap - the parameters indexed by namefieldsMap - the fields indexed by namevariablesMap - the variables indexed by nameJRExceptionprotected java.lang.Object evaluate(int id)
throws java.lang.Throwable
JREvaluatorevaluate in class JREvaluatorid - the expression idjava.lang.ThrowableJRExpression.EVALUATION_DEFAULT,
JRFillVariable.getValue(),
JRFillField.getValue()protected java.lang.Object evaluateEstimated(int id)
throws java.lang.Throwable
JREvaluatorevaluateEstimated in class JREvaluatorid - the expression idjava.lang.ThrowableJRExpression.EVALUATION_ESTIMATED,
JRFillVariable.getEstimatedValue()protected java.lang.Object evaluateOld(int id)
throws java.lang.Throwable
JREvaluatorevaluateOld in class JREvaluatorid - the expression idjava.lang.ThrowableJRExpression.EVALUATION_OLD,
JRFillVariable.getOldValue(),
JRFillField.getOldValue()protected JavaScriptCompileData.Expression getExpression(int id)
protected java.lang.Object evaluateExpression(java.lang.String type,
java.lang.String expression)
evaluateExpression(String).protected java.lang.Object evaluateExpression(java.lang.String expression)
protected java.lang.Class<?> getTypeClass(java.lang.String type)
© 2001-2010 Jaspersoft Corporation www.jaspersoft.com