Class SubclassBytecodeGenerator
java.lang.Object
org.mockito.internal.creation.bytebuddy.SubclassBytecodeGenerator
- All Implemented Interfaces:
BytecodeGenerator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final net.bytebuddy.ByteBuddy
private static final String
private final net.bytebuddy.implementation.Implementation
private final net.bytebuddy.implementation.Implementation
private final ModuleHandler
private final net.bytebuddy.implementation.Implementation
private final SubclassLoader
private final net.bytebuddy.matcher.ElementMatcher
<? super net.bytebuddy.description.method.MethodDescription> private final net.bytebuddy.implementation.Implementation
private final net.bytebuddy.implementation.Implementation
-
Constructor Summary
ConstructorsModifierConstructorDescriptionSubclassBytecodeGenerator
(net.bytebuddy.implementation.Implementation readReplace, net.bytebuddy.matcher.ElementMatcher<? super net.bytebuddy.description.method.MethodDescription> matcher) protected
SubclassBytecodeGenerator
(SubclassLoader loader, net.bytebuddy.implementation.Implementation readReplace, net.bytebuddy.matcher.ElementMatcher<? super net.bytebuddy.description.method.MethodDescription> matcher) -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
assertVisibility
(Class<?> type) private static boolean
hasNonPublicTypeReference
(Class<?> iface) private boolean
isComingFromJDK
(Class<?> type) <T> Class
<? extends T> mockClass
(MockFeatures<T> features) void
mockClassConstruction
(Class<?> type) void
mockClassStatic
(Class<?> type) private static boolean
needsSamePackageClassLoader
(MockFeatures<?> features) private static Collection
<? extends Type> sortedSerializable
(Collection<Class<?>> interfaces, Class<?> mockedType) private static CharSequence
suffix
(MockFeatures<?> features) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.mockito.internal.creation.bytebuddy.BytecodeGenerator
clearAllCaches
-
Field Details
-
CODEGEN_PACKAGE
- See Also:
-
loader
-
handler
-
byteBuddy
private final net.bytebuddy.ByteBuddy byteBuddy -
readReplace
private final net.bytebuddy.implementation.Implementation readReplace -
matcher
private final net.bytebuddy.matcher.ElementMatcher<? super net.bytebuddy.description.method.MethodDescription> matcher -
dispatcher
private final net.bytebuddy.implementation.Implementation dispatcher -
hashCode
private final net.bytebuddy.implementation.Implementation hashCode -
equals
private final net.bytebuddy.implementation.Implementation equals -
writeReplace
private final net.bytebuddy.implementation.Implementation writeReplace
-
-
Constructor Details
-
SubclassBytecodeGenerator
public SubclassBytecodeGenerator() -
SubclassBytecodeGenerator
-
SubclassBytecodeGenerator
public SubclassBytecodeGenerator(net.bytebuddy.implementation.Implementation readReplace, net.bytebuddy.matcher.ElementMatcher<? super net.bytebuddy.description.method.MethodDescription> matcher) -
SubclassBytecodeGenerator
protected SubclassBytecodeGenerator(SubclassLoader loader, net.bytebuddy.implementation.Implementation readReplace, net.bytebuddy.matcher.ElementMatcher<? super net.bytebuddy.description.method.MethodDescription> matcher)
-
-
Method Details
-
needsSamePackageClassLoader
-
hasNonPublicTypeReference
-
mockClass
- Specified by:
mockClass
in interfaceBytecodeGenerator
-
suffix
-
sortedSerializable
private static Collection<? extends Type> sortedSerializable(Collection<Class<?>> interfaces, Class<?> mockedType) -
mockClassStatic
- Specified by:
mockClassStatic
in interfaceBytecodeGenerator
-
mockClassConstruction
- Specified by:
mockClassConstruction
in interfaceBytecodeGenerator
-
isComingFromJDK
-
assertVisibility
-