|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jasperreports.engine.design.JRAbstractCompiler
net.sf.jasperreports.compilers.JRBshCompiler
public class JRBshCompiler
| Field Summary | |
|---|---|
static String |
LANGUAGE_BSH
A constant used to specify that the language used by expressions is BeanShell script. |
| Fields inherited from class net.sf.jasperreports.engine.design.JRAbstractCompiler |
|---|
jasperReportsContext |
| Fields inherited from interface net.sf.jasperreports.engine.design.JRCompiler |
|---|
COMPILER_CLASS, COMPILER_CLASSPATH, COMPILER_KEEP_JAVA_FILE, COMPILER_PREFIX, COMPILER_TEMP_DIR |
| Constructor Summary | |
|---|---|
JRBshCompiler()
Deprecated. Replaced by JRBshCompiler(JasperReportsContext). |
|
JRBshCompiler(JasperReportsContext jasperReportsContext)
|
|
| Method Summary | |
|---|---|
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 |
getSourceFileName(String unitName)
Returns the name of the source file where generated source code for an unit is saved. |
protected JREvaluator |
loadEvaluator(Serializable compileData,
String unitName)
Creates an expression evaluator instance from data saved when the report was compiled. |
| Methods inherited from class net.sf.jasperreports.engine.design.JRAbstractCompiler |
|---|
compileReport, getCompilerClass, getUnitName, getUnitName, getUnitName, getUnitName, getUnitName, loadEvaluator, loadEvaluator, loadEvaluator |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String LANGUAGE_BSH
| Constructor Detail |
|---|
public JRBshCompiler(JasperReportsContext jasperReportsContext)
public JRBshCompiler()
JRBshCompiler(JasperReportsContext).
| Method Detail |
|---|
protected JREvaluator loadEvaluator(Serializable compileData,
String unitName)
throws JRException
JRAbstractCompiler
loadEvaluator in class JRAbstractCompilercompileData - the data saved when the report was compiledunitName - the evaluator unit name
JRException
protected void checkLanguage(String language)
throws JRException
JRAbstractCompiler
checkLanguage in class JRAbstractCompilerlanguage - the report language
JRException
protected JRCompilationSourceCode generateSourceCode(JRSourceCompileTask sourceTask)
throws JRException
JRAbstractCompiler
generateSourceCode in class JRAbstractCompilersourceTask - the source code generation information
JRException
protected String compileUnits(JRCompilationUnit[] units,
String classpath,
File tempDirFile)
throws JRException
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 directory
JRExceptionprotected 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 name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||