public interface ClassInfoLoader
| Modifier and Type | Method and Description |
|---|---|
ClassInfo |
loadClass(java.lang.String name)
Load a class.
|
ClassInfo |
newClass(int modifiers,
int classIndex,
int superClassIndex,
int[] interfaceIndexes,
java.util.List constants)
Creates a new class or interface.
|
java.io.OutputStream |
outputStreamFor(ClassInfo info)
Returns an
OutputStream to which a class should be
written. |
ClassInfo loadClass(java.lang.String name) throws java.lang.ClassNotFoundException
name - The name of the class to load, including the package name.java.lang.ClassNotFoundException - The class cannot be found in the class path.ClassInfoClassInfo newClass(int modifiers, int classIndex, int superClassIndex, int[] interfaceIndexes, java.util.List constants)
modifiers - The modifiers describing the newly-created classclassIndex - The index of the name of the newly-created class in its
constant poolsuperClassIndex - The index of the name of the newly-created class's superclass
in its constant poolinterfaceIndexes - The indexes of the names of the interfaces that the
newly-created class implementsconstants - The constant pool for the newly created class (a list of
Constants).java.io.OutputStream outputStreamFor(ClassInfo info) throws java.io.IOException
OutputStream to which a class should be
written.java.io.IOException