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

Amir Mehrabi mehrabi at comp.iust.ac.ir
Wed Jan 21 03:57:21 EST 2009


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
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20090121/389cf02a/attachment.html 


More information about the Soot-list mailing list