Module Simula

Class ByteCodeEngineering

java.lang.Object
simula.compiler.byteCodeEngineering.ByteCodeEngineering

public final class ByteCodeEngineering extends Object
Based on the 'ASM' Java bytecode manipulation and analysis framework.

Main page: https://asm.ow2.io/index.html

Wikipedia: https://en.wikipedia.org/wiki/ObjectWeb_ASM

Link to GitHub: Source File.

Author:
Øystein Myhre Andersen
  • Field Details

  • Constructor Details

    • ByteCodeEngineering

      public ByteCodeEngineering()
      Create a new ByteCodeEngineering.
  • Method Details

    • doRepairSingleByteCode

      public void doRepairSingleByteCode(String classFileName)
      Repair a single .class file.
      Parameters:
      classFileName - the .class file name
    • dumpToFile

      private void dumpToFile(byte[] bytes, String classFileName)
      Dump bytes to the given class file
      Parameters:
      bytes - the bytes
      classFileName - the class file