Re: [abc-users] Obtaining jimplified advices in a ReweavingAnalysis

From: Eric Bodden <>
Date: Fri Jun 15 2007 - 13:48:24 BST

HI, Nathan.

I think this is a bit tricky, because some pieces of advice are
inlined while others may not. So first of all you would have to know
where to look for the code. Also, I am not quite sure whether you want
the code of the shadow, i.e. the location where the advice is woven or
the code that is actually woven into there.

The latter you can get by looking at the Jimple that is generated for
the AdviceDecl (AdviceDecl is a MethodDecl and the advice body is
hence a normal method body for which Jimple is generated the usual
way.) For around-advice, things might be a bit more tricky.

What are you trying to achieve on a higher level? Maybe there are
other ways to do it...


On 15/06/07, Nathan Weston <> wrote:
> Hello,
> I was just wondering if it's possible, from a ReweavingAnalysis, to
> obtain a chain of Jimple stmts which correspond to an advice's code
> BEFORE weaving? That is, I would like to expose and analyse what an
> advice might look like before weaving, with proceed() statements
> unbound. Or is there a way to analyse this code at an earlier stage,
> before the weaving happens?
> Thanks for your help,
> Nathan Weston

Eric Bodden
Sable Research Group
McGill University, Montréal, Canada
Received on Fri Jun 15 13:48:28 2007

This archive was generated by hypermail 2.1.8 : Fri Jun 15 2007 - 16:50:09 BST