|
||||||||||
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 SaffronType
getArrayType
in class SaffronTypeFactoryImpl.TypeImpl
public SaffronField getField(String fieldName)
getField
in interface SaffronType
getField
in class SaffronTypeFactoryImpl.TypeImpl
public int getFieldCount()
SaffronType
getFieldCount
in interface SaffronType
getFieldCount
in class SaffronTypeFactoryImpl.TypeImpl
public int getFieldOrdinal(String fieldName)
getFieldOrdinal
in interface SaffronType
getFieldOrdinal
in class SaffronTypeFactoryImpl.TypeImpl
public SaffronField[] getFields()
SaffronType
getFields
in interface SaffronType
getFields
in class SaffronTypeFactoryImpl.TypeImpl
public SaffronType getComponentType()
SaffronType
getComponentType
in interface SaffronType
getComponentType
in class SaffronTypeFactoryImpl.TypeImpl
protected String computeDigest()
computeDigest
in class SaffronTypeFactoryImpl.TypeImpl
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |