Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
12345678910111213141516171819202122 |
- public class Twelve {
- public static void main(String[] argv) {
- Twelve a = new Twelve();
- a.m("abc");
- }
-
- public void m(String s) {
- System.out.println("Method m() running");
- }
- }
-
- aspect X {
-
- boolean doit() {
- System.out.println("In instance check method doit()");
- return true;
- }
-
- before(String s):execution(* m(..)) && if(thisAspectInstance.doit()) && args(s) {
- System.out.println("In advice() arg="+s+" tjpsp="+thisJoinPointStaticPart);
- }
- }
|