JML

org.multijava.util.classfile
Class ClassInfoCreator

java.lang.Object
  extended byorg.multijava.util.classfile.ClassInfoCreator

public class ClassInfoCreator
extends Object

A factory class to create class info objects.


Field Summary
private static ClassInfoCreator theInstance
          The unique instance of this class.
 
Constructor Summary
protected ClassInfoCreator()
          Creates a new instance.
 
Method Summary
 ClassInfo createClassInfo(DataInput data, boolean interfaceOnly)
          Creates a class info object by reading bytecode from the data input stream data.
 FieldInfo createFieldInfo(DataInput data, ConstantPool cp)
          Creates a field info object by reading bytecode from the data input stream data.
 MethodInfo createMethodInfo(DataInput data, ConstantPool cp, boolean interfaceOnly)
          Creates a method info object by reading bytecode from the data input stream data.
static ClassInfoCreator 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

theInstance

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

Constructor Detail

ClassInfoCreator

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

Method Detail

createClassInfo

public ClassInfo createClassInfo(DataInput data,
                                 boolean interfaceOnly)
                          throws IOException,
                                 ClassFileFormatException
Creates a class info object by reading bytecode from the data input stream data.

Throws:
IOException
ClassFileFormatException

createFieldInfo

public FieldInfo createFieldInfo(DataInput data,
                                 ConstantPool cp)
                          throws IOException,
                                 ClassFileFormatException
Creates a field info object by reading bytecode from the data input stream data.

Throws:
IOException
ClassFileFormatException

createMethodInfo

public MethodInfo createMethodInfo(DataInput data,
                                   ConstantPool cp,
                                   boolean interfaceOnly)
                            throws IOException,
                                   ClassFileFormatException
Creates a method info object by reading bytecode from the data input stream data.

Throws:
IOException
ClassFileFormatException

getInstance

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


JML

JML is Copyright (C) 1998-2002 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. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.