Class SimpleCompiler

    • Constructor Detail

      • SimpleCompiler

        public SimpleCompiler()
    • Method Detail

      • setDebuggingInformation

        public void setDebuggingInformation​(boolean debugSource,
                                            boolean debugLines,
                                            boolean debugVars)
        Description copied from interface: ICookable
        Determines what kind of debugging information is included in the generates classes. The default is typically '-g:none', and '-g:all' if the system property 'org.codehaus.janino.source_debugging.enable' is set to 'true'.
        Specified by:
        setDebuggingInformation in interface ICookable
      • setParentClassLoader

        public void setParentClassLoader​(ClassLoader optionalParentClassLoader)
        Description copied from interface: ICookable
        The "parent class loader" is used to load referenced classes. Useful values are:
        System.getSystemClassLoader() The running JVM's class path
        Thread.currentThread().getContextClassLoader() or null The class loader effective for the invoking thread
        ICookable.BOOT_CLASS_LOADER The running JVM's boot class path
        The parent class loader defaults to the current thread's context class loader.
        Specified by:
        setParentClassLoader in interface ICookable
      • setParentClassLoader

        @Deprecated
        public void setParentClassLoader​(ClassLoader optionalParentClassLoader,
                                         Class<?>[] auxiliaryClasses)
        Deprecated.
        Auxiliary classes never really worked... don't use them.
      • setWarningHandler

        public void setWarningHandler​(WarningHandler optionalWarningHandler)
        Description copied from interface: ICookable
        By default, warnings are discarded, but an application my install a custom WarningHandler.
        Specified by:
        setWarningHandler in interface ICookable
        Parameters:
        optionalWarningHandler - null to indicate that no warnings be issued