Package: org.codehaus.groovy.tools

## [Java] Class GroovyClass

- org.codehaus.groovy.tools.GroovyClass

-     public class GroovyClass
      extends Object

  Holds the binary form of a compiled Groovy class.

- - ### Field Summary

    Fields
    Modifiers | Name | Description
    --- | --- | ---
    `static GroovyClass[]` | `EMPTY_ARRAY` | Shared empty array instance.

  - ### Constructor Summary

    Constructors
    Constructor and description
    `GroovyClass(String name, byte[] bytes)` Creates a compiled-class holder.

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public byte[]` | `getBytes()` Returns the compiled class bytes.
    `` | `public String` | `getName()` Returns the binary class name.

  - ### 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 GroovyClass[] EMPTY_ARRAY

      Shared empty array instance.

  - ### Constructor Detail

    - #### public GroovyClass(String name, byte[] bytes)

      Creates a compiled-class holder.

      Parameters:
        `name` - the binary class name
        `bytes` - the compiled class bytes

  - ### Method Detail

    - #### public byte[] getBytes()

      Returns the compiled class bytes.

      Returns:
        the class bytes

    - #### public String getName()

      Returns the binary class name.

      Returns:
        the class name