|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jasperreports.engine.fill.JRCalculator
public class JRCalculator
Field Summary | |
---|---|
protected JRFillDataset |
dataset
|
protected JRFillElementDataset[] |
datasets
|
protected java.util.Map<java.lang.String,JRFillField> |
fldsm
|
protected JRFillGroup[] |
groups
|
protected java.util.Map<java.lang.String,JRFillParameter> |
parsm
|
protected JRFillVariable[] |
variables
|
protected java.util.Map<java.lang.String,JRFillVariable> |
varsm
|
Constructor Summary | |
---|---|
protected |
JRCalculator(DatasetExpressionEvaluator evaluator)
Creates a calculator using an expression evaluator. |
protected |
JRCalculator(JREvaluator evaluator)
Creates a calculator using an expression evaluator. |
Method Summary | |
---|---|
void |
calculateVariables()
|
void |
estimateGroupRuptures()
Determines group breaks based on estimated report values. |
void |
estimateVariables()
|
java.lang.Object |
evaluate(JRExpression expression)
|
java.lang.Object |
evaluate(JRExpression expression,
byte evaluationType)
Evaluates an expression. |
java.lang.Object |
evaluateEstimated(JRExpression expression)
|
java.lang.Object |
evaluateOld(JRExpression expression)
|
JRFillVariable |
getColumnNumber()
|
JRFillDataset |
getFillDataset()
Returns the dataset used by the expression evaluator. |
JRFillVariable |
getPageNumber()
|
protected void |
init(JRFillDataset dataset)
Initializes the calculator. |
void |
initializeVariables(ResetTypeEnum resetType,
IncrementTypeEnum incrementType)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected JRFillDataset dataset
protected java.util.Map<java.lang.String,JRFillParameter> parsm
protected java.util.Map<java.lang.String,JRFillField> fldsm
protected java.util.Map<java.lang.String,JRFillVariable> varsm
protected JRFillVariable[] variables
protected JRFillGroup[] groups
protected JRFillElementDataset[] datasets
Constructor Detail |
---|
protected JRCalculator(DatasetExpressionEvaluator evaluator)
evaluator
- the expression evaluatorprotected JRCalculator(JREvaluator evaluator)
evaluator
- the expression evaluatorMethod Detail |
---|
protected void init(JRFillDataset dataset) throws JRException
dataset
- the dataset this calculator is used for
JRException
public JRFillVariable getPageNumber()
public JRFillVariable getColumnNumber()
public void calculateVariables() throws JRException
JRException
public void estimateVariables() throws JRException
JRException
public void estimateGroupRuptures() throws JRException
estimateVariables()
needs to be called prior to this method.
JRException
public void initializeVariables(ResetTypeEnum resetType, IncrementTypeEnum incrementType) throws JRException
JRException
public java.lang.Object evaluate(JRExpression expression, byte evaluationType) throws JRException
JRFillExpressionEvaluator
evaluate
in interface JRFillExpressionEvaluator
expression
- the expression to evaluateevaluationType
- one of JRExpression.EVALUATION_DEFAULT
,
JRExpression.EVALUATION_OLD
, JRExpression.EVALUATION_ESTIMATED
JRException
public java.lang.Object evaluateOld(JRExpression expression) throws JRExpressionEvalException
JRExpressionEvalException
public java.lang.Object evaluateEstimated(JRExpression expression) throws JRExpressionEvalException
JRExpressionEvalException
public java.lang.Object evaluate(JRExpression expression) throws JRExpressionEvalException
JRExpressionEvalException
public JRFillDataset getFillDataset()
JRFillExpressionEvaluator
getFillDataset
in interface JRFillExpressionEvaluator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |