public class JavaScriptCompiler extends JavaScriptCompilerBase
JavaScriptEvaluator,
JavaScriptClassCompilerJavaScriptCompilerBase.Errors, JavaScriptCompilerBase.ScriptExpressionVisitorEXCEPTION_MESSAGE_KEY_INVALID_COMPILE_DATA_TYPEEXCEPTION_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, jasperReportsContextCOMPILER_CLASS, COMPILER_CLASSPATH, COMPILER_KEEP_JAVA_FILE, COMPILER_PREFIX, COMPILER_TEMP_DIR| Constructor and Description |
|---|
JavaScriptCompiler(JasperReportsContext jasperReportsContext)
Creates a JavaScript compiler.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
defaultExpressionCreator, estimatedExpressionCreator, generateSourceCode, getFieldVar, getParameterVar, getSourceFileName, getVariableVar, loadEvaluator, oldExpressionCreatorcompileReport, getCompilerClass, getSourceFile, getUnitName, getUnitName, getUnitName, getUnitName, getUnitName, loadEvaluator, loadEvaluator, loadEvaluatorpublic JavaScriptCompiler(JasperReportsContext jasperReportsContext)
protected void checkLanguage(String language) throws JRException
JRAbstractCompilercheckLanguage in class JavaScriptCompilerBaselanguage - the report languageJRExceptionprotected 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 directoryJRExceptionCopyright © 2017. All rights reserved.