Package: org.codehaus.groovy.classgen.asm

## [Java] Class BytecodeDumper

- org.codehaus.groovy.classgen.asm.BytecodeDumper

- All Implemented Interfaces and Traits:
    BytecodeProcessor

      public class BytecodeDumper
      extends Object
      implements BytecodeProcessor

  A utility class which can be used in test cases to dump generated bytecode.

  Since:
    2.4.0

- - ### Field Summary

    Fields
    Modifiers | Name | Description
    --- | --- | ---
    `static BytecodeDumper` | `STANDARD_ERR` | Dumps generated bytecode to System.err.

  - ### Constructor Summary

    Constructors
    Constructor and description
    `BytecodeDumper(Writer out)` Creates a bytecode dumper that writes to the supplied stream.

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public byte[]` | `processBytecode(String name, byte[] original)` * Transforms the bytecode for a generated class. * * Parameters: `name` - the class name * `original` - the original class bytes * Returns: the processed class bytes

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### public static final BytecodeDumper STANDARD_ERR

      Dumps generated bytecode to System.err.

  - ### Constructor Detail

    - #### public BytecodeDumper(Writer out)

      Creates a bytecode dumper that writes to the supplied stream.

      Parameters:
        `out` - the destination writer

  - ### Method Detail

    - #### public byte[] processBytecode(String name, byte[] original)

      * Transforms the bytecode for a generated class. * *

      Parameters:
        `name` - the class name *
        `original` - the original class bytes *
      Returns:
        the processed class bytes