Class ClassLoaderClassInformationRepository
java.lang.Object
com.offbynull.coroutines.instrumenter.asm.ClassLoaderClassInformationRepository
- All Implemented Interfaces:
ClassInformationRepository
public final class ClassLoaderClassInformationRepository
extends Object
implements ClassInformationRepository
Provides information on classes contained within a
ClassLoader.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionClassLoaderClassInformationRepository(ClassLoader classLoader) Constructs aClassLoaderClassInformationRepositoryobject. -
Method Summary
Modifier and TypeMethodDescriptiongetInformation(String internalClassName) Get information for a class.
-
Field Details
-
classLoader
-
-
Constructor Details
-
ClassLoaderClassInformationRepository
Constructs aClassLoaderClassInformationRepositoryobject.- Parameters:
classLoader- classloader to extract information from- Throws:
NullPointerException- if any argument isnull
-
-
Method Details
-
getInformation
Description copied from interface:ClassInformationRepositoryGet information for a class.This method returns class information as if it were encountered in a class file. In a class file, if the class is an interface, then its superclass is set to
Object. Note that this is different from whatClass.getSuperclass()returns when the class represents an interface (it returnsnull).- Specified by:
getInformationin interfaceClassInformationRepository- Parameters:
internalClassName- internal class name- Returns:
- information for that class, or
nullif not found
-