public class InlineBytecodeGenerator extends Object implements BytecodeGenerator, ClassFileTransformer
Constructor and Description |
---|
InlineBytecodeGenerator(Instrumentation instrumentation,
WeakConcurrentMap<Object,MockMethodInterceptor> mocks) |
Modifier and Type | Method and Description |
---|---|
<T> Class<? extends T> |
mockClass(org.mockito.internal.creation.bytebuddy.MockFeatures<T> features) |
byte[] |
transform(ClassLoader loader,
String className,
Class<?> classBeingRedefined,
ProtectionDomain protectionDomain,
byte[] classfileBuffer) |
public InlineBytecodeGenerator(Instrumentation instrumentation, WeakConcurrentMap<Object,MockMethodInterceptor> mocks)
public <T> Class<? extends T> mockClass(org.mockito.internal.creation.bytebuddy.MockFeatures<T> features)
mockClass
in interface BytecodeGenerator
public byte[] transform(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer)
transform
in interface ClassFileTransformer
Copyright © 2019. All rights reserved.