Enum Class TypeKind

java.lang.Object
java.lang.Enum<TypeKind>
io.quarkus.gizmo2.TypeKind
All Implemented Interfaces:
Serializable, Comparable<TypeKind>, Constable

public enum TypeKind extends Enum<TypeKind>
The kind of a type, which can be one of the primitive types, a reference type, or void.
  • Enum Constant Details

    • BOOLEAN

      public static final TypeKind BOOLEAN
    • BYTE

      public static final TypeKind BYTE
    • CHAR

      public static final TypeKind CHAR
    • SHORT

      public static final TypeKind SHORT
    • INT

      public static final TypeKind INT
    • LONG

      public static final TypeKind LONG
    • FLOAT

      public static final TypeKind FLOAT
    • DOUBLE

      public static final TypeKind DOUBLE
    • REFERENCE

      public static final TypeKind REFERENCE
    • VOID

      public static final TypeKind VOID
  • Method Details

    • values

      public static TypeKind[] 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 TypeKind 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
    • upperBound

      public ClassDesc upperBound()
      Returns the most specific class descriptor for this type kind.
      Returns:
      the most specific class descriptor for this type kind
    • slotSize

      public int slotSize()
      Returns the number of variable or stack slots required by values of this type.
      Returns:
      the number of variable or stack slots required by values of this type
    • asLoadable

      public TypeKind asLoadable()
      Returns the loadable type kind for this type kind.
      Returns:
      the loadable type kind for this type kind
    • from

      public static TypeKind from(String descriptor)
      Returns the type kind for the given descriptor string.
      Parameters:
      descriptor - the descriptor string (must not be null)
      Returns:
      the type kind for the given descriptor string
    • from

      public static TypeKind from(ClassDesc descriptor)
      Returns the type kind for the given descriptor.
      Parameters:
      descriptor - the descriptor (must not be null)
      Returns:
      the type kind for the given descriptor
    • from

      public static TypeKind from(Class<?> clazz)
      Returns the type kind for the given class.
      Parameters:
      clazz - the class (must not be null)
      Returns:
      the type kind for the given class