|
Préférences
Moteurs de recherche
|
||||||||||||
JavaTM 2 Platform Std. Ed. v1.5.0
java.lang.instrument
|
Constructor Summary | |
---|---|
ClassDefinition(Class<?> theClass,
byte[] theClassFile)
Creates a new ClassDefinition binding using the supplied
class and class file bytes. |
Method Summary | |
---|---|
Class<?> |
getDefinitionClass()
Returns the class. |
byte[] |
getDefinitionClassFile()
Returns the array of bytes that contains the new class file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClassDefinition(Class<?> theClass, byte[] theClassFile)
ClassDefinition
binding using the supplied
class and class file bytes. Does not copy the supplied buffer, just captures a reference to it.
theClass
- the Class
that needs redefiningtheClassFile
- the new class file bytes
NullPointerException
- if the supplied class or array is null
.Method Detail |
---|
public Class<?> getDefinitionClass()
Class
object referred to.public byte[] getDefinitionClassFile()