net.sf.jasperreports.engine.design
Class JRClassGenerator
java.lang.Object
net.sf.jasperreports.engine.design.JRClassGenerator
public class JRClassGenerator
- extends java.lang.Object
- Version:
- $Id: JRClassGenerator.java 1229 2006-04-19 13:27:35 +0300 (Wed, 19 Apr 2006) teodord $
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sourceTask
protected final JRSourceCompileTask sourceTask
parametersMap
protected java.util.Map parametersMap
fieldsMap
protected java.util.Map fieldsMap
variablesMap
protected java.util.Map variablesMap
variables
protected JRVariable[] variables
JRClassGenerator
protected JRClassGenerator(JRSourceCompileTask sourceTask)
generateClass
public static java.lang.String generateClass(JRSourceCompileTask sourceTask)
throws JRException
- Generates Java source code for evaluating the expressions of a report/dataset/crosstab.
- Parameters:
sourceTask
- the source task containing data required to generate the source file
- Returns:
- the source code
- Throws:
JRException
generateClass
protected java.lang.String generateClass()
throws JRException
- Throws:
JRException
generateClassStart
protected final void generateClassStart(java.lang.StringBuffer sb)
generateDeclarations
protected final void generateDeclarations(java.lang.StringBuffer sb)
generateInitParamsMethod
protected final void generateInitParamsMethod(java.lang.StringBuffer sb)
throws JRException
- Throws:
JRException
generateInitFieldsMethod
protected final void generateInitFieldsMethod(java.lang.StringBuffer sb)
throws JRException
- Throws:
JRException
generateInitVarsMethod
protected final void generateInitVarsMethod(java.lang.StringBuffer sb)
throws JRException
- Throws:
JRException
generateMethod
protected final java.lang.String generateMethod(byte evaluationType,
java.util.List expressionsList)
throws JRException
- Throws:
JRException
© 2001-2006 JasperSoft Corporation www.jaspersoft.com