@SuppressSignatureCheck public class InlineBytecodeGenerator extends Object implements BytecodeGenerator, ClassFileTransformer
| Constructor and Description |
|---|
InlineBytecodeGenerator(Instrumentation instrumentation,
WeakConcurrentMap<Object,MockMethodInterceptor> mocks,
DetachedThreadLocal<Map<Class<?>,MockMethodInterceptor>> mockedStatics,
Predicate<Class<?>> isMockConstruction,
ConstructionCallback onConstruction) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearAllCaches() |
<T> Class<? extends T> |
mockClass(org.mockito.internal.creation.bytebuddy.MockFeatures<T> features) |
void |
mockClassConstruction(Class<?> type) |
void |
mockClassStatic(Class<?> type) |
byte[] |
transform(ClassLoader loader,
String className,
Class<?> classBeingRedefined,
ProtectionDomain protectionDomain,
byte[] classfileBuffer) |
public InlineBytecodeGenerator(Instrumentation instrumentation, WeakConcurrentMap<Object,MockMethodInterceptor> mocks, DetachedThreadLocal<Map<Class<?>,MockMethodInterceptor>> mockedStatics, Predicate<Class<?>> isMockConstruction, ConstructionCallback onConstruction)
public <T> Class<? extends T> mockClass(org.mockito.internal.creation.bytebuddy.MockFeatures<T> features)
mockClass in interface BytecodeGeneratorpublic void mockClassStatic(Class<?> type)
mockClassStatic in interface BytecodeGeneratorpublic void mockClassConstruction(Class<?> type)
mockClassConstruction in interface BytecodeGeneratorpublic byte[] transform(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer)
transform in interface ClassFileTransformerpublic void clearAllCaches()
clearAllCaches in interface BytecodeGeneratorCopyright © 2025. All rights reserved.