mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-14 14:11:27 +02:00
21 lines
433 B
Java
21 lines
433 B
Java
import org.aspectj.testing.Tester;
|
|
public class KeywordAspect {
|
|
public static void main(String[] args) {
|
|
new KeywordAspect().realMain(args);
|
|
}
|
|
|
|
String pointcut = "hi";
|
|
|
|
public void realMain(String[] args) {
|
|
int aspect = 0;
|
|
aspect += 10;
|
|
|
|
Tester.checkEqual(aspect, 10);
|
|
Tester.checkEqual(pointcut, "hi-bye");
|
|
}
|
|
|
|
public KeywordAspect() {
|
|
pointcut += "-bye";
|
|
}
|
|
}
|