Re: [newbie] ClassVisitor.visit() and genericized interfaces
Ivo Anjo <[email protected]>
| Newsgroups | gmane.comp.java.objectweb.asm |
|---|---|
| Message-ID | <CA+iO_8nKrwAYe-tgRtOst2ap0yv4-HFW28FGXJrRg6OfoYuV+Q@mail.gmail.com> |
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 > >
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