public class BytecodeNotification
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
BytecodeNotification.Callback
Interface for callbacks.
|
Constructor and Description |
---|
BytecodeNotification() |
Modifier and Type | Method and Description |
---|---|
static void |
clear()
Clears all the registered callbacks
|
static void |
notify(java.lang.String name,
byte[] data,
java.lang.Class klass)
Notifies that the new bytecode to the registered callbacks
|
static void |
register(BytecodeNotification.Callback n)
Registers the class as a callback
|
static boolean |
unregister(BytecodeNotification.Callback n)
Unregisters the callback object
|
public static void register(BytecodeNotification.Callback n)
n
- the callback objectpublic static boolean unregister(BytecodeNotification.Callback n)
n
- the callback objectpublic static void clear()
public static void notify(java.lang.String name, byte[] data, java.lang.Class klass)
name
- the name of the class of the new bytecodedata
- raw byte data of the classklass
- Java class object of the new bytecode