Class SubclassBytecodeGenerator

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private net.bytebuddy.ByteBuddy byteBuddy  
      private static java.lang.String CODEGEN_PACKAGE  
      private net.bytebuddy.implementation.Implementation dispatcher  
      private net.bytebuddy.implementation.Implementation equals  
      private ModuleHandler handler  
      private net.bytebuddy.implementation.Implementation hashCode  
      private SubclassLoader loader  
      private net.bytebuddy.matcher.ElementMatcher<? super net.bytebuddy.description.method.MethodDescription> matcher  
      private java.util.Random random  
      private net.bytebuddy.implementation.Implementation readReplace  
      private net.bytebuddy.implementation.Implementation writeReplace  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private static void assertVisibility​(java.lang.Class<?> type)  
      private <T> java.util.Collection<java.lang.Class<? super T>> getAllTypes​(java.lang.Class<T> type)  
      private boolean isComingFromJDK​(java.lang.Class<?> type)  
      private static net.bytebuddy.matcher.ElementMatcher<net.bytebuddy.description.method.MethodDescription> isGroovyMethod()  
      <T> java.lang.Class<? extends T> mockClass​(MockFeatures<T> features)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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

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