public enum BasicTypeKind extends Enum<BasicTypeKind>
void
.Enum Constant and Description |
---|
BOOLEAN
The boolean type.
|
BYTE
The byte type.
|
CHAR
The char type.
|
DOUBLE
The double type.
|
FLOAT
The float type.
|
INT
The int type.
|
LONG
The long type.
|
SHORT
The short type.
|
VOID
The void type.
|
Modifier and Type | Method and Description |
---|---|
static BasicTypeKind |
descriptorOf(char descriptor)
Returns the type which is represented in the specified descriptor.
|
char |
getDescriptor()
Returns the type descriptor.
|
Class<?> |
getJavaRepresentation()
Returns the reflection type (
Class ) of this kind. |
String |
getKeyword()
Returns the Java keyword of this type.
|
static BasicTypeKind |
keywordOf(String keyword)
Returns the type kind about the Java keyword.
|
String |
toString() |
static BasicTypeKind |
valueOf(Class<?> klass)
Returns the type kind about the target Java type.
|
static BasicTypeKind |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BasicTypeKind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BasicTypeKind VOID
public static final BasicTypeKind INT
public static final BasicTypeKind LONG
public static final BasicTypeKind FLOAT
public static final BasicTypeKind DOUBLE
public static final BasicTypeKind SHORT
public static final BasicTypeKind CHAR
public static final BasicTypeKind BYTE
public static final BasicTypeKind BOOLEAN
public static BasicTypeKind[] values()
for (BasicTypeKind c : BasicTypeKind.values()) System.out.println(c);
public static 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 static BasicTypeKind descriptorOf(char descriptor)
descriptor
- the descriptornull
if there is no such the type kindpublic char getDescriptor()
public Class<?> getJavaRepresentation()
Class
) of this kind.public static BasicTypeKind valueOf(Class<?> klass)
klass
- the Java typenull
if there is no such the type kindIllegalArgumentException
- if the parameter is null
public String getKeyword()
public static BasicTypeKind keywordOf(String keyword)
keyword
- the Java keywordnull
if there is no such the type kindIllegalArgumentException
- if the parameter is null
public String toString()
toString
in class Enum<BasicTypeKind>
Copyright © 2011–2018 Asakusa Framework Team. All rights reserved.