[Soot-list] visitor for Jimple IR

Sergio Ferrero sferrero at ensoftcorp.com
Thu Jun 27 16:05:02 EDT 2013


Hello,

I'd like to associate source correspondence information in the format of
(offset, length) with an in-memory representation of a Jimple file.

I'm using the Jimple parser to create a Jimple AST (classes in
soot.jimple.parser.node) and then invoking Walker.java to create the
in-memory representation of the jimple file (classes are in soot.jimple and
soot.jimple.internal).

It is to this in-memory representation I would like to attach source
correspondence information.  I originally tried attaching the information
to the Jimple AST generated by the Jimple parser, but this representation
was missing some necessary information.

Sable provides a visitor infrastructure to navigate the Jimple AST.
Walker.java is based on this.
I'd like to know whether there is a similar visitor infrastructure for
navigating the in-memory representation of the jimple file.

Thanks in advance
-S
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20130627/7a47af82/attachment.html 


More information about the Soot-list mailing list