You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Code7.java 360B

1234567891011121314151617181920
  1. import java.lang.annotation.*;
  2. public class Code7 {
  3. public static boolean isTrue = true;
  4. public static boolean isTrue2 = true;
  5. public void m() {
  6. }
  7. public static void main(String []argv) {
  8. new Code7().m();
  9. }
  10. }
  11. aspect X {
  12. before(): execution(* Code*.*(..)) && if(Code7.isTrue) && if(Code7.isTrue2) {
  13. System.out.println("advice");
  14. }
  15. }