[Soot-list] Help: How to retrive the value passed in mehod call.

pratibind.jha at accenture.com pratibind.jha at accenture.com
Thu Jan 16 03:45:52 EST 2014


Hi, I am using Soot Java bytecode optimizing framework API for analyzing the method invocation from function.

Interface interfaceName {
                Public Static String RollNo="78M12";
                Public Static String marks= "989";
}

Given the method invocation like:

SomeJavaObject.functionOf thisMethod(interfaceName.RollNo, interfaceName.marks);

Now I want to retrieve the value contained in argument0 and argument1.
E.g.
Here arg0 contain "78M12";
                Arg1 contain "989";

I am able to retrieve the type of arg0 and arg1 , Like:  List<Value> vals = invokExp.getArgs();

but not able to get value of arg0 is 78M12 and arg1 is 989.

Please suggest class name , method name and give sample code to retrieve value of argument in method invocation.

Please Help ASAP.

Thanks and Regard's
Pratibind Jha
Intern ATL


________________________________

This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy. .
______________________________________________________________________________________

www.accenture.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20140116/242e91b7/attachment.html 


More information about the Soot-list mailing list