net.sf.jasperreports.engine.design
public class JRJdtCompiler extends JRAbstractJavaCompiler
PROPERTY_EVALUATOR_CLASS_REFERENCE_FIX_ENABLED
COMPILER_PREFIX
Constructor and Description |
---|
JRJdtCompiler() |
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 ICompilerRequestor |
getCompilerRequestor(JRCompilationUnit[] units,
java.lang.StringBuffer problemBuffer) |
protected IProblem[] |
getJavaCompilationErrors(CompilationResult result) |
protected java.util.Map |
getJdtSettings() |
protected 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) |
classCacheKey, getClassFromCache, loadEvaluator, putClassInCache
compileReport, getUnitName, getUnitName, getUnitName, getUnitName, getUnitName, loadEvaluator, loadEvaluator, loadEvaluator
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 JRAbstractCompiler
units
- the compilation unitsclasspath
- the compilation classpathtempDirFile
- temporary directoryprotected INameEnvironment getNameEnvironment(JRCompilationUnit[] units)
protected ICompilerRequestor getCompilerRequestor(JRCompilationUnit[] units, java.lang.StringBuffer problemBuffer)
protected java.util.Map 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.ClassNotFoundException
protected void checkLanguage(java.lang.String language) throws JRException
JRAbstractCompiler
checkLanguage
in class JRAbstractCompiler
language
- the report languageJRException
protected JRCompilationSourceCode generateSourceCode(JRSourceCompileTask sourceTask) throws JRException
JRAbstractCompiler
generateSourceCode
in class JRAbstractCompiler
sourceTask
- the source code generation informationJRException
protected 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 JRAbstractCompiler
unitName
- the unit nameprotected java.lang.String getCompilerClass()
getCompilerClass
in class JRAbstractCompiler
protected IProblem[] getJavaCompilationErrors(CompilationResult result)
© 2001-2010 Jaspersoft Corporation www.jaspersoft.com