|
||||||||||
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.ResourceFinderIClassLoader
public class ResourceFinderIClassLoader
This IClassLoader
loads IClasses through a
a ResourceFinder
that designates
ClassFile
s.
Field Summary |
---|
Fields inherited from class org.codehaus.janino.IClassLoader |
---|
BOOLEAN, BYTE, CHARACTER, CLASS, CLONEABLE, DOUBLE, ERROR, FLOAT, INTEGER, LONG, OBJECT, RUNTIME_EXCEPTION, SERIALIZABLE, SHORT, STRING, THROWABLE |
Constructor Summary | |
---|---|
ResourceFinderIClassLoader(ResourceFinder resourceFinder,
IClassLoader optionalParentIClassLoader)
|
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. |
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 ResourceFinderIClassLoader(ResourceFinder resourceFinder, IClassLoader optionalParentIClassLoader)
Method Detail |
---|
protected IClass findIClass(java.lang.String descriptor) throws java.lang.ClassNotFoundException
IClassLoader
IClass
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 IClassLoader
null
if a class with that descriptor could not be found
java.lang.ClassNotFoundException
- if an exception was raised while loading the class
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |