Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.mozilla.javascript
Interface GeneratedClassLoader

    public interface GeneratedClassLoader

Interface to define classes from generated byte code.

Method Summary
`java.lang.Class` | `defineClass(java.lang.String name, byte[] data)` Define a new Java class.
`void` | `linkClass(java.lang.Class cl)` Link the given class.

Method Detail

### defineClass

    java.lang.Class defineClass(java.lang.String name,
                                byte[] data)

  Define a new Java class. Classes created via this method should have the same class loader.

  Parameters:
    `name` - fully qualified class name
    `data` - class byte code
  Returns:
    new class object

### linkClass

    void linkClass(java.lang.Class cl)

  Link the given class.

  Parameters:
    `cl` - Class instance returned from the previous call to `defineClass(String, byte[])`
  See Also:
    `ClassLoader.resolveClass(Class)`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD