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.

Code5a.java 360B

12345678910111213141516171819202122232425
  1. import java.lang.annotation.*;
  2. public class Code5a {
  3. public static boolean isTrue = true;
  4. public void m() {
  5. }
  6. public static void main(String []argv) {
  7. new Code5a().m();
  8. }
  9. }
  10. // more white space, on purpose
  11. aspect X2 {
  12. pointcut p(): execution(* Code*.*(..)) && if(Code5.isTrue);
  13. before(): p() {
  14. System.out.println("advice");
  15. }
  16. }