[Soot-list] Body Transformer : Problem Add New Method in Chain
Amir Mehrabi
mehrabi at comp.iust.ac.ir
Sat Jan 24 04:13:05 EST 2009
Hi could you please show me by example how can I invoke a method in Jimple
Format such as:
void check(String a,String b,Object[] c);
thankl you
-----Original Message-----
From: Eric Bodden <eric.bodden at mail.mcgill.ca>
To: Amir Mehrabi <mehrabi at comp.iust.ac.ir>
Cc: soot-list at sable.mcgill.ca
Date: Wed, 21 Jan 2009 09:30:10 -0500
Subject: Re: [Soot-list] Body Transformer : Problem Add New Method in Chain
You have to construct a new array using
soot.jimple.Jimple.newNewArrayExpr(Type, Value).
Eric
2009/1/21 Amir Mehrabi <mehrabi at comp.iust.ac.ir>:
> Hi
> I want to by BodyTransformer add one method to the existing method's body
> my method is:
>
> void check(String name,String arg1,Object[] objs);
>
> in jimple there is statement for adding some statement in unit like :
>
> newStaticInvokeExpr ( SootMethodRef method, List args)
> newStaticInvokeExpr( SootMethodRef method, Value arg)
> newStaticInvokeExpr ( SootMethodRef method, Value arg1, Value arg2)
> for sending String Value I use
>
> StringConstant.v("some text");
>
> but I don't know how to send array of Object for passing Object[]
> Can any one help me please?
>
> Thank you
> Amir Mehrabi
> MSc Student of Iran University Of Science and Technology
>
> _______________________________________________
> 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/20090124/0b31dfc4/attachment.html
More information about the Soot-list
mailing list