Loader.
The users can define a class implementing this
interface and attach an instance of that class to a
Loader object so that it can translate a class file
when the class file is loaded into the JVM.
Loader#addTranslator(ClassPool, Translator)
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void |
| onLoad | back to summary |
|---|---|
| public void onLoad(ClassPool pool, String classname) throws NotFoundException, CannotCompileException Is invoked by a pool.get(classname).toBytecode()to read the class file after onLoad() returns.
| |
| start | back to summary |
|---|---|
| public void start(ClassPool pool) throws NotFoundException, CannotCompileException Is invoked by a
| |