Enum JavacOptions.SpoolMode

    • Enum Constant Detail

      • DIRECT_TO_JAR

        public static final JavacOptions.SpoolMode DIRECT_TO_JAR
        Writes the compiler output directly to a .jar file while retaining the intermediate .class files in memory. If JavaLibraryDescription.AbstractJavaLibraryDescriptionArg postprocessClassesCommands are present, the builder will resort to writing .class files to disk by necessity.
      • INTERMEDIATE_TO_DISK

        public static final JavacOptions.SpoolMode INTERMEDIATE_TO_DISK
        Writes the intermediate .class files from the compiler output to disk which is later packed up into a .jar file.
    • Method Detail

      • values

        public static JavacOptions.SpoolMode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (JavacOptions.SpoolMode c : JavacOptions.SpoolMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static JavacOptions.SpoolMode valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null