Class ClassLoaderClassInformationRepository
- java.lang.Object
-
- com.offbynull.coroutines.instrumenter.asm.ClassLoaderClassInformationRepository
-
- All Implemented Interfaces:
ClassInformationRepository
public final class ClassLoaderClassInformationRepository extends java.lang.Object implements ClassInformationRepository
Provides information on classes contained within aClassLoader.- See Also:
ClassResourceClassInformationRepository
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.ClassLoaderclassLoader
-
Constructor Summary
Constructors Constructor Description ClassLoaderClassInformationRepository(java.lang.ClassLoader classLoader)Constructs aClassLoaderClassInformationRepositoryobject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassInformationgetInformation(java.lang.String internalClassName)Get information for a class.
-
-
-
Constructor Detail
-
ClassLoaderClassInformationRepository
public ClassLoaderClassInformationRepository(java.lang.ClassLoader classLoader)
Constructs aClassLoaderClassInformationRepositoryobject.- Parameters:
classLoader- classloader to extract information from- Throws:
java.lang.NullPointerException- if any argument isnull
-
-
Method Detail
-
getInformation
public ClassInformation getInformation(java.lang.String internalClassName)
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
-
-