Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Get the code of the joinpoint

 
aroua doudou
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I work on java project and I intercept with AOP some java methods. I want the get the code of the intercepted method (joinpoint).
Now I can get the name and the arguments of the jointpoint but not the complete code inside. For example if my joinpont is the following method:
public void action() {
Etat = Etats.MEDECIN_MARCHE;
sousEtat_Marche = Marche.RECHERCHE_VICTIME;
Ontologie.ordreExplorer oE = (Ontologie.ordreExplorer) objet;
NZone = oE.getNumZone();
etape = param.getParam().etape;
Finished = true;
}

the result will be :
Etat = Etats.MEDECIN_MARCHE;
sousEtat_Marche = Marche.RECHERCHE_VICTIME;
Ontologie.ordreExplorer oE = (Ontologie.ordreExplorer) objet;
NZone = oE.getNumZone();
etape = param.getParam().etape;
Finished = true;

Thank you
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic