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 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