public class ClassRenamer
extends java.lang.Object
| Constructor and Description |
|---|
ClassRenamer() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
rename(java.lang.String dottedNewName,
byte[] classbytes,
java.lang.String... retargets)
Rename a type - changing it to specified new name (which should be the dotted form of the name).
|
public static byte[] rename(java.lang.String dottedNewName,
byte[] classbytes,
java.lang.String... retargets)
dottedNewName - dotted name, e.g. com.foo.Barclassbytes - the bytecode for the class to be renamedretargets - retarget rules for references, of the form "a.b:b.a","c.d:d.c"