Package org.mozilla.javascript
Class DefiningClassLoader
java.lang.Object
java.lang.ClassLoader
org.mozilla.javascript.DefiningClassLoader
- All Implemented Interfaces:
GeneratedClassLoader
Load generated classes.
- Author:
- Norris Boyd
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findClass, findLibrary, findLoadedClass, findResource, findResource, findResources, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
Constructor Details
-
DefiningClassLoader
public DefiningClassLoader() -
DefiningClassLoader
-
-
Method Details
-
defineClass
Description copied from interface:GeneratedClassLoader
Define a new Java class. Classes created via this method should have the same class loader.- Specified by:
defineClass
in interfaceGeneratedClassLoader
- Parameters:
name
- fully qualified class namedata
- class byte code- Returns:
- new class object
-
linkClass
Description copied from interface:GeneratedClassLoader
Link the given class.- Specified by:
linkClass
in interfaceGeneratedClassLoader
- Parameters:
cl
- Class instance returned from the previous call toGeneratedClassLoader.defineClass(String, byte[])
- See Also:
-
loadClass
- Overrides:
loadClass
in classClassLoader
- Throws:
ClassNotFoundException
-