Class ClassCreator

  extended byorg.multijava.mjc.ClassCreator

public class ClassCreator
extends Object

A factory class to create classes.

Field Summary
private static ClassCreator theInstance
          The unique instance of this class.
Constructor Summary
protected ClassCreator()
          Creates a new instance.
Method Summary
 CBinaryField createBinaryField(CClass owner, FieldInfo fieldInfo)
          Creates a binary field object.
 CBinaryMethod createBinaryMethod(CClass owner, MethodInfo methodInfo, CClassContextType declCtx)
          Creates a binary method object.
 MemberAccess createMemberAccess(CClass owner, CMemberHost host, ClassInfo classInfo)
          Creates a member access object.
static ClassCreator getInstance()
          Returns the unique intance of this class.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail


private static final ClassCreator theInstance
The unique instance of this class.

Constructor Detail


protected ClassCreator()
Creates a new instance. This constructor is private to implement the Singleton pattern.

Method Detail


public CBinaryField createBinaryField(CClass owner,
                                      FieldInfo fieldInfo)
Creates a binary field object.


public CBinaryMethod createBinaryMethod(CClass owner,
                                        MethodInfo methodInfo,
                                        CClassContextType declCtx)
Creates a binary method object.


public MemberAccess createMemberAccess(CClass owner,
                                       CMemberHost host,
                                       ClassInfo classInfo)
Creates a member access object.


public static ClassCreator getInstance()
Returns the unique intance of this class.


mjc is Copyright (C) 2000-2004 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. mjc is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.