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.

KeywordAspect.java 433B

1234567891011121314151617181920
  1. import org.aspectj.testing.Tester;
  2. public class KeywordAspect {
  3. public static void main(String[] args) {
  4. new KeywordAspect().realMain(args);
  5. }
  6. String pointcut = "hi";
  7. public void realMain(String[] args) {
  8. int aspect = 0;
  9. aspect += 10;
  10. Tester.checkEqual(aspect, 10);
  11. Tester.checkEqual(pointcut, "hi-bye");
  12. }
  13. public KeywordAspect() {
  14. pointcut += "-bye";
  15. }
  16. }