• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Get the code of the joinpoint

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Slideshow boring ... losing consciousness ... just gonna take a quick nap on this tiny ad ...
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic