Package org.midheaven.lang.reflection
Enum Class TypeKind
- All Implemented Interfaces:
Serializable,Comparable<TypeKind>,Constable
Enumerates Type Kind values.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks whether is Annotation.booleanisArray()Checks whether is Array.booleanisClass()Checks whether is Class.booleanisEnum()Checks whether is Enum.booleanChecks whether is Interface.booleanChecks whether is Primitive.booleanisRecord()Checks whether is Record.static TypeKindReturns the enum constant of this class with the specified name.static TypeKind[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ANNOTATION
-
ARRAY
-
CLASS
-
ENUM
-
PRIMITIVE
-
INTERFACE
-
RECORD
-
-
Method Details
-
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
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 nameNullPointerException- 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
-