public class JavaScriptCompiler extends JRAbstractCompiler
COMPILER_PREFIX| Constructor and Description |
|---|
JavaScriptCompiler()
Creates a JavaScript compiler.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendError(java.lang.StringBuffer errors,
int errorCount,
EvaluatorException e) |
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 |
getSourceFileName(java.lang.String unitName)
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)
Creates an expression evaluator instance from data saved when the report was compiled.
|
compileReport, getCompilerClass, getUnitName, getUnitName, getUnitName, getUnitName, getUnitName, loadEvaluator, loadEvaluator, loadEvaluatorprotected void checkLanguage(java.lang.String language)
throws JRException
JRAbstractCompilercheckLanguage in class JRAbstractCompilerlanguage - the report languageJRExceptionprotected 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 JRAbstractCompilerunits - the compilation unitsclasspath - the compilation classpathtempDirFile - temporary directoryJRExceptionprotected void appendError(java.lang.StringBuffer errors,
int errorCount,
EvaluatorException e)
protected JRCompilationSourceCode generateSourceCode(JRSourceCompileTask sourceTask) throws JRException
JRAbstractCompilergenerateSourceCode in class JRAbstractCompilersourceTask - the source code generation informationJRExceptionprotected 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 JRAbstractCompilerunitName - the unit nameprotected JREvaluator loadEvaluator(java.io.Serializable compileData, java.lang.String unitName) throws JRException
JRAbstractCompilerloadEvaluator in class JRAbstractCompilercompileData - the data saved when the report was compiledunitName - the evaluator unit nameJRException© 2001-2010 Jaspersoft Corporation www.jaspersoft.com