Class ClassLoaderAwareClassWriter


  • public class ClassLoaderAwareClassWriter
    extends org.objectweb.asm.ClassWriter
    This type helps improve the ability to getCommonSuperClass(java.lang.String, java.lang.String). Essentially adding support to use the class loader used to load the class and dealing with some known cases of optional types.
    • Field Summary

      • Fields inherited from class org.objectweb.asm.ClassWriter

        COMPUTE_FRAMES, COMPUTE_MAXS
      • Fields inherited from class org.objectweb.asm.ClassVisitor

        api, cv
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected String getCommonSuperClass​(String type1, String type2)  
      • Methods inherited from class org.objectweb.asm.ClassWriter

        getClassLoader, newClass, newConst, newConstantDynamic, newField, newHandle, newHandle, newInvokeDynamic, newMethod, newMethodType, newModule, newNameType, newPackage, newUTF8, toByteArray, visit, visitAnnotation, visitAttribute, visitEnd, visitField, visitInnerClass, visitMethod, visitModule, visitNestHost, visitNestMember, visitOuterClass, visitPermittedSubtypeExperimental, visitRecordComponent, visitSource, visitTypeAnnotation
    • Constructor Detail

      • ClassLoaderAwareClassWriter

        public ClassLoaderAwareClassWriter​(org.objectweb.asm.ClassReader classReader,
                                           int flags,
                                           ClassLoader loader)
    • Method Detail

      • getCommonSuperClass

        protected String getCommonSuperClass​(String type1,
                                             String type2)
        Overrides:
        getCommonSuperClass in class org.objectweb.asm.ClassWriter