org.apidesign.vm4brwsr.api

## Class VM

- java.lang.Object
- - org.apidesign.vm4brwsr.api.VM

-     public final class VM
      extends Object

  Utility methods to talk to the Bck2Brwsr virtual machine.
  Since:
    0.9
  Author:
    Jaroslav Tulach

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `reload(Class<?> clazz, byte[] byteCode)` Takes an existing class and replaces its existing byte code with new one.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### reload

          public static void reload(Class<?> clazz,
                                    byte[] byteCode)
                             throws IOException

      Takes an existing class and replaces its existing byte code with new one.
      Parameters:
        `clazz` - existing class to reload
        `byteCode` - new bytecode
      Throws:
        `IOException` - an exception is something goes wrong

Copyright © 2025 API Design. All Rights Reserved.