public abstract class JRAbstractJavaCompiler extends JRAbstractCompiler
Modifier and Type | Field and Description |
---|---|
static String |
EXCEPTION_MESSAGE_KEY_EXPECTED_JAVA_LANGUAGE |
static String |
EXCEPTION_MESSAGE_KEY_EXPRESSION_CLASS_NOT_LOADED |
static String |
PROPERTY_EVALUATOR_CLASS_REFERENCE_FIX_ENABLED
Property that indicates whether a legacy fix for a JVM issue related to
evaluator classes generated by JasperReports is 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, reportClassFilter
COMPILER_CLASS, COMPILER_CLASSPATH, COMPILER_KEEP_JAVA_FILE, COMPILER_PREFIX, COMPILER_TEMP_DIR
Modifier | Constructor and Description |
---|---|
protected |
JRAbstractJavaCompiler(JasperReportsContext jasperReportsContext,
boolean needsSourceFiles) |
Modifier and Type | Method and Description |
---|---|
protected static Object |
classCacheKey() |
protected DirectExpressionValueFilter |
directValueFilter() |
protected static Class<?> |
getClassFromCache(String className) |
protected Class<?> |
loadClass(String className,
byte[] compileData) |
protected Class<?> |
loadClass(String className,
CompiledClasses classes) |
protected JREvaluator |
loadEvaluator(Serializable compileData,
String className)
Creates an expression evaluator instance from data saved when the report was compiled.
|
protected static void |
putClassInCache(String className,
Class<?> loadedClass) |
protected CompiledClasses |
toCompiledClasses(String className,
Serializable compileData) |
checkLanguage, compileReport, compileUnits, createCompileData, createEvaluator, effectiveDirectValueFilter, generateSourceCode, getCompilerClass, getSourceFile, getSourceFileName, getUnitName, getUnitName, getUnitName, getUnitName, getUnitName, loadEvaluator, loadEvaluator, loadEvaluator
public static final String PROPERTY_EVALUATOR_CLASS_REFERENCE_FIX_ENABLED
public static final String EXCEPTION_MESSAGE_KEY_EXPECTED_JAVA_LANGUAGE
public static final String EXCEPTION_MESSAGE_KEY_EXPRESSION_CLASS_NOT_LOADED
protected JRAbstractJavaCompiler(JasperReportsContext jasperReportsContext, boolean needsSourceFiles)
protected DirectExpressionValueFilter directValueFilter()
directValueFilter
in class JRAbstractCompiler
protected JREvaluator loadEvaluator(Serializable compileData, String className) throws JRException
JRAbstractCompiler
loadEvaluator
in class JRAbstractCompiler
compileData
- the data saved when the report was compiledclassName
- the evaluator unit nameJRException
protected CompiledClasses toCompiledClasses(String className, Serializable compileData)
protected Class<?> loadClass(String className, CompiledClasses classes)
protected static Object classCacheKey()
Copyright © 2023 Cloud Software Group, Inc.. All rights reserved.