|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.ClassLoader
org.biojava.utils.bytecode.GeneratedClassLoader
public class GeneratedClassLoader
A class loader that actually produces real Java classes from GeneratedCodeClass instances.
Constructor Summary | |
---|---|
GeneratedClassLoader()
Create a new loader with the default parent. |
|
GeneratedClassLoader(ClassLoader parent)
Create a new loader with an explicitly set parent class loader. |
Method Summary | |
---|---|
Class |
defineClass(GeneratedCodeClass cc)
Define a class based upon a GeneratedCodeClass. |
boolean |
hasGeneratedClass(String name)
Discover if a class for this name has already been defined by this class loader. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GeneratedClassLoader()
public GeneratedClassLoader(ClassLoader parent)
parent
- the parent ClassLoaderMethod Detail |
---|
public Class defineClass(GeneratedCodeClass cc) throws CodeException
cc
- the GeneratedCodeClass to define
CodeException
- if there was a failure defining the classpublic boolean hasGeneratedClass(String name)
name
- the name of the class
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |