Package org.python.modules
Class _bytecodetools
java.lang.Object
org.python.modules._bytecodetools
BytecodeTools provides tools for generated JVM bytecode.
This module supports registering a python callback function to be notified when new bytecode is loaded. see also core/BytecodeNotification.java
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
clear()
Clears all the registered callbacks.static void
Registers a python callback function that will be notified on bytecode loading.static boolean
unregister
(PyObject callback) Unregisters a python callback function.
-
Field Details
-
__doc__
- See Also:
-
__name__
- See Also:
-
-
Constructor Details
-
_bytecodetools
public _bytecodetools()
-
-
Method Details
-
register
Registers a python callback function that will be notified on bytecode loading.- Parameters:
callback
- a Python callback function
-
unregister
Unregisters a python callback function.- Parameters:
callback
- a Python callback function
-
clear
public static void clear()Clears all the registered callbacks.
-