public class JavaScriptCompiler extends JavaScriptCompilerBase
JavaScriptEvaluator,
JavaScriptClassCompilerJavaScriptCompilerBase.Errors, JavaScriptCompilerBase.ScriptExpressionVisitorjasperReportsContextCOMPILER_CLASS, COMPILER_CLASSPATH, COMPILER_KEEP_JAVA_FILE, COMPILER_PREFIX, COMPILER_TEMP_DIR| Constructor and Description |
|---|
JavaScriptCompiler()
Deprecated.
Replaced by
JavaScriptCompiler(JasperReportsContext). |
JavaScriptCompiler(JasperReportsContext jasperReportsContext)
Creates a JavaScript compiler.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
defaultExpressionCreator, estimatedExpressionCreator, generateSourceCode, getFieldVar, getParameterVar, getSourceFileName, getVariableVar, loadEvaluator, oldExpressionCreatorcompileReport, getCompilerClass, getSourceFile, getUnitName, getUnitName, getUnitName, getUnitName, getUnitName, loadEvaluator, loadEvaluator, loadEvaluatorpublic JavaScriptCompiler(JasperReportsContext jasperReportsContext)
public JavaScriptCompiler()
JavaScriptCompiler(JasperReportsContext).protected void checkLanguage(java.lang.String language)
throws JRException
JRAbstractCompilercheckLanguage in class JavaScriptCompilerBaselanguage - 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 directoryJRException© 2001-2010 Jaspersoft Corporation www.jaspersoft.com