|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springsource.loaded.ClassRenamer
public class ClassRenamer
Modify a class by changing it from one name to another. References to other types can also be changed. Basically used in the test suite.
| Constructor Summary | |
|---|---|
ClassRenamer()
|
|
| Method Summary | |
|---|---|
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). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassRenamer()
| Method Detail |
|---|
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"
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||