Enum Class LibraryElements

java.lang.Object
java.lang.Enum<LibraryElements>
org.openrewrite.gradle.attributes.LibraryElements
All Implemented Interfaces:
Serializable, Comparable<LibraryElements>, Constable, org.openrewrite.maven.attributes.Attribute

public enum LibraryElements extends Enum<LibraryElements> implements org.openrewrite.maven.attributes.Attribute
Attribute representing the technical elements of a library variant.
  • Enum Constant Details

    • CLASSES

      public static final LibraryElements CLASSES
      The JVM classes format
    • CLASSES_AND_RESOURCES

      public static final LibraryElements CLASSES_AND_RESOURCES
      The JVM class files and resources
    • DYNAMIC_LIB

      public static final LibraryElements DYNAMIC_LIB
      Dynamic libraries for native modules
    • HEADERS_CPLUSPLUS

      public static final LibraryElements HEADERS_CPLUSPLUS
      Header files for C++
    • JAR

      public static final LibraryElements JAR
      The JVM archive format
    • OBJECTS

      public static final LibraryElements OBJECTS
      Objects for native modules
    • RESOURCES

      public static final LibraryElements RESOURCES
      JVM resources
  • Method Details

    • values

      public static LibraryElements[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static LibraryElements valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • key

      public static String key()
    • from

      public static @Nullable LibraryElements from(@Nullable String libraryElements)