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.ClassLoader
classLoader
-
Constructor Summary
Constructors Constructor Description ClassLoaderClassInformationRepository(java.lang.ClassLoader classLoader)
Constructs aClassLoaderClassInformationRepository
object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassInformation
getInformation(java.lang.String internalClassName)
Get information for a class.
-
-
-
Constructor Detail
-
ClassLoaderClassInformationRepository
public ClassLoaderClassInformationRepository(java.lang.ClassLoader classLoader)
Constructs aClassLoaderClassInformationRepository
object.- 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:ClassInformationRepository
Get 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:
getInformation
in interfaceClassInformationRepository
- Parameters:
internalClassName
- internal class name- Returns:
- information for that class, or
null
if not found
-
-