1 *java.lang.instrument.ClassDefinition* *ClassDefinition* This class serves as a
3 public final class ClassDefinition
4 extends |java.lang.Object|
6 |java.lang.instrument.ClassDefinition_Description|
7 |java.lang.instrument.ClassDefinition_Fields|
8 |java.lang.instrument.ClassDefinition_Constructors|
9 |java.lang.instrument.ClassDefinition_Methods|
11 ================================================================================
13 *java.lang.instrument.ClassDefinition_Constructors*
14 |java.lang.instrument.ClassDefinition(Class<?>,byte[])|Creates a new ClassDefin
16 *java.lang.instrument.ClassDefinition_Methods*
17 |java.lang.instrument.ClassDefinition.getDefinitionClass()|Returns the class.
18 |java.lang.instrument.ClassDefinition.getDefinitionClassFile()|Returns the arra
20 *java.lang.instrument.ClassDefinition_Description*
22 This class serves as a parameter block to the Instrumentation.redefineClasses
23 method. Serves to bind the Class that needs redefining together with the new
28 *java.lang.instrument.ClassDefinition(Class<?>,byte[])*
30 public ClassDefinition(
31 java.lang.Class<?> theClass,
34 Creates a new ClassDefinition binding using the supplied class and class file
35 bytes. Does not copy the supplied buffer, just captures a reference to it.
37 theClass - the Class that needs redefining
38 theClassFile - the new class file bytes
40 *java.lang.instrument.ClassDefinition.getDefinitionClass()*
42 public |java.lang.Class|<?> getDefinitionClass()
48 Returns: the Class object referred to.
50 *java.lang.instrument.ClassDefinition.getDefinitionClassFile()*
52 public byte[] getDefinitionClassFile()
54 Returns the array of bytes that contains the new class file.
58 Returns: the class file bytes.