|
1 |
| package edu.rice.cs.dynamicjava; |
|
2 |
| |
|
3 |
| import edu.rice.cs.dynamicjava.symbol.TypeSystem; |
|
4 |
| import edu.rice.cs.dynamicjava.symbol.ExtendedTypeSystem; |
|
5 |
| import edu.rice.cs.plt.lambda.LambdaUtil; |
|
6 |
| import edu.rice.cs.plt.lambda.LazyThunk; |
|
7 |
| import edu.rice.cs.plt.lambda.Thunk; |
|
8 |
| |
|
9 |
| public class Options { |
|
10 |
| |
|
11 |
| public static final Options DEFAULT = new Options(); |
|
12 |
| |
|
13 |
| private final Thunk<? extends TypeSystem> _tsFactory; |
|
14 |
| |
|
15 |
| |
|
16 |
2
| protected Options() { _tsFactory = typeSystemFactory(); }
|
|
17 |
| |
|
18 |
| |
|
19 |
| |
|
20 |
| |
|
21 |
| |
|
22 |
| |
|
23 |
2
| protected Thunk<? extends TypeSystem> typeSystemFactory() {
|
|
24 |
2
| return LambdaUtil.valueLambda(new ExtendedTypeSystem(this));
|
|
25 |
| } |
|
26 |
| |
|
27 |
8560
| public final TypeSystem typeSystem() { return _tsFactory.value(); }
|
|
28 |
| |
|
29 |
0
| public boolean requireSemicolon() { return false; }
|
|
30 |
| |
|
31 |
235
| public boolean requireVariableType() { return false; }
|
|
32 |
| |
|
33 |
1638
| public boolean enforceAllAccess() { return false; }
|
|
34 |
| |
|
35 |
1638
| public boolean enforcePrivateAccess() { return false; }
|
|
36 |
| |
|
37 |
31
| public boolean prohibitBoxing() { return false; }
|
|
38 |
| |
|
39 |
0
| public boolean prohibitUncheckedCasts() { return true; }
|
|
40 |
| } |