Class Bytecode

java.lang.Object
ch.grengine.code.Bytecode

public class Bytecode extends Object
Bytecode with class name.
Since:
1.0
Author:
Alain Stalder, Made in Switzerland.
  • Constructor Details

    • Bytecode

      public Bytecode(String className, byte[] bytes)
      constructor from class name and bytecode bytes.
      Parameters:
      className - class name
      bytes - bytecode bytes
      Throws:
      NullPointerException - if any argument is null
      Since:
      1.0
  • Method Details

    • getClassName

      public String getClassName()
      gets the class name.
      Returns:
      class name
      Since:
      1.0
    • getBytes

      public byte[] getBytes()
      gets the bytecode bytes.
      Returns:
      bytecode bytes
      Since:
      1.0
    • toString

      public String toString()
      returns a string suitable for logging.
      Overrides:
      toString in class Object
      Returns:
      a string suitable for logging
      Since:
      1.0