public class JRJdtCompiler extends JRAbstractJavaCompiler
| Modifier and Type | Class and Description |
|---|---|
static class |
JRJdtCompiler.CompilationUnit |
static class |
JRJdtCompiler.CompilationUnitResult |
static class |
JRJdtCompiler.CompilerRequestor |
PROPERTY_EVALUATOR_CLASS_REFERENCE_FIX_ENABLEDjasperReportsContextCOMPILER_CLASS, COMPILER_CLASSPATH, COMPILER_KEEP_JAVA_FILE, COMPILER_PREFIX, COMPILER_TEMP_DIR| Constructor and Description |
|---|
JRJdtCompiler()
Deprecated.
Replaced by
JRJdtCompiler(JasperReportsContext). |
JRJdtCompiler(JasperReportsContext jasperReportsContext) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkLanguage(java.lang.String language)
Checks that the report language is supported by the compiler.
|
protected java.lang.String |
compileUnits(JRCompilationUnit[] units,
java.lang.String classpath,
java.io.File tempDirFile)
Compiles several expression evaluator units.
|
protected JRCompilationSourceCode |
generateSourceCode(JRSourceCompileTask sourceTask)
Generates expression evaluator code.
|
protected java.lang.String |
getCompilerClass() |
protected JRJdtCompiler.CompilerRequestor |
getCompilerRequestor(JRCompilationUnit[] units) |
protected java.util.Map<java.lang.String,java.lang.String> |
getJdtSettings() |
protected org.eclipse.jdt.internal.compiler.env.INameEnvironment |
getNameEnvironment(JRCompilationUnit[] units) |
protected java.io.InputStream |
getResource(java.lang.String resourceName) |
protected java.lang.String |
getSourceFileName(java.lang.String unitName)
Returns the name of the source file where generated source code for an unit is saved.
|
protected java.lang.Class<?> |
loadClass(java.lang.String className) |
protected JRCompilationUnit |
recreateCompileUnit(JRCompilationUnit compilationUnit,
java.util.Set<java.lang.reflect.Method> missingMethods) |
classCacheKey, getClassFromCache, loadEvaluator, putClassInCachecompileReport, getSourceFile, getUnitName, getUnitName, getUnitName, getUnitName, getUnitName, loadEvaluator, loadEvaluator, loadEvaluatorpublic JRJdtCompiler(JasperReportsContext jasperReportsContext)
public JRJdtCompiler()
JRJdtCompiler(JasperReportsContext).protected java.lang.String compileUnits(JRCompilationUnit[] units, java.lang.String classpath, java.io.File tempDirFile)
JRAbstractCompiler
The result of the compilation should be set by calling
setCompileData on all compile units.
compileUnits in class JRAbstractCompilerunits - the compilation unitsclasspath - the compilation classpathtempDirFile - temporary directoryprotected org.eclipse.jdt.internal.compiler.env.INameEnvironment getNameEnvironment(JRCompilationUnit[] units)
protected JRJdtCompiler.CompilerRequestor getCompilerRequestor(JRCompilationUnit[] units)
protected java.util.Map<java.lang.String,java.lang.String> getJdtSettings()
protected java.io.InputStream getResource(java.lang.String resourceName)
protected java.lang.Class<?> loadClass(java.lang.String className)
throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundExceptionprotected void checkLanguage(java.lang.String language)
throws JRException
JRAbstractCompilercheckLanguage in class JRAbstractCompilerlanguage - the report languageJRExceptionprotected JRCompilationUnit recreateCompileUnit(JRCompilationUnit compilationUnit, java.util.Set<java.lang.reflect.Method> missingMethods)
protected JRCompilationSourceCode generateSourceCode(JRSourceCompileTask sourceTask) throws JRException
JRAbstractCompilergenerateSourceCode in class JRAbstractCompilersourceTask - the source code generation informationJRExceptionprotected java.lang.String getSourceFileName(java.lang.String unitName)
JRAbstractCompiler
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.
getSourceFileName in class JRAbstractCompilerunitName - the unit nameprotected java.lang.String getCompilerClass()
getCompilerClass in class JRAbstractCompiler© 2001-2010 Jaspersoft Corporation www.jaspersoft.com