public abstract class SimpleType extends AbstractType
Modifier and Type | Field and Description |
---|---|
static BinaryType |
BINARY
BinaryType instance. |
static BooleanType |
BOOLEAN
BooleanType instance. |
static DateType |
DATE
DateType instance. |
static DecimalType |
DECIMAL
DecimalType instance with default scale and rounding mode. |
static EnumerationBaseType |
ENUMERATION
EnumerationBaseType instance. |
static IntegerType |
INTEGER
IntegerType instance. |
static LocalDateType |
LOCAL_DATE
LocalDateType instance. |
static NullType |
NULL
NullType instance. |
static ObjectType |
OBJECT
ObjectType instance. |
static PropertyType |
PROPERTY
PropertyType instance. |
static PropertyPathType |
PROPERTY_PATH
PropertyPathType instance. |
static RecordBaseType |
RECORD
RecordBaseType instance. |
static StringType |
STRING
StringType instance. |
static VoidType |
VOID
VoidType instance. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static SimpleType |
forJavaClass(Class<?> clazz)
Returns a simple type for a given Java class.
|
static SimpleType |
forName(String name)
Returns an instance of
SimpleType for given name (the name is the
result of the toString() method. |
Class<?> |
getJavaClass()
Returns the Java class represented by this type.
|
String |
getName()
Returns the name of this simple type.
|
static Collection<SimpleType> |
getSimpleTypes()
Returns a collection of all registered simple types.
|
int |
hashCode() |
boolean |
hasIntersectionType() |
String |
toString()
Returns the name of this simple type.
|
assignableTo, findCommonSubtype, findCommonSupertype, getFreeTypes, hasFreeTypes, isCollection, matchesSubtype, matchesSupertype, performConversion, substituteFreeTypes
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
accept, getSupertype
public static final ObjectType OBJECT
ObjectType
instance.public static final BooleanType BOOLEAN
BooleanType
instance.public static final IntegerType INTEGER
IntegerType
instance.public static final DecimalType DECIMAL
DecimalType
instance with default scale and rounding mode.public static final StringType STRING
StringType
instance.public static final LocalDateType LOCAL_DATE
LocalDateType
instance.public static final EnumerationBaseType ENUMERATION
EnumerationBaseType
instance.public static final BinaryType BINARY
BinaryType
instance.public static final RecordBaseType RECORD
RecordBaseType
instance.public static final PropertyPathType PROPERTY_PATH
PropertyPathType
instance.public static final PropertyType PROPERTY
PropertyType
instance.public Class<?> getJavaClass()
Type
public final String getName()
public String toString()
toString
in class Object
Object.toString()
public static SimpleType forName(String name)
SimpleType
for given name (the name is the
result of the toString()
method.name
- SimpleType
for given namepublic static SimpleType forJavaClass(Class<?> clazz)
clazz
- public static Collection<SimpleType> getSimpleTypes()
public boolean hasIntersectionType()
true
if the type contains an intersection typeCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.