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

Eric Bodden eric.bodden at mail.mcgill.ca
Mon Mar 2 17:55:30 EST 2009


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


More information about the Soot-list mailing list