net.janino
Class ClassLoaderIClassLoader
java.lang.Object
|
+--net.janino.IClassLoader
|
+--net.janino.ClassLoaderIClassLoader
- public class ClassLoaderIClassLoader
- extends IClassLoader
An IClassLoader
that loads IClass
es through a reflection
ClassLoader
.
Fields inherited from class net.janino.IClassLoader |
BOOLEAN, BYTE, CHAR, CLASS, CLONEABLE, DOUBLE, ERROR, FLOAT, INT, LONG, OBJECT, RUNTIME_EXCEPTION, SERIALIZABLE, SHORT, STRING, THROWABLE, VOID |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassLoaderIClassLoader
public ClassLoaderIClassLoader(java.lang.ClassLoader classLoader)
ClassLoaderIClassLoader
public ClassLoaderIClassLoader()
- Equivalent to
ClassLoaderIClassLoader(Thread.currentThread().getContextClassLoader())
getClassLoader
public java.lang.ClassLoader getClassLoader()
findIClass
protected IClass findIClass(java.lang.String type)
throws java.lang.ClassNotFoundException
- Find a new
IClass
by descriptor.
- Overrides:
findIClass
in class IClassLoader
defineIClass
public IClass defineIClass(java.lang.Class clazz)
- Similar to
IClassLoader.loadIClass(String)
, but loads the IClass
by java.lang.Class
rather than by descriptor.
Ensures that there is a one-to-one mapping of IClass
and
java.lang.Class
objects.
- Parameters:
clazz
- - Returns:
- The
IClass
object that wraps the Class
object