Enum TurbineOptions.ReducedClasspathMode

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<TurbineOptions.ReducedClasspathMode>
    Enclosing class:
    TurbineOptions

    public static enum TurbineOptions.ReducedClasspathMode
    extends java.lang.Enum<TurbineOptions.ReducedClasspathMode>
    This modes controls how a probablistic Java classpath reduction is used. For each mode except NONE a speculative compilation is performed against a subset of the original classpath. If it fails due to a missing symbol, it is retried with the original transitive classpath.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      BAZEL_FALLBACK
      Indicates that the reduced classpath compilation failed when Bazel previously invoked turbine, and that we are retrying with a transitive classpath.
      BAZEL_REDUCED
      Bazel performs classpath reduction, and invokes turbine passing only the reduced classpath.
      JAVABUILDER_REDUCED
      Turbine implements reduced classpaths locally, with in-process fallback if the compilation fails.
      NONE
      Reduced classpaths are disabled, and a full transitive classpath is used.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static TurbineOptions.ReducedClasspathMode valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static TurbineOptions.ReducedClasspathMode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • BAZEL_REDUCED

        public static final TurbineOptions.ReducedClasspathMode BAZEL_REDUCED
        Bazel performs classpath reduction, and invokes turbine passing only the reduced classpath. If the compilation fails and requires fallback, turbine finishes with exit code 0 but records that the reduced classpath compilation failed in the jdeps proto.
      • BAZEL_FALLBACK

        public static final TurbineOptions.ReducedClasspathMode BAZEL_FALLBACK
        Indicates that the reduced classpath compilation failed when Bazel previously invoked turbine, and that we are retrying with a transitive classpath.
      • JAVABUILDER_REDUCED

        public static final TurbineOptions.ReducedClasspathMode JAVABUILDER_REDUCED
        Turbine implements reduced classpaths locally, with in-process fallback if the compilation fails.
    • Method Detail

      • values

        public static TurbineOptions.ReducedClasspathMode[] 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 (TurbineOptions.ReducedClasspathMode c : TurbineOptions.ReducedClasspathMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TurbineOptions.ReducedClasspathMode valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null