net.sf.saffron.oj
Class OJTypeFactoryImpl
java.lang.Object
|
+--net.sf.saffron.core.SaffronTypeFactoryImpl
|
+--net.sf.saffron.oj.OJTypeFactoryImpl
- All Implemented Interfaces:
- OJTypeFactory, SaffronTypeFactory
- public class OJTypeFactoryImpl
- extends SaffronTypeFactoryImpl
- implements OJTypeFactory
Implementation of SaffronTypeFactory
based upon OpenJava's type
system.
- Since:
- May 30, 2003
- Version:
- $Id: //open/saffron/src/net/sf/saffron/oj/OJTypeFactoryImpl.java#7 $
- Author:
- jhyde
- See Also:
OJClass
,
SaffronTypeFactory
Methods inherited from class net.sf.saffron.core.SaffronTypeFactoryImpl |
canonize, createJoinType, createProjectType, createProjectType, createSqlType, createSqlType, createSqlType, createTypeWithNullability, getComponentType, leastRestrictive, setThreadInstance, threadInstance |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mapOJClassToType
private final HashMap mapOJClassToType
OJTypeFactoryImpl
public OJTypeFactoryImpl()
- Creates an
OJTypeFactoryImpl
.
createJavaType
public SaffronType createJavaType(Class clazz)
- Description copied from interface:
SaffronTypeFactory
- Creates a type which encapsulates a Java class.
- Specified by:
createJavaType
in interface SaffronTypeFactory
- Overrides:
createJavaType
in class SaffronTypeFactoryImpl
createTypeForExpression
public SaffronType createTypeForExpression(SaffronRel rel,
Expression exp)
toOJClass
public OJClass toOJClass(OJClass declarer,
SaffronType type)
- Specified by:
toOJClass
in interface OJTypeFactory
toType
public SaffronType toType(OJClass ojClass)
- Specified by:
toType
in interface OJTypeFactory