public class CustomJRJdtCompiler
extends net.sf.jasperreports.engine.design.JRAbstractJavaCompiler
Modifier and Type | Class and Description |
---|---|
static class |
CustomJRJdtCompiler.CompilationUnit |
static class |
CustomJRJdtCompiler.CompilationUnitResult |
static class |
CustomJRJdtCompiler.CompilerRequestor |
Modifier and Type | Field and Description |
---|---|
static String |
EXCEPTION_MESSAGE_KEY_CLASS_LOADING_ERROR |
static String |
EXCEPTION_MESSAGE_KEY_NAME_ENVIRONMENT_ANSWER_INSTANCE_ERROR |
EXCEPTION_MESSAGE_KEY_EXPECTED_JAVA_LANGUAGE, EXCEPTION_MESSAGE_KEY_EXPRESSION_CLASS_NOT_LOADED, PROPERTY_EVALUATOR_CLASS_REFERENCE_FIX_ENABLED
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
Constructor and Description |
---|
CustomJRJdtCompiler(net.sf.jasperreports.engine.JasperReportsContext jasperReportsContext) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkLanguage(String language) |
protected String |
compileUnits(net.sf.jasperreports.engine.design.JRCompilationUnit[] units,
String classpath,
File tempDirFile) |
protected net.sf.jasperreports.engine.design.JRCompilationSourceCode |
generateSourceCode(net.sf.jasperreports.engine.design.JRSourceCompileTask sourceTask) |
protected String |
getCompilerClass() |
protected CustomJRJdtCompiler.CompilerRequestor |
getCompilerRequestor(net.sf.jasperreports.engine.design.JRCompilationUnit[] units) |
protected org.eclipse.jdt.internal.compiler.impl.CompilerOptions |
getJdtSettings() |
protected org.eclipse.jdt.internal.compiler.env.INameEnvironment |
getNameEnvironment(net.sf.jasperreports.engine.design.JRCompilationUnit[] units) |
protected InputStream |
getResource(String resourceName) |
protected String |
getSourceFileName(String unitName) |
protected Class<?> |
loadClass(String className) |
protected net.sf.jasperreports.engine.design.JRCompilationUnit |
recreateCompileUnit(net.sf.jasperreports.engine.design.JRCompilationUnit compilationUnit,
Set<Method> missingMethods) |
classCacheKey, getClassFromCache, loadEvaluator, putClassInCache
public static final String EXCEPTION_MESSAGE_KEY_CLASS_LOADING_ERROR
public static final String EXCEPTION_MESSAGE_KEY_NAME_ENVIRONMENT_ANSWER_INSTANCE_ERROR
public CustomJRJdtCompiler(net.sf.jasperreports.engine.JasperReportsContext jasperReportsContext)
protected String compileUnits(net.sf.jasperreports.engine.design.JRCompilationUnit[] units, String classpath, File tempDirFile)
compileUnits
in class net.sf.jasperreports.engine.design.JRAbstractCompiler
protected org.eclipse.jdt.internal.compiler.env.INameEnvironment getNameEnvironment(net.sf.jasperreports.engine.design.JRCompilationUnit[] units)
protected CustomJRJdtCompiler.CompilerRequestor getCompilerRequestor(net.sf.jasperreports.engine.design.JRCompilationUnit[] units)
protected org.eclipse.jdt.internal.compiler.impl.CompilerOptions getJdtSettings()
protected InputStream getResource(String resourceName)
protected Class<?> loadClass(String className) throws ClassNotFoundException
ClassNotFoundException
protected void checkLanguage(String language) throws net.sf.jasperreports.engine.JRException
checkLanguage
in class net.sf.jasperreports.engine.design.JRAbstractCompiler
net.sf.jasperreports.engine.JRException
protected net.sf.jasperreports.engine.design.JRCompilationUnit recreateCompileUnit(net.sf.jasperreports.engine.design.JRCompilationUnit compilationUnit, Set<Method> missingMethods)
protected net.sf.jasperreports.engine.design.JRCompilationSourceCode generateSourceCode(net.sf.jasperreports.engine.design.JRSourceCompileTask sourceTask) throws net.sf.jasperreports.engine.JRException
generateSourceCode
in class net.sf.jasperreports.engine.design.JRAbstractCompiler
net.sf.jasperreports.engine.JRException
protected String getSourceFileName(String unitName)
getSourceFileName
in class net.sf.jasperreports.engine.design.JRAbstractCompiler
protected String getCompilerClass()
getCompilerClass
in class net.sf.jasperreports.engine.design.JRAbstractCompiler
Copyright © 2021. All rights reserved.