Package com.facebook.buck.jvm.java
Enum CompileAgainstLibraryType
- java.lang.Object
-
- java.lang.Enum<CompileAgainstLibraryType>
-
- com.facebook.buck.jvm.java.CompileAgainstLibraryType
-
- All Implemented Interfaces:
Serializable
,Comparable<CompileAgainstLibraryType>
public enum CompileAgainstLibraryType extends Enum<CompileAgainstLibraryType>
Expresses what kind of library a given JvmLibrary should compile against.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABI
Compile against the ABI jar.FULL
Compile against the full jar.SOURCE_ONLY_ABI
Compile against the source-only ABI jar, if available.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CompileAgainstLibraryType
valueOf(String name)
Returns the enum constant of this type with the specified name.static CompileAgainstLibraryType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FULL
public static final CompileAgainstLibraryType FULL
Compile against the full jar. Avoid this whenever possible as it defeats Buck's incremental build in many cases.
-
ABI
public static final CompileAgainstLibraryType ABI
Compile against the ABI jar.
-
SOURCE_ONLY_ABI
public static final CompileAgainstLibraryType SOURCE_ONLY_ABI
Compile against the source-only ABI jar, if available. Else the ABI jar.
-
-
Method Detail
-
values
public static CompileAgainstLibraryType[] 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 (CompileAgainstLibraryType c : CompileAgainstLibraryType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CompileAgainstLibraryType 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 nameNullPointerException
- if the argument is null
-
-