Class SubclassBytecodeGenerator

    • Field Detail

      • byteBuddy

        private final net.bytebuddy.ByteBuddy byteBuddy
      • random

        private final java.util.Random random
      • 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)
      • getAllTypes

        private <T> java.util.Collection<java.lang.Class<? super T>> getAllTypes​(java.lang.Class<T> type)
      • isGroovyMethod

        private static net.bytebuddy.matcher.ElementMatcher<net.bytebuddy.description.method.MethodDescription> isGroovyMethod()
      • isComingFromJDK

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

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