[Soot-list] Get source code by line number

Phil Pratt-Szeliga pcpratts at chirrup.org
Sat Feb 23 14:47:47 EST 2013


Hi Zeinab,

I may be wrong, but I think the Java Bytecode only contains the line
numbers and the source file. You will have to parse the original
source file given a line number to get the source line.

Phil Pratt-Szeliga
Syracuse University
http://trifort.org/


On Sat, Feb 23, 2013 at 1:35 PM, Zeinab Lashkaripour
<lashkaripour at yahoo.com> wrote:
> Hi,
> I have got the source code line number from the tags but I wanted to get the
> source code of that specific line number,
> Does Soot have anything for this?  (but didn't find any solution)
> I looked in the API and found "MethodSource: getSource()" therefore I used
> it as: "MethodSource ms = classMethod.getSource();" but it returned null.
>
>
> Regards,
> Zeinab
>
> _______________________________________________
> Soot-list mailing list
> Soot-list at sable.mcgill.ca
> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
>


More information about the Soot-list mailing list