Package com.google.turbine.options
Enum TurbineOptions.ReducedClasspathMode
- java.lang.Object
-
- java.lang.Enum<TurbineOptions.ReducedClasspathMode>
-
- com.google.turbine.options.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 exceptNONEa 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_FALLBACKIndicates that the reduced classpath compilation failed when Bazel previously invoked turbine, and that we are retrying with a transitive classpath.BAZEL_REDUCEDBazel performs classpath reduction, and invokes turbine passing only the reduced classpath.JAVABUILDER_REDUCEDTurbine implements reduced classpaths locally, with in-process fallback if the compilation fails.NONEReduced 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.ReducedClasspathModevalueOf(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.
-
-
-
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.
-
NONE
public static final TurbineOptions.ReducedClasspathMode NONE
Reduced classpaths are disabled, and a full transitive classpath is used.
-
-
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 namejava.lang.NullPointerException- if the argument is null
-
-