Class JRAbstractSingleClassCompiler
- java.lang.Object
-
- net.sf.jasperreports.engine.design.JRAbstractCompiler
-
- net.sf.jasperreports.engine.design.JRAbstractJavaCompiler
-
- net.sf.jasperreports.engine.design.JRAbstractClassCompiler
-
- net.sf.jasperreports.engine.design.JRAbstractSingleClassCompiler
-
- All Implemented Interfaces:
JRClassCompiler
,JRCompiler
,JRMultiClassCompiler
public abstract class JRAbstractSingleClassCompiler extends JRAbstractClassCompiler
Base class that can be used by single source file compilers to implement multiple compilation.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Field Summary
-
Fields inherited from class net.sf.jasperreports.engine.design.JRAbstractJavaCompiler
EXCEPTION_MESSAGE_KEY_EXPECTED_JAVA_LANGUAGE, EXCEPTION_MESSAGE_KEY_EXPRESSION_CLASS_NOT_LOADED, PROPERTY_EVALUATOR_CLASS_REFERENCE_FIX_ENABLED
-
Fields inherited from class net.sf.jasperreports.engine.design.JRAbstractCompiler
EXCEPTION_MESSAGE_KEY_CROSSTAB_ID_NOT_FOUND, EXCEPTION_MESSAGE_KEY_DESIGN_COMPILE_ERROR, EXCEPTION_MESSAGE_KEY_LANGUAGE_NOT_SUPPORTED, EXCEPTION_MESSAGE_KEY_REPORT_EXPRESSIONS_COMPILE_ERROR, EXCEPTION_MESSAGE_KEY_TEMP_DIR_NOT_FOUND, jasperReportsContext, reportClassFilter
-
Fields inherited from interface net.sf.jasperreports.engine.design.JRCompiler
COMPILER_CLASS, COMPILER_CLASSPATH, COMPILER_KEEP_JAVA_FILE, COMPILER_PREFIX, COMPILER_TEMP_DIR
-
-
Constructor Summary
Constructors Constructor Description JRAbstractSingleClassCompiler(JasperReportsContext jasperReportsContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
compileClasses(File[] sourceFiles, String classpath)
Compile a set of source files.-
Methods inherited from class net.sf.jasperreports.engine.design.JRAbstractClassCompiler
checkLanguage, compileUnits, generateSourceCode, getSourceFileName
-
Methods inherited from class net.sf.jasperreports.engine.design.JRAbstractJavaCompiler
classCacheKey, directValueFilter, getClassFromCache, loadClass, loadClass, loadEvaluator, putClassInCache, toCompiledClasses
-
Methods inherited from class net.sf.jasperreports.engine.design.JRAbstractCompiler
compileReport, createCompileData, createEvaluator, effectiveDirectValueFilter, getCompilerClass, getSourceFile, getUnitName, getUnitName, getUnitName, getUnitName, getUnitName, loadEvaluator, loadEvaluator, loadEvaluator
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.jasperreports.engine.design.JRClassCompiler
compileClass
-
-
-
-
Constructor Detail
-
JRAbstractSingleClassCompiler
public JRAbstractSingleClassCompiler(JasperReportsContext jasperReportsContext)
-
-
Method Detail
-
compileClasses
public String compileClasses(File[] sourceFiles, String classpath) throws JRException
Description copied from interface:JRMultiClassCompiler
Compile a set of source files.- Parameters:
sourceFiles
- the source filesclasspath
- the classpath to be used when compiling- Returns:
- a
String
containing compile errors - Throws:
JRException
-
-