[Soot-list] Body Transformer : Problem Add New Method in Chain

Eric Bodden eric.bodden at mail.mcgill.ca
Wed Jan 21 09:30:10 EST 2009


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


More information about the Soot-list mailing list