Class ClassWriterTracker


  • public class ClassWriterTracker
    extends java.lang.Object
    Helper to keep track of generated methods when using ASM ClassWriter.
    Author:
    Mark Struberg
    • Constructor Summary

      Constructors 
      Constructor Description
      ClassWriterTracker​(org.apache.xbean.asm9.ClassWriter cw)  
      ClassWriterTracker​(org.apache.xbean.asm9.ClassWriter cw, java.lang.ClassLoader cl)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.ClassLoader getClassLoader()  
      org.apache.xbean.asm9.ClassWriter getCw()  
      java.lang.String getName()  
      boolean hasMethod​(java.lang.String name, java.lang.String descriptor)  
      void setName​(java.lang.String name)  
      org.apache.xbean.asm9.MethodVisitor visitMethod​(int access, java.lang.String name, java.lang.String descriptor, java.lang.String signature, java.lang.String[] exceptionTypes)  
      • Methods inherited from class java.lang.Object

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

      • ClassWriterTracker

        public ClassWriterTracker​(org.apache.xbean.asm9.ClassWriter cw)
      • ClassWriterTracker

        public ClassWriterTracker​(org.apache.xbean.asm9.ClassWriter cw,
                                  java.lang.ClassLoader cl)
    • Method Detail

      • getCw

        public org.apache.xbean.asm9.ClassWriter getCw()
      • getClassLoader

        public java.lang.ClassLoader getClassLoader()
      • visitMethod

        public org.apache.xbean.asm9.MethodVisitor visitMethod​(int access,
                                                               java.lang.String name,
                                                               java.lang.String descriptor,
                                                               java.lang.String signature,
                                                               java.lang.String[] exceptionTypes)
      • hasMethod

        public boolean hasMethod​(java.lang.String name,
                                 java.lang.String descriptor)
      • getName

        public java.lang.String getName()
      • setName

        public void setName​(java.lang.String name)