net.sf.dynamicreports.report.definition.expression
Interface DRIComplexExpression<T>

All Superinterfaces:
DRIExpression<T>, Serializable
All Known Implementing Classes:
AbstractComplexExpression, AbstractSubDatasourceExpression, AddExpression, BeanArraySubDatasourceExpression, BeanCollectionSubDatasourceExpression, DivideExpression, MapArraySubDatasourceExpression, MapCollectionSubDatasourceExpression, MultiplyExpression, PercentageExpression, SubtractExpression

public interface DRIComplexExpression<T>
extends DRIExpression<T>

A complex implementation of an expression.
The difference between a simple and complex expression is that a complex expression allows registering additional fields or variables that are not defined in the report and are needed for calculating the value.

Author:
Ricardo Mariaca (r.mariaca@dynamicreports.org)

Method Summary
 T evaluate(List<?> values, ReportParameters reportParameters)
          Evaluates the expression.
 List<DRIExpression<?>> getExpressions()
           
 
Methods inherited from interface net.sf.dynamicreports.report.definition.expression.DRIExpression
getName, getValueClass
 

Method Detail

getExpressions

List<DRIExpression<?>> getExpressions()

evaluate

T evaluate(List<?> values,
           ReportParameters reportParameters)
Evaluates the expression.

Parameters:
values - the values of the registered expressions
reportParameters - access to report fields, variables, parameters, expressions, and other report values
Returns:
the result of the expression evaluation


Copyright © 2010-2014. All Rights Reserved.