Class Bytecode

java.lang.Object
org.apache.bsf.util.event.generator.Bytecode

public class Bytecode extends Object
Bytecode handling utilities Handle standard byte arrays as defined in Java VM and Class File 5 April 1999 - functions to append Class File byte subarrays into a Class File byte array
Author:
Richard F. Boehme
  • Field Details

  • Constructor Details

    • Bytecode

      public Bytecode()
  • Method Details

    • addClass

      public static byte[] addClass(byte[] array, short value)
    • addFieldRef

      public static byte[] addFieldRef(byte[] array, short value1, short value2)
    • addInteger

      public static byte[] addInteger(byte[] array, int value)
    • addInterfaceMethodRef

      public static byte[] addInterfaceMethodRef(byte[] array, short value1, short value2)
    • addLong

      public static byte[] addLong(byte[] array, long value)
    • addMethodRef

      public static byte[] addMethodRef(byte[] array, short value1, short value2)
    • addNameAndType

      public static byte[] addNameAndType(byte[] array, short value1, short value2)
    • addRef

      public static byte[] addRef(byte refType, byte[] array, short value)
    • addRef

      public static byte[] addRef(byte refType, byte[] array, short value1, short value2)
    • addString

      public static byte[] addString(byte[] array, short value)
    • addUtf8

      public static byte[] addUtf8(byte[] array, String value)