Package org.python.core
Class BytecodeNotification
java.lang.Object
org.python.core.BytecodeNotification
Notifies registered callbacks if new bytecode is loaded.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceInterface for callbacks. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclear()Clears all the registered callbacksstatic voidNotifies that the new bytecode to the registered callbacksstatic voidRegisters the class as a callbackstatic booleanUnregisters 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
-