blob: 5b33da10d057280184ba10745a9457b3e04631f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
package p.q.r;
import java.lang.annotation.*;
aspect Asp {
declare parents: C implements p.q.r.Int;
declare parents: C implements Int;
declare @type: C: @Foo;
declare @type: C: @p.q.r.Goo;
declare @field: int C.i: @Foo;
declare @method: void C.m(): @Foo;
declare @constructor: new(): @Foo;
}
@Retention(RetentionPolicy.RUNTIME) @interface Foo {}
@Retention(RetentionPolicy.RUNTIME) @interface Goo {}
interface Int {}
class C {
int i;
void m() {}
C() {}
}
|