public class Transformer extends Object
| Constructor and Description |
|---|
Transformer() |
| Modifier and Type | Method and Description |
|---|---|
void |
loadRules(ClassLoader cl) |
void |
loadRules(Collection<? extends ClassLoader> loaders)
Scans the rewrite instructions and prepare to rewrite classes that refer to them
accordingly.
|
byte[] |
transform(String className,
byte[] image) |
public void loadRules(ClassLoader cl) throws IOException
IOExceptionpublic void loadRules(Collection<? extends ClassLoader> loaders) throws IOException
IOExceptionpublic byte[] transform(String className, byte[] image)
className - Binary name of the class, such as "java.security.KeyStore$Builder$FileBuilder$1"image - Class file image loaded from the disk.Copyright © 2004-2013. All Rights Reserved.