java.lang.instrument.ClassDefinition
Wraps a Class that is to be redefined together with the
byte array which constitutes the updated version of the class.
Summary
Public Constructors
Public Methods
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Public Constructors
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.
Parameters
| theClass
| the Class object for the class to be redefined |
| theClassFile
| an array of bytes containing the updated version of the class
to be redefined. |
Public Methods
public
Class
getDefinitionClass()
Returns the
Class object for the class to be redefined.
public
byte[]
getDefinitionClassFile()
Returns a reference to the byte array containing the re-engineered
version of the class.
Returns
- byte array containing the new version of the class