public class JRBshCompiler extends JRAbstractCompiler
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LANGUAGE_BSH
Deprecated.
A constant used to specify that the language used by expressions is BeanShell script.
|
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
COMPILER_CLASS, COMPILER_CLASSPATH, COMPILER_KEEP_JAVA_FILE, COMPILER_PREFIX, COMPILER_TEMP_DIR
Constructor and Description |
---|
JRBshCompiler(JasperReportsContext jasperReportsContext)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkLanguage(java.lang.String language)
Deprecated.
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)
Deprecated.
Compiles several expression evaluator units.
|
protected JRCompilationSourceCode |
generateSourceCode(JRSourceCompileTask sourceTask)
Deprecated.
Generates expression evaluator code.
|
protected java.lang.String |
getSourceFileName(java.lang.String unitName)
Deprecated.
Returns the name of the source file where generated source code for an unit is saved.
|
protected JREvaluator |
loadEvaluator(java.io.Serializable compileData,
java.lang.String unitName)
Deprecated.
Creates an expression evaluator instance from data saved when the report was compiled.
|
compileReport, getCompilerClass, getSourceFile, getUnitName, getUnitName, getUnitName, getUnitName, getUnitName, loadEvaluator, loadEvaluator, loadEvaluator
public static final java.lang.String LANGUAGE_BSH
public JRBshCompiler(JasperReportsContext jasperReportsContext)
protected JREvaluator loadEvaluator(java.io.Serializable compileData, java.lang.String unitName) throws JRException
JRAbstractCompiler
loadEvaluator
in class JRAbstractCompiler
compileData
- the data saved when the report was compiledunitName
- the evaluator unit nameJRException
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 compileUnits(JRCompilationUnit[] units, java.lang.String classpath, java.io.File tempDirFile) throws JRException
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 directoryJRException
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 name© 2001 - 2018 TIBCO Software Inc. www.jaspersoft.com