Class SubclassBytecodeGenerator

    • Field Detail

      • 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 Detail

      • SubclassBytecodeGenerator

        public SubclassBytecodeGenerator()
      • SubclassBytecodeGenerator

        public SubclassBytecodeGenerator​(SubclassLoader loader)
      • 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 Detail

      • needsSamePackageClassLoader

        private static boolean needsSamePackageClassLoader​(MockFeatures<?> features)
      • hasNonPublicTypeReference

        private static boolean hasNonPublicTypeReference​(java.lang.Class<?> iface)
      • suffix

        private static java.lang.CharSequence suffix​(MockFeatures<?> features)
      • sortedSerializable

        private static java.util.Collection<? extends java.lang.reflect.Type> sortedSerializable​(java.util.Collection<java.lang.Class<?>> interfaces,
                                                                                                 java.lang.Class<?> mockedType)
      • isComingFromJDK

        private boolean isComingFromJDK​(java.lang.Class<?> type)
      • assertVisibility

        private static void assertVisibility​(java.lang.Class<?> type)