Top Fields Constructors Methods
jnr.ffi.provider.jffi

pack-priv final Class AsmClassLoader

extends ClassLoader
Class Inheritance
Imports
java.util.concurrent.ConcurrentHashMap, .ConcurrentMap

Field Summary

Modifier and TypeField and Description
private final ConcurrentMap<String, Class<T>>

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public Class<T>
defineClass(String name, byte[] b)

protected Class<?>
findClass(String
The binary name of the class
name
)

Overrides java.lang.ClassLoader.findClass.

Finds the class with the specified binary name.
Inherited from java.lang.ClassLoader:
clearAssertionStatusdefineClassdefineClassdefineClassdefineClassdefinePackagefindClassfindLibraryfindLoadedClassfindResourcefindResourcefindResourcesfindSystemClassgetClassLoadingLockgetDefinedPackagegetDefinedPackagesgetNamegetPackagegetPackagesgetParentgetPlatformClassLoadergetResourcegetResourceAsStreamgetResourcesgetSystemClassLoadergetSystemResourcegetSystemResourceAsStreamgetSystemResourcesgetUnnamedModuleisRegisteredAsParallelCapableloadClassloadClassregisterAsParallelCapableresolveClassresourcessetClassAssertionStatussetDefaultAssertionStatussetPackageAssertionStatussetSigners

Field Detail

definedClassesback to summary
private final ConcurrentMap<String, Class<T>> definedClasses

Constructor Detail

AsmClassLoaderback to summary
public AsmClassLoader()
AsmClassLoaderback to summary
public AsmClassLoader(ClassLoader parent)

Method Detail

defineClassback to summary
public Class<T> defineClass(String name, byte[] b)
findClassback to summary
protected Class<?> findClass(String name) throws ClassNotFoundException

Overrides java.lang.ClassLoader.findClass.

Doc from java.lang.ClassLoader.findClass.

Finds the class with the specified binary name. This method should be overridden by class loader implementations that follow the delegation model for loading classes, and will be invoked by the loadClass method after checking the parent class loader for the requested class.

Parameters
name:String

The binary name of the class

Returns:Class<?>

The resulting Class object

Annotations
@Override
Exceptions
ClassNotFoundException:
If the class could not be found