public enum ClassKind extends Enum<ClassKind>
Enum Constant and Description |
---|
API |
ASYNC_RESULT |
BOXED_PRIMITIVE |
DATA_OBJECT |
ENUM |
HANDLER |
JSON_ARRAY |
JSON_OBJECT |
LIST |
MAP |
OBJECT |
OTHER |
PRIMITIVE |
SET |
STRING |
THROWABLE |
VOID |
Modifier and Type | Field and Description |
---|---|
boolean |
basic |
boolean |
collection |
boolean |
json |
Modifier and Type | Method and Description |
---|---|
static ClassKind |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ClassKind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static Map<String,ClassKind> |
vars()
Useful for testing the type class kind, allows to do type.kind == CLASS_API instead of type.kind.name() == "API"
|
public static final ClassKind STRING
public static final ClassKind BOXED_PRIMITIVE
public static final ClassKind PRIMITIVE
public static final ClassKind ENUM
public static final ClassKind JSON_OBJECT
public static final ClassKind JSON_ARRAY
public static final ClassKind THROWABLE
public static final ClassKind VOID
public static final ClassKind OBJECT
public static final ClassKind LIST
public static final ClassKind SET
public static final ClassKind MAP
public static final ClassKind API
public static final ClassKind DATA_OBJECT
public static final ClassKind HANDLER
public static final ClassKind ASYNC_RESULT
public static final ClassKind OTHER
public final boolean basic
public final boolean json
public final boolean collection
public static ClassKind[] values()
for (ClassKind c : ClassKind.values()) System.out.println(c);
public static ClassKind valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2015. All Rights Reserved.