Meaningless Drivel is fun!*
The moose likes Aspect Oriented Programming and the fly likes Get the code of the joinpoint Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Aspect Oriented Programming
Bookmark "Get the code of the joinpoint " Watch "Get the code of the joinpoint " New topic
Author

Get the code of the joinpoint

aroua doudou
Greenhorn

Joined: Sep 20, 2012
Posts: 1
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Get the code of the joinpoint