Class _bytecodetools

java.lang.Object
org.python.modules._bytecodetools

public class _bytecodetools extends Object
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 Details

  • Constructor Details

    • _bytecodetools

      public _bytecodetools()
  • Method Details

    • register

      public static void register(PyObject callback)
      Registers a python callback function that will be notified on bytecode loading.
      Parameters:
      callback - a Python callback function
    • unregister

      public static boolean unregister(PyObject callback)
      Unregisters a python callback function.
      Parameters:
      callback - a Python callback function
    • clear

      public static void clear()
      Clears all the registered callbacks.