java.lang.instrument

Class 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: (java.lang.instrument.ClassDefinition[])

Constructor Summary
ClassDefinition(Class<?> theClass, byte[] theClassFile)
Method Summary
Class<?>getDefinitionClass()
byte[]getDefinitionClassFile()

Constructor Detail

ClassDefinition

public ClassDefinition(Class<?> theClass, byte[] theClassFile)

Parameters: theClass the Class that will be redefined theClassFile the new class file

Throws: NullPointerException if one of the argument is null

Method Detail

getDefinitionClass

public Class<?> getDefinitionClass()

Returns: the Class

getDefinitionClassFile

public byte[] getDefinitionClassFile()

Returns: the bytes