[Soot-list] Invoke Stmt Help

Patrick LAM plam at cs.mcgill.ca
Mon Apr 2 13:54:22 EDT 2007


John Chaitanya Kati wrote:
 > Hi,
 >    How can i retrive the parameter of invoke stmt. for example
 > for the statement, i4 = virtualinvoke r1.<java.lang.String: int 
compareTo(java.lang.String)>($r7) i want to get $r7. can you please 
help. thanks for any help in advance.

Get the InvokeExpr from the Stmt (in fact it will be an AssignStmt and 
not an InvokeStmt) and then call getArgs() on the InvokeExpr.

pat


More information about the Soot-list mailing list