| |
|
| java.lang.Object java.lang.instrument.ClassDefinition
ClassDefinition | final public class ClassDefinition (Code) | | Wraps a
java.lang.Class that is to be redefined together with the
byte array which constitutes the updated version of the class.
|
Constructor Summary | |
public | ClassDefinition(Class> theClass, byte[] theClassFile) Constructs a new instance of ClassDefinition with the
supplied
Class object and byte array representing the new class
file bytes. |
ClassDefinition | public ClassDefinition(Class> theClass, byte[] theClassFile)(Code) | | Constructs a new instance of ClassDefinition with the
supplied
Class object and byte array representing the new class
file bytes.
Parameters: theClass - the Class object for the class to be redefined Parameters: theClassFile - an array of bytes containing the updated version of the classto be redefined. throws: NullPointerException - if either theClass ortheClassFile are null . |
getDefinitionClass | public Class> getDefinitionClass()(Code) | | Returns the
Class object for the class to be redefined.
the Class object |
getDefinitionClassFile | public byte[] getDefinitionClassFile()(Code) | | Returns a reference to the byte array containing the re-engineered
version of the class.
byte array containing the new version of the class |
|
|
|