Uses of Class
mockit.asm.classes.ClassReader
Packages that use ClassReader
Package
Description
Contains the classes that implement the internal mechanisms of the toolkit, and as such are not intended for direct
use in client code.
-
Uses of ClassReader in mockit.asm.classes
Constructors in mockit.asm.classes with parameters of type ClassReaderModifierConstructorDescriptionClassWriter
(ClassReader classReader) Initializes a new class writer, applying the following two optimizations that are useful for "mostly add" bytecode transformations: The constant pool from the original class is copied as is in the new class, which saves time. -
Uses of ClassReader in mockit.asm.fields
Constructors in mockit.asm.fields with parameters of type ClassReader -
Uses of ClassReader in mockit.asm.methods
Constructors in mockit.asm.methods with parameters of type ClassReader -
Uses of ClassReader in mockit.internal
Methods in mockit.internal that return ClassReaderModifier and TypeMethodDescriptionstatic ClassReader
ClassFile.createClassReader
(ClassLoader cl, String internalClassName) static ClassReader
ClassFile.createReaderFromLastRedefinitionIfAny
(Class<?> aClass) static ClassReader
ClassFile.createReaderOrGetFromCache
(Class<?> aClass) Constructors in mockit.internal with parameters of type ClassReader -
Uses of ClassReader in mockit.internal.capturing
Methods in mockit.internal.capturing with parameters of type ClassReaderModifier and TypeMethodDescriptionprotected abstract BaseClassModifier
CaptureOfImplementations.createModifier
(ClassLoader cl, ClassReader cr, Class<?> baseType, M typeMetadata) -
Uses of ClassReader in mockit.internal.classGeneration
Methods in mockit.internal.classGeneration with parameters of type ClassReaderModifier and TypeMethodDescriptionprotected ClassVisitor
ConcreteSubclass.createMethodBodyGenerator
(ClassReader typeReader) protected abstract ClassVisitor
ImplementationClass.createMethodBodyGenerator
(ClassReader cr) Constructors in mockit.internal.classGeneration with parameters of type ClassReaderModifierConstructorDescriptionprotected
BaseSubclassGenerator
(Class<?> baseClass, ClassReader cr, Type genericMockedType, String subclassName, boolean copyConstructors) -
Uses of ClassReader in mockit.internal.expectations.mocking
Methods in mockit.internal.expectations.mocking with parameters of type ClassReaderModifier and TypeMethodDescriptionprotected BaseClassModifier
CaptureOfNewInstances.createModifier
(ClassLoader cl, ClassReader cr, Class<?> baseType, MockedType typeMetadata) Constructors in mockit.internal.expectations.mocking with parameters of type ClassReaderModifierConstructorDescriptionInterfaceImplementationGenerator
(ClassReader cr, Type mockedType, String implementationClassName) SubclassGenerationModifier
(Class<?> baseClass, Type mockedType, ClassReader cr, String subclassName, boolean copyConstructors) -
Uses of ClassReader in mockit.internal.faking
Methods in mockit.internal.faking with parameters of type ClassReaderModifier and TypeMethodDescriptionprotected BaseClassModifier
CaptureOfFakedImplementations.createModifier
(ClassLoader cl, ClassReader cr, Class<?> baseType, Void typeMetadata)