Class GeneratedClasses


  • public class GeneratedClasses
    extends java.lang.Object
    Utility methods when generating classes, including at runtime.
    Since:
    1.0.0
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.ClassLoader getMostDerivedLoader​(java.lang.Class c1, java.lang.Class c2)
      Return the more derived loader of the class laoders for the given classes.
      static java.lang.Class loadAsmClass​(java.lang.String className, byte[] classBytes, java.lang.Class<?> proxiedClass, java.lang.ClassLoader loader)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GeneratedClasses

        public GeneratedClasses()
    • Method Detail

      • getMostDerivedLoader

        public static java.lang.ClassLoader getMostDerivedLoader​(java.lang.Class c1,
                                                                 java.lang.Class c2)
        Return the more derived loader of the class laoders for the given classes.
      • loadAsmClass

        public static java.lang.Class loadAsmClass​(java.lang.String className,
                                                   byte[] classBytes,
                                                   java.lang.Class<?> proxiedClass,
                                                   java.lang.ClassLoader loader)