|
Web Site | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.ClassLoader
org.codehaus.janino.ByteArrayClassLoader
This ClassLoader
allows for the loading of a set of JavaTM classes
provided in class file format.
Constructor Summary | |
ByteArrayClassLoader(Map classes)
The given Map of classes must not be modified afterwards. |
|
ByteArrayClassLoader(Map classes,
ClassLoader parent)
|
Method Summary | |
boolean |
equals(ByteArrayClassLoader that)
Two ByteArrayClassLoader s are regarded equal iff
Both have the same parent ClassLoader
Exactly the same classes (name, bytecode) were added to both
Roughly speaking, equal ByteArrayClassLoader s will return functionally identical
Class es on ClassLoader.loadClass(java.lang.String) . |
boolean |
equals(Object that)
An object is regarded equal to this iff
It is an instance of ByteArrayClassLoader
equals(ByteArrayClassLoader) returns true
|
protected Class |
findClass(String name)
Implements ClassLoader.findClass(String) . |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ByteArrayClassLoader(Map classes)
Map
of classes must not be modified afterwards.
classes
- String className => byte[] datapublic ByteArrayClassLoader(Map classes, ClassLoader parent)
ByteArrayClassLoader(Map)
Method Detail |
protected Class findClass(String name) throws ClassNotFoundException
ClassLoader.findClass(String)
.
Notice that, although nowhere documented, no more than one thread at a time calls this
method, because ClassLoader.loadClass(java.lang.String)
is
synchronized
.
ClassNotFoundException
public boolean equals(Object that)
this
iff
ByteArrayClassLoader
equals(ByteArrayClassLoader)
returns true
equals(ByteArrayClassLoader)
public boolean equals(ByteArrayClassLoader that)
ByteArrayClassLoader
s are regarded equal iff
ClassLoader
ByteArrayClassLoader
s will return functionally identical
Class
es on ClassLoader.loadClass(java.lang.String)
.
public int hashCode()
|
Web Site | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |