public final class ClassDefinition extends Object
Instrumentation.redefineClasses(java.lang.instrument.ClassDefinition[])
Constructor and Description |
---|
ClassDefinition(Class<?> theClass,
byte[] theClassFile) |
public ClassDefinition(Class<?> theClass, byte[] theClassFile)
theClass
- the Class that will be redefinedtheClassFile
- the new class fileNullPointerException
- if one of the argument is nullpublic Class<?> getDefinitionClass()
public byte[] getDefinitionClassFile()