Re: Re: Method copy using MultiMethodAdapter(?)

<[email protected]>
Newsgroups gmane.comp.java.objectweb.asm
Message-ID <[email protected]>
I have the following:

class MyClassAdapter extends ClassAdapter {
  
  ...

  public MethodVisitor visitMethod(int access, String name, String descriptor,
String signature, String[] exceptions) {
 if((access & Opcodes.ACC_STATIC) != 0) 
				return super.visitMethod(access, name,
descriptor, signature, exceptions); 
//			if(name.equals("<init>") || name.equals("<clinit>")) 
//				return super.visitMethod(access, name,
descriptor, signature, exceptions); 
//			MethodVisitor mv = cv.visitMethod(access, name,
descriptor, signature, exceptions); 
//			MethodVisitor mv2 = super.visitMethod(access,
name+"__modified", descriptor, signature, exceptions); 

			return new
SprintMethodAdapter(super.visitMethod(access, name, descriptor, signature,
exceptions), 0, name, descriptor, tm.getClassName());
		}		
	}
message-footer.txt (text/plain, 238 B)
-- 
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.