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.
123456789101112131415161718192021 |
- public class Six {
- public static void main(String[] argv) {
- Six a = new Six();
- a.m();
- }
-
- public void m() {
- System.out.println("Method m() running");
- }
- }
-
- aspect X {
- boolean doit() {
- System.out.println("In instance check method doit()");
- return true;
- }
-
- before():call(* m(..)) && if(thisAspectInstance.doit()){
- System.out.println("In advice() "+thisEnclosingJoinPointStaticPart);
- }
- }
|