[Soot-list] change Unit
Eric Bodden
eric.bodden at mail.mcgill.ca
Tue Mar 6 09:42:13 EST 2007
Any instance of Body has a method getUnits() which returns a
PatchingChain. This you can just iterate over until you find the unit
you want to change. Then at this position you can invoke methods on
the chain to remove the unit or insert stuff before or after.
eEric
On 06/03/07, Toth.Gabriella.2 at stud.u-szeged.hu
<Toth.Gabriella.2 at stud.u-szeged.hu> wrote:
> Hi!
>
> I would like to know how I can change Unit ( remove the old one and
> add the new one)?
>
>
> Thanks
>
> Gabi
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
> _______________________________________________
> 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, Canada
More information about the Soot-list
mailing list