|
||||||||||
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
Abstract implementation for SaffronType
. Useful if the type
contains a set of fields.
Identity is based upon the digest
field, which each derived
class should set during construction.
Field Summary | |
protected String |
digest
|
protected SaffronField[] |
fields
|
Constructor Summary | |
protected |
SaffronTypeFactoryImpl.TypeImpl(SaffronField[] fields)
|
Method Summary | |
protected abstract String |
computeDigest()
|
boolean |
equals(Object obj)
|
boolean |
equalsSansNullability(SaffronType type)
Whether this type is identical to another, save for differences in nullability. |
void |
format(Object value,
PrintWriter pw)
Prints a value of this type. |
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. |
SaffronTypeFactory |
getFactory()
|
SaffronField |
getField(String fieldName)
|
int |
getFieldCount()
Returns the number of columns. |
int |
getFieldOrdinal(String fieldName)
|
SaffronField[] |
getFields()
Returns the columns. |
SaffronType[] |
getJoinTypes()
Returns the component types of a join type. |
int |
hashCode()
|
boolean |
isJoin()
Whether the type represents a cartesian product of regular types. |
boolean |
isProject()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected final SaffronField[] fields
protected String digest
Constructor Detail |
protected SaffronTypeFactoryImpl.TypeImpl(SaffronField[] fields)
Method Detail |
public SaffronTypeFactory getFactory()
getFactory
in interface SaffronType
public SaffronField getField(String fieldName)
getField
in interface SaffronType
public int getFieldCount()
SaffronType
getFieldCount
in interface SaffronType
public int getFieldOrdinal(String fieldName)
getFieldOrdinal
in interface SaffronType
public SaffronField[] getFields()
SaffronType
getFields
in interface SaffronType
public SaffronType getComponentType()
SaffronType
getComponentType
in interface SaffronType
public SaffronType getArrayType()
SaffronType
getArrayType
in interface SaffronType
public boolean isJoin()
SaffronType
isJoin
in interface SaffronType
public SaffronType[] getJoinTypes()
SaffronType
getJoinTypes
in interface SaffronType
public boolean isProject()
isProject
in interface SaffronType
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
protected abstract String computeDigest()
public boolean equalsSansNullability(SaffronType type)
SaffronType
equalsSansNullability
in interface SaffronType
public void format(Object value, PrintWriter pw)
SaffronType
format
in interface SaffronType
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |