java.lang.instrument
Class ClassDefinition
java.lang.Object
java.lang.instrument.ClassDefinition
public final class ClassDefinition
- extends Object
This class binds a class that will be redefined with a new
class file.
- Since:
- 1.5
- See Also:
Instrumentation.redefineClasses(java.lang.instrument.ClassDefinition[])
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassDefinition
public ClassDefinition(Class<?> theClass,
byte[] theClassFile)
- Parameters:
theClass
- the Class that will be redefinedtheClassFile
- the new class file
- Throws:
NullPointerException
- if one of the argument is null
getDefinitionClass
public Class<?> getDefinitionClass()
- Returns:
- the Class
getDefinitionClassFile
public byte[] getDefinitionClassFile()
- Returns:
- the bytes