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

Nested Class Summary
private  class OJTypeFactoryImpl.OJScalarType
          Type based upon an OJClass.
 
Nested classes inherited from class net.sf.saffron.core.SaffronTypeFactoryImpl
SaffronTypeFactoryImpl.CrossType, SaffronTypeFactoryImpl.FieldImpl, SaffronTypeFactoryImpl.JavaType, SaffronTypeFactoryImpl.RecordType
 
Nested classes inherited from class net.sf.saffron.core.SaffronTypeFactory
SaffronTypeFactory.FieldInfo
 
Field Summary
private  HashMap mapOJClassToType
           
 
Fields inherited from class net.sf.saffron.core.SaffronTypeFactoryImpl
 
Constructor Summary
OJTypeFactoryImpl()
          Creates an OJTypeFactoryImpl.
 
Method Summary
 SaffronType createJavaType(Class clazz)
          Creates a type which encapsulates a Java class.
 SaffronType createTypeForExpression(SaffronRel rel, Expression exp)
           
 OJClass toOJClass(OJClass declarer, SaffronType type)
           
 SaffronType toType(OJClass ojClass)
           
 
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
 
Methods inherited from interface net.sf.saffron.core.SaffronTypeFactory
createJoinType, createProjectType, createProjectType, createSqlType, createSqlType, createSqlType, createTypeWithNullability, leastRestrictive
 

Field Detail

mapOJClassToType

private final HashMap mapOJClassToType
Constructor Detail

OJTypeFactoryImpl

public OJTypeFactoryImpl()
Creates an OJTypeFactoryImpl.

Method Detail

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

SourceForge.net_Logo