Save This Page
Home » jasperreports-3.0.0-project » net.sf.jasperreports.engine.design » [javadoc | source]
net.sf.jasperreports.engine.design
abstract public class: JRAbstractCompiler [javadoc | source]
java.lang.Object
   net.sf.jasperreports.engine.design.JRAbstractCompiler

All Implemented Interfaces:
    JRCompiler

Direct Known Subclasses:
    JRAbstractClassCompiler, JRAbstractJavaCompiler, JRJikesCompiler, JRBshCompiler, JRAbstractMultiClassCompiler, JRGroovyCompiler, JRJdtCompiler, JRJdk12Compiler, JRJdk13Compiler, JRJavacCompiler, JRAbstractSingleClassCompiler

Base class for report compilers.
Constructor:
 protected JRAbstractCompiler(boolean needsSourceFiles) 
Method from net.sf.jasperreports.engine.design.JRAbstractCompiler Summary:
checkLanguage,   compileReport,   compileUnits,   generateSourceCode,   getCompilerClass,   getSourceFileName,   getUnitName,   getUnitName,   getUnitName,   getUnitName,   getUnitName,   loadEvaluator,   loadEvaluator,   loadEvaluator,   loadEvaluator
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from net.sf.jasperreports.engine.design.JRAbstractCompiler Detail:
 abstract protected  void checkLanguage(String language) throws JRException
    Checks that the report language is supported by the compiler.
 public final JasperReport compileReport(JasperDesign jasperDesign) throws JRException 
 abstract protected String compileUnits(JRCompilationUnit[] units,
    String classpath,
    File tempDirFile) throws JRException
    Compiles several expression evaluator units.

    The result of the compilation should be set by calling setCompileData on all compile units.

 abstract protected JRCompilationSourceCode generateSourceCode(JRSourceCompileTask sourceTask) throws JRException
    Generates expression evaluator code.
 protected String getCompilerClass() 
 abstract protected String getSourceFileName(String unitName)
    Returns the name of the source file where generated source code for an unit is saved.

    If the compiler needs source files for compilation or COMPILER_KEEP_JAVA_FILE is set, the generated source will be saved in a file having the name returned by this method.

 public static String getUnitName(JasperReport report,
    JRDataset dataset) 
    Returns the name of the expression evaluator unit for a dataset of a report.
 public static String getUnitName(JasperReport report,
    JRCrosstab crosstab) 
    Returns the name of the expression evaluator unit for a crosstab of a report.
 protected static String getUnitName(JRReport report,
    JRDataset dataset,
    String nameSuffix) 
 protected static String getUnitName(JRReport report,
    int crosstabId,
    String nameSuffix) 
 protected static String getUnitName(JRReport report,
    JRCrosstab crosstab,
    JRExpressionCollector expressionCollector,
    String nameSuffix) 
 public JREvaluator loadEvaluator(JasperReport jasperReport) throws JRException 
 public JREvaluator loadEvaluator(JasperReport jasperReport,
    JRDataset dataset) throws JRException 
 public JREvaluator loadEvaluator(JasperReport jasperReport,
    JRCrosstab crosstab) throws JRException 
 abstract protected JREvaluator loadEvaluator(Serializable compileData,
    String unitName) throws JRException
    Creates an expression evaluator instance from data saved when the report was compiled.