|
janino.net | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.codehaus.janino.IClassLoader
org.codehaus.janino.ClassLoaderIClassLoader
public class ClassLoaderIClassLoader
An IClassLoader that loads IClasses through a reflection ClassLoader.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
ClassLoaderIClassLoader()
Equivalent to ClassLoaderIClassLoader(Thread.currentThread().getContextClassLoader()) |
|
ClassLoaderIClassLoader(java.lang.ClassLoader classLoader)
|
|
| Method Summary | |
|---|---|
protected IClass |
findIClass(java.lang.String descriptor)
Find a new IClass by descriptor; return null if a class
for that descriptor could not be found. |
java.lang.ClassLoader |
getClassLoader()
|
| Methods inherited from class org.codehaus.janino.IClassLoader |
|---|
createJavacLikePathIClassLoader, defineIClass, loadIClass, postConstruct |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassLoaderIClassLoader(java.lang.ClassLoader classLoader)
classLoader - The delegate that loads the classes.public ClassLoaderIClassLoader()
ClassLoaderIClassLoader(Thread.currentThread().getContextClassLoader())
| Method Detail |
|---|
public java.lang.ClassLoader getClassLoader()
ClassLoader
protected IClass findIClass(java.lang.String descriptor)
throws java.lang.ClassNotFoundException
IClassLoaderIClass by descriptor; return null if a class
for that descriptor could not be found.
Similar ClassLoader.findClass(java.lang.String), this method
must
IClass object from somewhere for the given type
IClassLoader.defineIClass(IClass) with that IClass object as
the argument
IClass object
The format of a descriptor is defined in JVMS 4.3.2. Typical
descriptors are:
I (Integer)
Lpkg1/pkg2/Cls; (Class declared in package)
Lpkg1/pkg2/Outer$Inner; Member class
Notice that this method is never called from more than one thread at a time. In other words, implementations of this method need not be synchronized.
findIClass in class IClassLoadernull if a class with that descriptor could not be found
java.lang.ClassNotFoundException - if an exception was raised while loading the class
|
janino.net | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||