[Soot-list] source code annotation with soot

Eric Bodden bodden at st.informatik.tu-darmstadt.de
Mon Jun 21 11:45:15 EDT 2010


Hi Jochen.

Soot does not really have support for this. Therefore your solution
appears appropriate. Having said that, I am reasonably sure that you
could also do this all in a single pass from within Soot: the abstract
syntax trees are still in memory until the end, but I am not sure how
hard it would be to get access to them. The default ASTs are JastAdd
based (http://www.jastadd.org/) but you can also get polyglot ASTs if
you use the -polyglot option when running Soot.

Eric

--
Dr. Eric Bodden
Software Technology Group, Technische Universität Darmstadt, Germany
Tel: +49 6151 16-5478    Fax: +49 6151 16-5410
Mailing Address: S2|02 A209, Hochschulstraße 10, 64289 Darmstadt



On 21 June 2010 16:54, Jochen Huck <jochen.huck at student.kit.edu> wrote:
> Hi,
>
> I search for a good solution to annotate java source code after an
> analysis with soot. As far as I know it is possible to annotate Units
> with a StringTag but that is not exactly what I want. I'd like to
> rewrite the source code and not the bytecode. My idea is to write the
> analysis results to an output file and read that file while rewriting
> the source code with polyglot for example.
>
> Cheers and hanks in advance,
>
> Jochen
> _______________________________________________
> 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