|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--net.sf.saffron.core.SaffronTypeFactoryImpl.TypeImpl
|
+--net.sf.saffron.oj.OJTypeFactoryImpl.OJScalarType
Type based upon an OJClass.
Use this class only if the class is a 'pure' OJClass:
OJClass is based upon a Java class, call
SaffronTypeFactoryImpl.createJavaType(java.lang.Class) instead.
OJClass is synthetic, call SaffronTypeFactoryImpl.createProjectType(net.sf.saffron.core.SaffronType[], java.lang.String[]) or
SaffronTypeFactoryImpl.createJoinType(net.sf.saffron.core.SaffronType[]) instead.
| Field Summary | |
private OJClass |
ojClass
|
| Fields inherited from class net.sf.saffron.core.SaffronTypeFactoryImpl.TypeImpl |
digest, fields |
| Constructor Summary | |
(package private) |
OJTypeFactoryImpl.OJScalarType(OJClass ojClass)
Creates an OJScalarType |
| Method Summary | |
protected String |
computeDigest()
|
SaffronType |
getArrayType()
Returns an array type with this type as the component. |
SaffronType |
getComponentType()
Returns the component type if type is a collection, otherwise null. |
SaffronField |
getField(String fieldName)
|
int |
getFieldCount()
Returns the number of columns. |
int |
getFieldOrdinal(String fieldName)
|
SaffronField[] |
getFields()
Returns the columns. |
| Methods inherited from class net.sf.saffron.core.SaffronTypeFactoryImpl.TypeImpl |
equals, equalsSansNullability, format, getFactory, getJoinTypes, hashCode, isJoin, isProject, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
private final OJClass ojClass
| Constructor Detail |
OJTypeFactoryImpl.OJScalarType(OJClass ojClass)
OJScalarType
ojClass - Equivalent OJClass| Method Detail |
public SaffronType getArrayType()
SaffronType
getArrayType in interface SaffronTypegetArrayType in class SaffronTypeFactoryImpl.TypeImplpublic SaffronField getField(String fieldName)
getField in interface SaffronTypegetField in class SaffronTypeFactoryImpl.TypeImplpublic int getFieldCount()
SaffronType
getFieldCount in interface SaffronTypegetFieldCount in class SaffronTypeFactoryImpl.TypeImplpublic int getFieldOrdinal(String fieldName)
getFieldOrdinal in interface SaffronTypegetFieldOrdinal in class SaffronTypeFactoryImpl.TypeImplpublic SaffronField[] getFields()
SaffronType
getFields in interface SaffronTypegetFields in class SaffronTypeFactoryImpl.TypeImplpublic SaffronType getComponentType()
SaffronType
getComponentType in interface SaffronTypegetComponentType in class SaffronTypeFactoryImpl.TypeImplprotected String computeDigest()
computeDigest in class SaffronTypeFactoryImpl.TypeImpl
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||