Class _bytecodetools


  • public class _bytecodetools
    extends java.lang.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 Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String __doc__  
      static java.lang.String __name__  
    • Constructor Summary

      Constructors 
      Constructor Description
      _bytecodetools()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void clear()
      Clears all the registered callbacks.
      static void register​(PyObject callback)
      Registers a python callback function that will be notified on bytecode loading.
      static boolean unregister​(PyObject callback)
      Unregisters a python callback function.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • _bytecodetools

        public _bytecodetools()
    • Method Detail

      • 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.