Package net.sf.jasperreports.engine.type
Enum EvaluationTimeEnum
- All Implemented Interfaces:
Serializable
,Comparable<EvaluationTimeEnum>
,java.lang.constant.Constable
,NamedEnum
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEvaluation time indicating that each variable participating in the expression should be evaluated at a time decided by the engine.The element will be evaluated at band end.A constant specifying that an expression should be evaluated after each column is filled.A constant specifying that an expression should be evaluated after each group break.Used for elements that are evaluated at the moment the master report ends.A constant specifying that an expression should be evaluated at the exact moment in the filling process when it is encountered.A constant specifying that an expression should be evaluated after each page is filled.A constant specifying that an expression should be evaluated at the end of the filling process. -
Method Summary
Modifier and TypeMethodDescriptionstatic EvaluationTimeEnum
getName()
static EvaluationTimeEnum
static EvaluationTimeEnum
Returns the enum constant of this type with the specified name.static EvaluationTimeEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NOW
A constant specifying that an expression should be evaluated at the exact moment in the filling process when it is encountered. -
REPORT
A constant specifying that an expression should be evaluated at the end of the filling process. -
PAGE
A constant specifying that an expression should be evaluated after each page is filled. -
COLUMN
A constant specifying that an expression should be evaluated after each column is filled. -
GROUP
A constant specifying that an expression should be evaluated after each group break. -
BAND
The element will be evaluated at band end. -
AUTO
Evaluation time indicating that each variable participating in the expression should be evaluated at a time decided by the engine. Variables will be evaluated at a time corresponding to their reset type. Fields are evaluated "now", i.e. at the time the band the element lies on gets filled. This evaluation type should be used when report elements having expressions that combine values evaluated at different times are required (e.g. percentage out of a total). NB: avoid using this evaluation type when other types suffice as it can lead to performance loss. -
MASTER
Used for elements that are evaluated at the moment the master report ends.- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getName
-
getByName
-
getValueOrDefault
-
getDefault
- Specified by:
getDefault
in interfaceNamedEnum
-