Class CompositeClassInformationRepository
java.lang.Object
com.offbynull.coroutines.instrumenter.asm.CompositeClassInformationRepository
- All Implemented Interfaces:
ClassInformationRepository
public final class CompositeClassInformationRepository
extends Object
implements ClassInformationRepository
Combines multiple
ClassInformationRepository objects into one.- Author:
- Kasra Faghihi
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetInformation(String internalClassName) Get information for a class.
-
Constructor Details
-
CompositeClassInformationRepository
Constructs aClassLoaderClassInformationRepositoryobject.- Parameters:
repos- class information repositories- Throws:
NullPointerException- if any argument isnullIllegalArgumentException- ifreposcontainsnull
-
-
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
-