Class JavaScriptCompiler

    • Constructor Detail

      • JavaScriptCompiler

        public JavaScriptCompiler​(JasperReportsContext jasperReportsContext)
        Creates a JavaScript compiler.
    • Method Detail

      • compileUnits

        protected java.lang.String compileUnits​(JRCompilationUnit[] units,
                                                java.lang.String classpath,
                                                java.io.File tempDirFile)
                                         throws JRException
        Description copied from class: JRAbstractCompiler
        Compiles several expression evaluator units.

        The result of the compilation should be set by calling setCompileData on all compile units.

        Specified by:
        compileUnits in class JRAbstractCompiler
        Parameters:
        units - the compilation units
        classpath - the compilation classpath
        tempDirFile - temporary directory
        Returns:
        a string containing compilation errors, or null if the compilation was successfull
        Throws:
        JRException