Enum Class TypeKind

java.lang.Object
java.lang.Enum<TypeKind>
org.midheaven.lang.reflection.TypeKind
All Implemented Interfaces:
Serializable, Comparable<TypeKind>, Constable

public enum TypeKind extends Enum<TypeKind>
Enumerates Type Kind values.
  • Enum Constant Details

    • ANNOTATION

      public static final TypeKind ANNOTATION
    • ARRAY

      public static final TypeKind ARRAY
    • CLASS

      public static final TypeKind CLASS
    • ENUM

      public static final TypeKind ENUM
    • PRIMITIVE

      public static final TypeKind PRIMITIVE
    • INTERFACE

      public static final TypeKind INTERFACE
    • RECORD

      public static final TypeKind RECORD
  • 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
    • isPrimitive

      public boolean isPrimitive()
      Checks whether is Primitive.
      Returns:
      the result of isPrimitive
    • isInterface

      public boolean isInterface()
      Checks whether is Interface.
      Returns:
      the result of isInterface
    • isEnum

      public boolean isEnum()
      Checks whether is Enum.
      Returns:
      the result of isEnum
    • isRecord

      public boolean isRecord()
      Checks whether is Record.
      Returns:
      the result of isRecord
    • isArray

      public boolean isArray()
      Checks whether is Array.
      Returns:
      the result of isArray
    • isAnnotation

      public boolean isAnnotation()
      Checks whether is Annotation.
      Returns:
      the result of isAnnotation
    • isClass

      public boolean isClass()
      Checks whether is Class.
      Returns:
      the result of isClass