Package org.mozilla.javascript
Interface GeneratedClassLoader
- All Known Implementing Classes:
DefiningClassLoader
public interface GeneratedClassLoader
Interface to define classes from generated byte code.
-
Method Summary
Modifier and TypeMethodDescriptionClass
<?> defineClass
(String name, byte[] data) Define a new Java class.void
Link the given class.
-
Method Details
-
defineClass
Define a new Java class. Classes created via this method should have the same class loader.- Parameters:
name
- fully qualified class namedata
- class byte code- Returns:
- new class object
-
linkClass
Link the given class.- Parameters:
cl
- Class instance returned from the previous call todefineClass(String, byte[])
- See Also:
-