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.
12345678910111213141516171819202122232425 |
- public class Nine {
- public static void main(String[] argv) {
- Nine a = new Nine();
- a.m();
- }
-
- public void m() {
- System.out.println("Method m() running");
- }
- }
-
- abstract aspect Y {
- abstract pointcut p();
- before(): execution(* m(..)) && p() {
- System.out.println("In advice()");
- }
- boolean doit() {
- System.out.println("in doit(): class="+this.getClass().getName());
- return true;
- }
- }
-
- aspect X extends Y {
- pointcut p(): if(thisAspectInstance.doit());
- }
|