public class BytecodeDumper
extends Object
implements BytecodeProcessor
A utility class which can be used in test cases to dump generated bytecode.
| Modifiers | Name | Description |
|---|---|---|
static BytecodeDumper |
STANDARD_ERR |
Dumps generated bytecode to System.err. |
| Constructor and description |
|---|
BytecodeDumper(Writer out)Creates a bytecode dumper that writes to the supplied stream. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public byte[] |
processBytecode(String name, byte[] original)* Transforms the bytecode for a generated class. * *
|
Dumps generated bytecode to System.err.
Creates a bytecode dumper that writes to the supplied stream.
out - the destination writer* Transforms the bytecode for a generated class. * *
name - the class name
*original - the original class bytes
*Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.