Class TreeTransformer

    • Constructor Summary

      Constructors 
      Constructor Description
      TreeTransformer()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.objectweb.asm.tree.ClassNode readClass​(java.lang.String className, byte[] basicClass)  
      protected org.objectweb.asm.tree.ClassNode readClass​(java.lang.String className, byte[] basicClass, boolean cacheReader)  
      protected byte[] writeClass​(org.objectweb.asm.tree.ClassNode classNode)  
      • Methods inherited from class java.lang.Object

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

      • TreeTransformer

        public TreeTransformer()
    • Method Detail

      • readClass

        protected final org.objectweb.asm.tree.ClassNode readClass​(java.lang.String className,
                                                                   byte[] basicClass)
        Parameters:
        basicClass - Original bytecode
        Returns:
        tree
      • readClass

        protected final org.objectweb.asm.tree.ClassNode readClass​(java.lang.String className,
                                                                   byte[] basicClass,
                                                                   boolean cacheReader)
        Parameters:
        basicClass - Original bytecode
        cacheReader - True to cache the classReader instance for use when writing the generated ClassNode later
        Returns:
        tree
      • writeClass

        protected final byte[] writeClass​(org.objectweb.asm.tree.ClassNode classNode)
        Parameters:
        classNode - ClassNode to write out
        Returns:
        generated bytecode