public class ExpressionUtils extends Object
Constructor and Description |
---|
ExpressionUtils() |
Modifier and Type | Method and Description |
---|---|
static net.sf.jasperreports.engine.design.JRDesignExpression |
createAndRegisterExpression(DynamicJasperDesign design,
String name,
CustomExpression expression) |
static String |
createCustomExpressionInvocationText(CustomExpression customExpression,
String customExpName)
If you register a CustomExpression with the name "customExpName", then this will create the text needed
to invoke it in a JRDesignExpression
|
static String |
createCustomExpressionInvocationText2(String customExpName)
Same as regular, but instead of invoking directly $P{REPORT_SCRIPTLET}, it does through the $P{REPORT_PARAMETERS_MAP}
|
static net.sf.jasperreports.engine.design.JRDesignExpression |
createExpression(net.sf.jasperreports.engine.design.JasperDesign jasperDesign,
SubreportParameter sp) |
static net.sf.jasperreports.engine.design.JRDesignExpression |
createExpression(String text,
Class clazz) |
static net.sf.jasperreports.engine.design.JRDesignExpression |
createExpression(String name,
CustomExpression expression) |
static net.sf.jasperreports.engine.design.JRDesignExpression |
createExpression(String text,
String className) |
static String |
createParameterName(String preffix,
Object obj) |
static net.sf.jasperreports.engine.design.JRDesignExpression |
createStringExpression(String text) |
static net.sf.jasperreports.engine.design.JRDesignExpression |
getConnectionExpression(DJDataSource ds) |
static net.sf.jasperreports.engine.design.JRDesignExpression |
getDataSourceExpression(DJDataSource ds)
Returns the expression string required
|
protected static String |
getDataSourceTypeStr(int datasourceType) |
static net.sf.jasperreports.engine.design.JRDesignExpression |
getExpressionForConditionalStyle(ConditionalStyle condition,
String columExpression) |
static String |
getFieldsMapExpression(Collection columnsAndFields) |
static String |
getInitialValueExpressionForOperation(DJCalculation calc,
ColumnProperty prop) |
static net.sf.jasperreports.engine.design.JRDesignExpression |
getParameterExpression(Subreport sr)
Returns an expression that points to a java.util.Map object with the parameters to
be used during the subreport fill time.
|
static String |
getParametersMapExpression() |
static net.sf.jasperreports.engine.design.JRDesignExpression |
getReportConnectionExpression()
Returns a JRDesignExpression that points to the main report connection
|
static String |
getTextForFieldsFromScriptlet() |
static String |
getTextForParametersFromScriptlet() |
static String |
getTextForVariablesFromScriptlet() |
static String |
getValueClassNameForOperation(DJCalculation calc,
ColumnProperty prop) |
static String |
getVariablesMapExpression(Collection variables)
Collection of JRVariable
|
public static net.sf.jasperreports.engine.design.JRDesignExpression getParameterExpression(Subreport sr)
sr
- public static net.sf.jasperreports.engine.design.JRDesignExpression getDataSourceExpression(DJDataSource ds)
ds
- public static net.sf.jasperreports.engine.design.JRDesignExpression getConnectionExpression(DJDataSource ds)
public static net.sf.jasperreports.engine.design.JRDesignExpression getReportConnectionExpression()
protected static String getDataSourceTypeStr(int datasourceType)
public static net.sf.jasperreports.engine.design.JRDesignExpression createStringExpression(String text)
public static net.sf.jasperreports.engine.design.JRDesignExpression createExpression(String text, Class clazz)
public static net.sf.jasperreports.engine.design.JRDesignExpression createExpression(String text, String className)
public static net.sf.jasperreports.engine.design.JRDesignExpression createExpression(net.sf.jasperreports.engine.design.JasperDesign jasperDesign, SubreportParameter sp)
public static net.sf.jasperreports.engine.design.JRDesignExpression createAndRegisterExpression(DynamicJasperDesign design, String name, CustomExpression expression)
public static net.sf.jasperreports.engine.design.JRDesignExpression createExpression(String name, CustomExpression expression)
public static String getFieldsMapExpression(Collection columnsAndFields)
Collection
- of ColumnPropertypublic static String getVariablesMapExpression(Collection variables)
variables
- public static String getParametersMapExpression()
public static String createCustomExpressionInvocationText(CustomExpression customExpression, String customExpName)
customExpName
- public static String createCustomExpressionInvocationText2(String customExpName)
customExpName
- public static String getTextForVariablesFromScriptlet()
public static String getTextForParametersFromScriptlet()
public static String getTextForFieldsFromScriptlet()
public static String getValueClassNameForOperation(DJCalculation calc, ColumnProperty prop)
public static String getInitialValueExpressionForOperation(DJCalculation calc, ColumnProperty prop)
public static net.sf.jasperreports.engine.design.JRDesignExpression getExpressionForConditionalStyle(ConditionalStyle condition, String columExpression)
Copyright © 2006–2014 FDV Solutions. All rights reserved.