blob: 965a0d184d49dee11773198ca7f07f71e50c5148 (
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
27
28
29
30
31
32
|
import java.util.*;
public class Choice2 {
public static void main(String []argv) {
System.out.println(Bar.Keys.CHOICE);
}
}
class Bar {
}
aspect X {
static List<Bar> choices;
public static List forClass() {
ArrayList al = new ArrayList();
return al;
}
public static class Bar.Keys {
public static final Function<Object, Bar> CHOICE = Get.attrOf(choices,"choice");
}
}
class Get {
public static <T> Function<Object,T> attrOf(List<T> t,String s) {
return null;
}
}
class Function<A,B> {
}
|