-
Notifications
You must be signed in to change notification settings - Fork 0
/
iNull.java
71 lines (54 loc) · 1.74 KB
/
iNull.java
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
public class iNull extends iClass {
static iNull Null = new iNull();
protected iNull() {
super(ScopeImpl.newRootScope(null), null);
}
public String getName() {
throw new UnsupportedOperationException();
}
public iObject cast(iObject obj) {
throw new UnsupportedOperationException();
}
public boolean isAssignableFrom(iClass cls) {
throw new UnsupportedOperationException();
}
public iClass getComponentType() {
throw new UnsupportedOperationException();
}
public iField getField(String name) throws Throwable {
throw new UnsupportedOperationException();
}
public iMethod getMethod(String name, iClass... parameterTypes) throws Throwable {
throw new UnsupportedOperationException();
}
public iMethod[] getMethods() {
throw new UnsupportedOperationException();
}
public iConstructor getConstructor(iClass... parameterTypes) throws Throwable {
throw new UnsupportedOperationException();
}
public iConstructor[] getConstructors() {
throw new UnsupportedOperationException();
}
public iObject newArray(int[] dimensions) {
throw new UnsupportedOperationException();
}
public void setItem(iObject a, int i, iObject v) {
throw new UnsupportedOperationException();
}
public iObject getItem(iObject a, int i) {
throw new UnsupportedOperationException();
}
@Override
public boolean equals(Object obj) {
return obj == Null;
}
@Override
public String toString() {
return "iNull";
}
@Override
public iClass getClazz() {
return this;
}
}