public static enum ReflectUtil.PrimitiveType extends Enum<ReflectUtil.PrimitiveType>
Enum Constant and Description |
---|
BOOLEAN |
BYTE |
CHAR |
DOUBLE |
FLOAT |
INT |
LONG |
NONE |
SHORT |
VOID |
Modifier and Type | Method and Description |
---|---|
static ReflectUtil.PrimitiveType |
forClass(Class<?> clazz) |
Class<?> |
type() |
static ReflectUtil.PrimitiveType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReflectUtil.PrimitiveType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReflectUtil.PrimitiveType BOOLEAN
public static final ReflectUtil.PrimitiveType BYTE
public static final ReflectUtil.PrimitiveType CHAR
public static final ReflectUtil.PrimitiveType SHORT
public static final ReflectUtil.PrimitiveType INT
public static final ReflectUtil.PrimitiveType LONG
public static final ReflectUtil.PrimitiveType FLOAT
public static final ReflectUtil.PrimitiveType DOUBLE
public static final ReflectUtil.PrimitiveType VOID
public static final ReflectUtil.PrimitiveType NONE
public static ReflectUtil.PrimitiveType[] values()
for (ReflectUtil.PrimitiveType c : ReflectUtil.PrimitiveType.values()) System.out.println(c);
public static ReflectUtil.PrimitiveType 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 nullpublic Class<?> type()
public static ReflectUtil.PrimitiveType forClass(Class<?> clazz)
Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.