Interface JavaCompiler

    • Method Detail

      • compile

        JavacErrorDetail[] compile​(java.lang.String className,
                                   Node.Nodes pageNodes)
                            throws JasperException
        Start Java compilation
        Parameters:
        className - Name of the class under compilation
        pageNode - Internal form for the page, used for error line mapping
        Throws:
        JasperException
      • getJavaWriter

        java.io.Writer getJavaWriter​(java.lang.String javaFileName,
                                     java.lang.String javaEncoding)
                              throws JasperException
        Get a Writer for the Java file. The writer is used by JSP compiler. This method allows the Java compiler control where the Java file should be generated so it knows how to handle the input for java compilation accordingly.
        Throws:
        JasperException
      • getClassLastModified

        long getClassLastModified()
        Return the time the class file was generated.
      • saveClassFile

        void saveClassFile​(java.lang.String className,
                           java.lang.String classFileName)
        Save the generated class file to disk, if not already done.
      • setClassPath

        void setClassPath​(java.util.List<java.io.File> cp)
        Java Compiler options.
      • setDebug

        void setDebug​(boolean debug)
      • setExtdirs

        void setExtdirs​(java.lang.String exts)
      • setTargetVM

        void setTargetVM​(java.lang.String targetVM)
      • setSourceVM

        void setSourceVM​(java.lang.String sourceVM)
      • release

        void release()
        Release resouces used in the current compilation