public class Bytecode
extends Object
Bytecode with class name.
- Since:
- 1.0
- Author:
- Alain Stalder, Made in Switzerland.
-
Constructor Summary
Constructors
constructor from class name and bytecode bytes.
-
Method Summary
byte[]
returns a string suitable for logging.
-
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
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
returns a string suitable for logging.
- Overrides:
toString in class Object
- Returns:
- a string suitable for logging
- Since:
- 1.0