Instrumentation.redefineClasses method.
Serves to bind the Class that needs redefining together with the new class file bytes.
java.lang.instrument.Instrumentation#redefineClasses
| Modifier and Type | Field and Description |
|---|---|
| private final Class | mClass
The class to redefine |
| private final byte[] | mClassFile
The replacement class file bytes |
| Access | Constructor and Description |
|---|---|
| public | ClassDefinition(Class<?>
the theClass, byte[] Class that needs redefiningthe new class file bytes theClassFile)Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| public Class | |
| public byte[] | Returns: the class file bytes.Returns the array of bytes that contains the new class file. |
| mClass | back to summary |
|---|---|
| private final Class<?> mClass The class to redefine | |
| mClassFile | back to summary |
|---|---|
| private final byte[] mClassFile The replacement class file bytes | |
| ClassDefinition | back to summary |
|---|---|
| public ClassDefinition(Class<?> theClass, byte[] theClassFile) Creates a new
| |
| getDefinitionClass | back to summary |
|---|---|
| public Class Returns the class.
| |
| getDefinitionClassFile | back to summary |
|---|---|
| public byte[] getDefinitionClassFile() Returns the array of bytes that contains the new class file.
| |