Class BytecoderLoader

  • All Implemented Interfaces:
    Loader

    public class BytecoderLoader
    extends java.lang.Object
    implements Loader
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.ClassLoader classLoader  
    • Constructor Summary

      Constructors 
      Constructor Description
      BytecoderLoader​(java.lang.ClassLoader classLoader)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.net.URL getResource​(java.lang.String resourceName)  
      java.util.Enumeration<java.net.URL> getResources​(java.lang.String resourceName)  
      private org.objectweb.asm.tree.ClassNode internalLoad​(java.lang.String className)  
      org.objectweb.asm.tree.ClassNode loadClassFor​(org.objectweb.asm.Type type)  
      private void patchWith​(org.objectweb.asm.tree.ClassNode original, org.objectweb.asm.tree.ClassNode patch)  
      • Methods inherited from class java.lang.Object

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

      • classLoader

        private final java.lang.ClassLoader classLoader
    • Constructor Detail

      • BytecoderLoader

        public BytecoderLoader​(java.lang.ClassLoader classLoader)
    • Method Detail

      • getResources

        public java.util.Enumeration<java.net.URL> getResources​(java.lang.String resourceName)
                                                         throws java.io.IOException
        Specified by:
        getResources in interface Loader
        Throws:
        java.io.IOException
      • getResource

        public java.net.URL getResource​(java.lang.String resourceName)
        Specified by:
        getResource in interface Loader
      • loadClassFor

        public org.objectweb.asm.tree.ClassNode loadClassFor​(org.objectweb.asm.Type type)
                                                      throws java.io.IOException,
                                                             java.lang.ClassNotFoundException
        Specified by:
        loadClassFor in interface Loader
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • internalLoad

        private org.objectweb.asm.tree.ClassNode internalLoad​(java.lang.String className)
                                                       throws java.io.IOException,
                                                              java.lang.ClassNotFoundException
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • patchWith

        private void patchWith​(org.objectweb.asm.tree.ClassNode original,
                               org.objectweb.asm.tree.ClassNode patch)