Package org.codehaus.groovy.tools

# Class GroovyClass

java.lang.Object
org.codehaus.groovy.tools.GroovyClass

public class GroovyClass extends Object
Holds the binary form of a compiled Groovy class.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final GroovyClass[]`
  `EMPTY_ARRAY`
  Shared empty array instance.

- ## Constructor Summary

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

- ## Method Summary

  Modifier and Type
  Method
  Description
  `byte[]`
  `getBytes()`
  Returns the compiled class bytes.
  `String`
  `getName()`
  Returns the binary class name.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### EMPTY_ARRAY

    public static final GroovyClass[] EMPTY_ARRAY
    Shared empty array instance.

- ## Constructor Details

  - ### GroovyClass

    public GroovyClass(String name, byte[] bytes)
    Creates a compiled-class holder.
    Parameters:
      `name` - the binary class name
      `bytes` - the compiled class bytes

- ## Method Details

  - ### getName

    public String getName()
    Returns the binary class name.
    Returns:
      the class name

  - ### getBytes

    public byte[] getBytes()
    Returns the compiled class bytes.
    Returns:
      the class bytes