public class JRJdtCompiler extends JRAbstractJavaCompiler
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(String language)
Checks that the report language is supported by the compiler.
|
protected String |
compileUnits(JRCompilationUnit[] units,
String classpath,
File tempDirFile)
Compiles several expression evaluator units.
|
protected JRCompilationSourceCode |
generateSourceCode(JRSourceCompileTask sourceTask)
Generates expression evaluator code.
|
protected String |
getCompilerClass() |
protected org.eclipse.jdt.internal.compiler.ICompilerRequestor |
getCompilerRequestor(JRCompilationUnit[] units,
StringBuffer problemBuffer) |
protected org.eclipse.jdt.core.compiler.IProblem[] |
getJavaCompilationErrors(org.eclipse.jdt.internal.compiler.CompilationResult result) |
protected Map<String,String> |
getJdtSettings() |
protected org.eclipse.jdt.internal.compiler.env.INameEnvironment |
getNameEnvironment(JRCompilationUnit[] units) |
protected InputStream |
getResource(String resourceName) |
protected String |
getSourceFileName(String unitName)
Returns the name of the source file where generated source code for an unit is saved.
|
protected Class<?> |
loadClass(String className) |
classCacheKey, getClassFromCache, loadEvaluator, putClassInCachecompileReport, getUnitName, getUnitName, getUnitName, getUnitName, getUnitName, loadEvaluator, loadEvaluator, loadEvaluatorpublic JRJdtCompiler(JasperReportsContext jasperReportsContext)
public JRJdtCompiler()
JRJdtCompiler(JasperReportsContext).protected String compileUnits(JRCompilationUnit[] units, String classpath, 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 org.eclipse.jdt.internal.compiler.ICompilerRequestor getCompilerRequestor(JRCompilationUnit[] units, StringBuffer problemBuffer)
protected InputStream getResource(String resourceName)
protected Class<?> loadClass(String className) throws ClassNotFoundException
ClassNotFoundExceptionprotected void checkLanguage(String language) throws JRException
JRAbstractCompilercheckLanguage in class JRAbstractCompilerlanguage - the report languageJRExceptionprotected JRCompilationSourceCode generateSourceCode(JRSourceCompileTask sourceTask) throws JRException
JRAbstractCompilergenerateSourceCode in class JRAbstractCompilersourceTask - the source code generation informationJRExceptionprotected String getSourceFileName(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 String getCompilerClass()
getCompilerClass in class JRAbstractCompilerprotected org.eclipse.jdt.core.compiler.IProblem[] getJavaCompilationErrors(org.eclipse.jdt.internal.compiler.CompilationResult result)
Copyright © 2012. All Rights Reserved.