public static enum BasicTypeDescription.BasicTypeKind extends Enum<BasicTypeDescription.BasicTypeKind>
BasicTypeDescription
.Enum Constant and Description |
---|
BOOLEAN
boolean type. |
BYTE
byte type. |
CHAR
char type. |
DOUBLE
double type. |
FLOAT
float type. |
INT
int type. |
LONG
long type. |
SHORT
short type. |
VOID
void type. |
Modifier and Type | Method and Description |
---|---|
String |
getKeyword()
Returns the keyword of this basic type.
|
Class<?> |
getReflectiveObject()
Returns the reflective object.
|
Class<?> |
getWrapperType()
Returns the corresponded wrapper type.
|
static BasicTypeDescription.BasicTypeKind |
of(Class<?> aClass)
Returns the constant from its reflective object.
|
static BasicTypeDescription.BasicTypeKind |
of(String keyword)
Returns the constant from its keyword.
|
String |
toString() |
static BasicTypeDescription.BasicTypeKind |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BasicTypeDescription.BasicTypeKind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BasicTypeDescription.BasicTypeKind VOID
void
type.public static final BasicTypeDescription.BasicTypeKind INT
int
type.public static final BasicTypeDescription.BasicTypeKind LONG
long
type.public static final BasicTypeDescription.BasicTypeKind FLOAT
float
type.public static final BasicTypeDescription.BasicTypeKind DOUBLE
double
type.public static final BasicTypeDescription.BasicTypeKind SHORT
short
type.public static final BasicTypeDescription.BasicTypeKind CHAR
char
type.public static final BasicTypeDescription.BasicTypeKind BYTE
byte
type.public static final BasicTypeDescription.BasicTypeKind BOOLEAN
boolean
type.public static BasicTypeDescription.BasicTypeKind[] values()
for (BasicTypeDescription.BasicTypeKind c : BasicTypeDescription.BasicTypeKind.values()) System.out.println(c);
public static BasicTypeDescription.BasicTypeKind 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<?> getReflectiveObject()
public Class<?> getWrapperType()
public static BasicTypeDescription.BasicTypeKind of(Class<?> aClass)
aClass
- the reflective objectnull
if it is not definedpublic String getKeyword()
public static BasicTypeDescription.BasicTypeKind of(String keyword)
keyword
- the basic type keywordnull
if it is not definedpublic String toString()
toString
in class Enum<BasicTypeDescription.BasicTypeKind>
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.