aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ajde/examples/figures-cacm/figures/SimpleTracing.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ajde/examples/figures-cacm/figures/SimpleTracing.java')
-rw-r--r--tests/ajde/examples/figures-cacm/figures/SimpleTracing.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ajde/examples/figures-cacm/figures/SimpleTracing.java b/tests/ajde/examples/figures-cacm/figures/SimpleTracing.java
new file mode 100644
index 000000000..d65eb158a
--- /dev/null
+++ b/tests/ajde/examples/figures-cacm/figures/SimpleTracing.java
@@ -0,0 +1,13 @@
+
+package figures;
+
+aspect SimpleTracing {
+
+ pointcut tracePoints(): call(void Point.setX(int)) ||
+ call(void Point.setY(int));
+
+ before(): tracePoints() {
+ System.out.println("Entering:" + thisJoinPoint);
+ }
+}
+