public class JavaScriptCompiler extends JavaScriptCompilerBase
JavaScriptEvaluator
,
JavaScriptClassCompiler
JavaScriptCompilerBase.Errors, JavaScriptCompilerBase.ScriptExpressionVisitor
EXCEPTION_MESSAGE_KEY_INVALID_COMPILE_DATA_TYPE
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 |
---|
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, oldExpressionCreator
compileReport, getCompilerClass, getSourceFile, getUnitName, getUnitName, getUnitName, getUnitName, getUnitName, loadEvaluator, loadEvaluator, loadEvaluator
public JavaScriptCompiler(JasperReportsContext jasperReportsContext)
public JavaScriptCompiler()
JavaScriptCompiler(JasperReportsContext)
.protected void checkLanguage(java.lang.String language) throws JRException
JRAbstractCompiler
checkLanguage
in class JavaScriptCompilerBase
language
- the report languageJRException
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
© 2001-2014 TIBCO Software Inc. www.jaspersoft.com