public class Type extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Type.ArrayType
An array type.
|
static class |
Type.EnumType
An enum type.
|
static class |
Type.ListType
A list type.
|
Modifier and Type | Field and Description |
---|---|
static Type |
BOOLEAN |
static Type |
BYTE |
static Type |
CHAR |
static Type |
DATE |
static Type |
DOUBLE |
static Type |
FLOAT |
static Type |
INT |
static Type |
LONG |
static Type |
NUMBER |
static Type |
OBJECT |
static Type |
SAFEHTML |
static Type |
SHORT |
static Type |
STRING |
static Type |
STRING_MAP |
Modifier and Type | Method and Description |
---|---|
Type |
getComponentType()
Get the component type, if this type is an array or list.
|
String[] |
getEnumValues()
Get the list of value names, if this type is an enum.
|
String |
getSourceName()
Get the name of this type as it would appear in source code.
|
String |
toString() |
public static final Type BOOLEAN
public static final Type BYTE
public static final Type CHAR
public static final Type DATE
public static final Type DOUBLE
public static final Type FLOAT
public static final Type INT
public static final Type LONG
public static final Type NUMBER
public static final Type OBJECT
public static final Type SHORT
public static final Type SAFEHTML
public static final Type STRING
public static final Type STRING_MAP
public Type(String sourceName)
public Type getComponentType()
public String[] getEnumValues()
public String getSourceName()
Copyright © 2016. All rights reserved.