Package org.python.core
Class BytecodeNotification
java.lang.Object
org.python.core.BytecodeNotification
Notifies registered callbacks if new bytecode is loaded.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Interface for callbacks. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
clear()
Clears all the registered callbacksstatic void
Notifies that the new bytecode to the registered callbacksstatic void
Registers the class as a callbackstatic boolean
Unregisters the callback object
-
Constructor Details
-
BytecodeNotification
public BytecodeNotification()
-
-
Method Details
-
register
Registers the class as a callback- Parameters:
n
- the callback object
-
unregister
Unregisters the callback object- Parameters:
n
- the callback object- Returns:
- true if successfully removed and false if the callback object was not registered
-
clear
public static void clear()Clears all the registered callbacks -
notify
Notifies that the new bytecode to the registered callbacks- Parameters:
name
- the name of the class of the new bytecodedata
- raw byte data of the classklass
- Java class object of the new bytecode
-