]> source.dussan.org Git - aspectj.git/commitdiff
changing after to after returning, with Jim's blessing.
authorwisberg <wisberg>
Thu, 8 May 2003 06:58:10 +0000 (06:58 +0000)
committerwisberg <wisberg>
Thu, 8 May 2003 06:58:10 +0000 (06:58 +0000)
docs/dist/doc/examples/spacewar/Debug.java
docs/dist/doc/examples/spacewar/Display.java

index b9a476e0e5cd15951016b306558f5e56cddb51ba..a5d99166139fb7c336d2f36351d77e7456c9142a 100644 (file)
@@ -94,7 +94,7 @@ aspect Debug {
         }
     }
 
-    after(): allConstructorsCut() {
+    after() returning: allConstructorsCut() {
         if (traceConstructors.getState()) {
             infoWin.println("done constructing " + thisJoinPoint.getSignature());
         }
@@ -111,7 +111,7 @@ aspect Debug {
             infoWin.println("begin initializing " + thisJoinPoint.getSignature());
         }
     }
-    after(): allInitializationsCut() {
+    after() returning : allInitializationsCut() {
         if (traceConstructors.getState()) {
             infoWin.println("done initializing " + thisJoinPoint.getSignature());
         }
@@ -128,7 +128,7 @@ aspect Debug {
             infoWin.println("entering " + thisJoinPoint.getSignature());
         }
     }
-    after(): allMethodsCut() {
+    after() returning : allMethodsCut() {
         if (traceMethods.getState()) {
             infoWin.println("exiting " + thisJoinPoint.getSignature());
         }
@@ -137,7 +137,7 @@ aspect Debug {
     /*
      * clock ticks
      */
-    after(Object obj):
+    after(Object obj) returning :
         (target(obj) && (target(Game) ||
                         target(Registry) ||
                         target(SpaceObject)))
@@ -149,7 +149,7 @@ aspect Debug {
     /*
      * registry contents
      */
-    after(Registry registry):
+    after(Registry registry) returning :
         target(registry) && (call(void register(..)) ||
                             call(void unregister(..))) {
         if (traceRegistry.getState())
@@ -160,18 +160,18 @@ aspect Debug {
     /*
      * fire, collide, damage
      */
-    after(): call(void Ship.fire()) {
+    after() returning : call(void Ship.fire()) {
         if (traceFireCollideDamage.getState())
             infoWin.println("firing");
     }
 
-    after(Ship ship, SpaceObject obj):
+    after(Ship ship, SpaceObject obj) returning :
        call(void Ship.handleCollision(SpaceObject)) && target(ship) && args(obj) {
         if (traceFireCollideDamage.getState())
             infoWin.println(ship + " collides with " + obj);
     }
 
-    after(Ship shipA, Ship shipB):
+    after(Ship shipA, Ship shipB) returning :
         execution(void Ship.bounce(Ship, Ship)) && args(shipA, shipB) {
         if (traceFireCollideDamage.getState())
             infoWin.println(shipA + " bounces with " + shipB);
index a0f77b347ad6c0d62c08829ce781101d1ea3d4e7..757cdd6e7c27ade717ae43158240b024472b4fbd 100644 (file)
@@ -155,7 +155,7 @@ class Display  extends Canvas {
             display.noticeSizeChange();
         }
 
-        after(): call(void Game.clockTick()) {
+        after() returning : call(void Game.clockTick()) {
             Enumeration elements = DISPLAYS.elements();
             while ( elements.hasMoreElements() ) {
                 Display display = (Display)elements.nextElement();