|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dellroad.jc.JCFinder
Gateway into the JC virtual machine for retrieving class files.
| Constructor Summary | |
JCFinder(ClassLoader loader)
Create a new finder that uses the given class loader to pull in not-before-seen class files as necessary. |
|
| Method Summary | |
byte[] |
getClassfile(String className)
Retrieve the class file that is used to define the named class. |
long |
getClassfileHash(String className)
Return the hash of the bytes that would be returned by getClassfile() with the same arguments.
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JCFinder(ClassLoader loader)
| Method Detail |
public byte[] getClassfile(String className)
throws ClassNotFoundException
ClassfileFinder
getClassfile in interface ClassfileFinderclassName - Class name (with slashes, not dots)
ClassNotFoundException - if class is not found
public long getClassfileHash(String className)
throws ClassNotFoundException
ClassfileFindergetClassfile() with the same arguments.
The hash of a class file is defined as the last 16 bytes
of the MD5 of the class file.
getClassfileHash in interface ClassfileFinderclassName - Class name (with slashes, not dots)
ClassNotFoundException - if class is not found
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||