~ubuntu-branches/ubuntu/natty/aspectj/natty

« back to all changes in this revision

Viewing changes to org.aspectj/modules/tests/bugs150/pr121385/World.aj

  • Committer: Bazaar Package Importer
  • Author(s): Damien Raude-Morvan
  • Date: 2009-10-04 16:37:23 UTC
  • mfrom: (1.1.3 upstream) (3.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20091004163723-ck4y7j7fhjxskkie
Tags: 1.6.6+dfsg-1
* New upstream release.
  - Update 02_use_gjdoc.diff patch
* Update my email address

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
import org.aspectj.lang.Signature;
2
 
import org.aspectj.lang.JoinPoint;
3
 
public abstract aspect World { 
4
 
    //private Object result;
5
 
        pointcut greeting() : execution(* Hello.sayWorld(..)); 
6
 
 
7
 
        Object around(): greeting() {
8
 
        System.out.println("around start!");
9
 
        Object result = proceed();
10
 
        System.out.println("around end!");
11
 
        return result;
12
 
        }
13
 
 
14
 
//    before() : greeting() { 
15
 
//      Signature signature = thisJoinPoint.getSignature();
16
 
//        System.out.println("before " + signature.getName()); 
17
 
//    } 
18
 
 
19
 
//    after() returning () : greeting() { 
20
 
//      Signature signature = thisJoinPoint.getSignature();
21
 
//        System.out.println("after " + signature.getName()); 
22
 
//    } 
23
 
 
24