Package org.python.core
Class BytecodeLoader.Loader
java.lang.Object
java.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
org.python.core.BytecodeLoader.Loader
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
- BytecodeLoader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addParent
(ClassLoader referent) Add given loader at the front of the list of the parent list (if notnull
).Class<?>
loadClassFromBytes
(String name, byte[] data) Define the named class using the class file data provided, and resolve it.Methods inherited from class java.net.URLClassLoader
close, findResource, findResources, getResourceAsStream, getURLs, newInstance, newInstance
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, getDefinedPackage, getDefinedPackages, getName, getParent, getPlatformClassLoader, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus
-
Constructor Details
-
Loader
public Loader()
-
-
Method Details
-
addParent
Add given loader at the front of the list of the parent list (if notnull
). -
loadClassFromBytes
Define the named class using the class file data provided, and resolve it. (See JVM specification.) For class names ending "$py", this method may adjust that name to that found in the class file itself.- Parameters:
name
- fully-qualified binary name of the classdata
- a class file as a byte array- Returns:
- the defined and resolved class
-