diff options
author | wisberg <wisberg> | 2002-12-16 17:58:19 +0000 |
---|---|---|
committer | wisberg <wisberg> | 2002-12-16 17:58:19 +0000 |
commit | d842c4f1139629c1f062b74ba818d233b2c31043 (patch) | |
tree | 842d3871620bc0eb60edcd95e55804d67e0f61fa /org.aspectj.ajdt.core/testdata/src1/A.java | |
parent | 3ce247199704eae6b2c92c6e38c69584e3250c52 (diff) | |
download | aspectj-d842c4f1139629c1f062b74ba818d233b2c31043.tar.gz aspectj-d842c4f1139629c1f062b74ba818d233b2c31043.zip |
initial version
Diffstat (limited to 'org.aspectj.ajdt.core/testdata/src1/A.java')
-rw-r--r-- | org.aspectj.ajdt.core/testdata/src1/A.java | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/org.aspectj.ajdt.core/testdata/src1/A.java b/org.aspectj.ajdt.core/testdata/src1/A.java new file mode 100644 index 000000000..9be597f7e --- /dev/null +++ b/org.aspectj.ajdt.core/testdata/src1/A.java @@ -0,0 +1,41 @@ +public aspect A issingleton() { + public void m(int x) { + System.out.println(x); + } + + pointcut foo(String[] args): I.foo(args) && execution(void Hello.*(..)); + + ///XXX add a test for this correctly + //XXXpublic int Hello.fromA; + + before(): execution(* Hello.*(..)) { + System.out.println("enter"); + } + + + public void pingHello(Hello h) { + int x = 2; + System.out.println(x); + } + + public static void main(String[] args) { + Hello.main(args); + } +} + +class Hello { + public static void main(String[] args) { + } +} + + +interface I { + pointcut foo(String[] i): args(i); + + static aspect InnerA { + before(): this(String) { + System.out.println("hi"); + } + } + //void foo(); +} |