Enum Class NativeImageKind

java.lang.Object
java.lang.Enum<NativeImageKind>
org.refcodes.runtime.NativeImageKind
All Implemented Interfaces:
Serializable, Comparable<NativeImageKind>, Constable, org.refcodes.mixin.ValueAccessor<String>

public enum NativeImageKind extends Enum<NativeImageKind> implements org.refcodes.mixin.ValueAccessor<String>
Defines the values of the SystemProperty.NATIVE_IMAGE_KIND system property.
  • Enum Constant Details

  • Method Details

    • values

      public static NativeImageKind[] 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 NativeImageKind 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
    • getValue

      public String getValue()
      Specified by:
      getValue in interface org.refcodes.mixin.ValueAccessor<String>
    • isExecutable

      public static boolean isExecutable()
      Determines whether we have an executable native image, e.g. the SystemProperty.NATIVE_IMAGE_KIND's value evaluates to EXECUTABLE's value.
      Returns:
      True in case we have an executable native image.
    • isSharedLibrary

      public static boolean isSharedLibrary()
      Determines whether we have a shared library, e.g. the SystemProperty.NATIVE_IMAGE_KIND's value evaluates to SHARED_LIBRARY's value.
      Returns:
      True in case we have a shared library