Class Compiler


  • public class Compiler
    extends Object
    Main JSP compiler class.
    Author:
    Anil K. Vijendran, Mandar Raje, Pierre Delisle, Kin-man Chung, Remy Maucherat, Mark Roth
    • Method Detail

      • isOutDated

        public boolean isOutDated()
        This is a protected method intended to be overridden by subclasses of Compiler. This is used by the compile method to do all the compilation.
      • isOutDated

        public boolean isOutDated​(boolean checkClass)
        Determine if a compilation is necessary by checking the time stamp of the JSP page with that of the corresponding .class or .java file. If the page has dependencies, the check is also extended to its dependeants, and so on. This method can by overidden by a subclasses of Compiler.
        Parameters:
        checkClass - If true, check against .class file, if false, check against .java file.
      • getErrorDispatcher

        public ErrorDispatcher getErrorDispatcher()
        Gets the error dispatcher.
      • getPageInfo

        public PageInfo getPageInfo()
        Gets the info about the page under compilation
      • setPageInfo

        public void setPageInfo​(PageInfo pageInfo)
        Sets the info about the page under compilation
      • removeGeneratedFiles

        public void removeGeneratedFiles()
        Remove generated files
      • removeGeneratedClassFiles

        public void removeGeneratedClassFiles()