Re: [newbie] ClassVisitor.visit() and genericized interfaces
Julius Davies <[email protected]>
| Newsgroups | gmane.comp.java.objectweb.asm |
|---|---|
| Message-ID | <CANNF_P3TUVUaxrk3nw8vb+HLxKX9y2A-7Ft17QxXmTTRpS_7Kw@mail.gmail.com> |
Thanks so much! That worked like a charm. yours, Julius On Fri, Jul 15, 2011 at 2:29 AM, Ivo Anjo <[email protected]> wrote: > Hello, > > Have you tried looking at the "signature" parameter (sig in your example)? I > think it includes what you're looking for. > > Ivo > > On Fri, Jul 15, 2011 at 12:36 AM, Julius Davies <[email protected]> > wrote: >> >> Hi, >> >> For my project I need to figure out exactly what interfaces a class >> implements, including the generics, should any of the interfaces be >> generic. For example, I have a class that looks like this: >> >> --- >> import java.util.Collection; >> public abstract class C implements Collection<Number> {} >> --- >> >> When I "visit" it I only see "Collection" in the String[] interfaces. >> I do not see the generic <Number> alongside. Am I doing something >> wrong? ClassReader.getInterfaces() is also not able to help me. >> >> >> I'm using this method in ClassVisitor: >> >> public void visit(int version, int access, String name, String sig, >> String superName, String[] interfaces) >> >> >> >> >> -- >> yours, >> >> Julius Davies >> 250-592-2284 (Home) >> >> $ sudo apt-get install cowsay >> $ echo "Moo." | cowsay | cowsay -n | cowsay -n >> http://juliusdavies.ca/cowsay/ >> >> >> -- >> 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 >> > > -- yours, Julius Davies 250-592-2284 (Home) $ sudo apt-get install cowsay $ echo "Moo." | cowsay | cowsay -n | cowsay -n http://juliusdavies.ca/cowsay/
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