|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Creates types.
Any implementation of TypeFactory
must ensure that types are
canonical: two types are equal if and only if they are the same object.
Nested Class Summary | |
static interface |
TypeFactory.FieldInfo
Callback which provides enough information to create fields. |
Method Summary | |
Type |
createJavaType(Class clazz)
Creates a type which encapsulates a Java class. |
Type |
createJoinType(Type[] types)
Creates a cartesian product type. |
Type |
createProjectType(Type[] types,
String[] fieldNames)
Creates a type which represents a projection of a set of fields. |
Type |
createProjectType(TypeFactory.FieldInfo fieldInfo)
Creates a type which represents a projection of a set fields, getting the field informatation from a callback. |
Type |
leastRestrictive(Type[] types)
Returns the most general of a set of types (that is, one type to which they can all be cast), or null if conversion is not possible. |
Method Detail |
public Type createProjectType(Type[] types, String[] fieldNames)
The return is canonical: if an equivalent type already exists, it is returned.
types
- Types of the fieldsfieldNames
- Names of the fields
public Type createProjectType(TypeFactory.FieldInfo fieldInfo)
public Type createJoinType(Type[] types)
public Type leastRestrictive(Type[] types)
public Type createJavaType(Class clazz)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |