[Soot-list] getTag() for self added Tags

Manjiri Namjoshi manjiri.namjoshi at googlemail.com
Mon Mar 2 17:59:38 EST 2009


I forgot to mention, I am trying to call getTag () in a different program
which has the annotated classfiles as input.
First program will addTags, output the annotated classfiles. Second program
takes the annotated classfiles as input and tries to getTags.

Thank You.

Sincerely,
Manjiri

2009/3/2 Eric Bodden <eric.bodden at mail.mcgill.ca>

> This seems to work for me. In any case, you can also use getTags().
>
> Eric
>
> 2009/3/2 Manjiri Namjoshi <manjiri.namjoshi at googlemail.com>:
> > Hello,
> >
> > Is there any way to get the name and value of Tag which we have added.
> > Example:
> > protected void internalTransform (Body b, String phaseName, Map options){
> >     SootMethod sootMethod = b.getMethod();
> >     Tag appMethod = new GenericAttribute("ApplicationMethod",
> > "ApplicationMethod".getBytes());
> >     sootMethod.addTag(appMethod);
> > }
> >
> > getTag("ApplicationMethod") doesnt give me back the tag which I had
> added.
> >
> > Does getTag only work for the soot's standard Tags?
> > Or am I doing anything wrong?
> >
> > Thank You.
> >
> >
> > Sincerely,
> > Manjiri
> >
> > _______________________________________________
> > Soot-list mailing list
> > Soot-list at sable.mcgill.ca
> > http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
> >
> >
>
>
>
> --
> Eric Bodden
> Sable Research Group, McGill University
> Montréal, Québec, Canada
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20090302/3de56906/attachment.html 


More information about the Soot-list mailing list