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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
| import java.io.PrintStream;
public class Main {
public static void main(String[] arrstring) {
System.out.println(((Object)((Object)ExceptionHandleStrategy.IGNORE)).getClass());
System.out.println(((Object)((Object)ExceptionHandleStrategy.LOG)).getClass());
System.out.println(((Object)((Object)ExceptionHandleStrategy.THROW)).getClass());
System.out.println(((Object)((Object)EnumWithoutMethod.A)).getClass());
System.out.println(((Object)((Object)EnumWithoutMethod.B)).getClass());
System.out.println(((Object)((Object)EnumWithoutMethod.C)).getClass());
System.out.println(((Object)((Object)EnumWithVariable.A)).getClass());
System.out.println(((Object)((Object)EnumWithVariable.B)).getClass());
System.out.println(((Object)((Object)EnumWithVariable.C)).getClass());
System.out.println(EnumWithVariable.A.name());
System.out.println(EnumWithVariable.A.getxxx());
ExceptionHandleStrategy.LOG.handle(new RuntimeException("system just broken"));
}
static final class EnumWithVariable
extends Enum<EnumWithVariable> {
public static final /* enum */ EnumWithVariable A = new EnumWithVariable("A", 0, "wristband");
public static final /* enum */ EnumWithVariable B = new EnumWithVariable("B", 1, "glucometer");
public static final /* enum */ EnumWithVariable C = new EnumWithVariable("C", 2, "fit");
private String name;
private static final /* synthetic */ EnumWithVariable[] $VALUES;
public static EnumWithVariable[] values() {
return (EnumWithVariable[])$VALUES.clone();
}
public static EnumWithVariable valueOf(String string) {
return Enum.valueOf(EnumWithVariable.class, string);
}
public String getxxx() {
return this.name;
}
private EnumWithVariable(String string, int n, String string2) {
super(string, n);
this.name = string2;
}
static {
$VALUES = new EnumWithVariable[]{A, B, C};
}
}
static final class EnumWithoutMethod
extends Enum<EnumWithoutMethod> {
public static final /* enum */ EnumWithoutMethod A = new EnumWithoutMethod("A", 0);
public static final /* enum */ EnumWithoutMethod B = new EnumWithoutMethod("B", 1);
public static final /* enum */ EnumWithoutMethod C = new EnumWithoutMethod("C", 2);
private static final /* synthetic */ EnumWithoutMethod[] $VALUES;
public static EnumWithoutMethod[] values() {
return (EnumWithoutMethod[])$VALUES.clone();
}
public static EnumWithoutMethod valueOf(String string) {
return Enum.valueOf(EnumWithoutMethod.class, string);
}
private EnumWithoutMethod(String string, int n) {
super(string, n);
}
static {
$VALUES = new EnumWithoutMethod[]{A, B, C};
}
}
static class ExceptionHandleStrategy
extends Enum<ExceptionHandleStrategy> {
public static final /* enum */ ExceptionHandleStrategy IGNORE = new ExceptionHandleStrategy("IGNORE", 0);
public static final /* enum */ ExceptionHandleStrategy LOG = new ExceptionHandleStrategy("LOG", 1){
@Override
public void handle(Exception exception) {
System.out.println(exception.getLocalizedMessage());
}
};
public static final /* enum */ ExceptionHandleStrategy THROW = new ExceptionHandleStrategy("THROW", 2){
@Override
public void handle(Exception exception) {
throw new RuntimeException(exception.getMessage());
}
};
private static final /* synthetic */ ExceptionHandleStrategy[] $VALUES;
public static ExceptionHandleStrategy[] values() {
return (ExceptionHandleStrategy[])$VALUES.clone();
}
public static ExceptionHandleStrategy valueOf(String string) {
return Enum.valueOf(ExceptionHandleStrategy.class, string);
}
private ExceptionHandleStrategy(String string, int n) {
super(string, n);
}
public void handle(Exception exception) {
}
static {
$VALUES = new ExceptionHandleStrategy[]{IGNORE, LOG, THROW};
}
}
}
|