-
Notifications
You must be signed in to change notification settings - Fork 0
/
iClass.java
37 lines (22 loc) · 1008 Bytes
/
iClass.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
import com.github.javaparser.ast.Node;
public abstract class iClass extends iObject {
public iClass(Scope parent, Node node) {
super(parent, node);
}
public abstract String getName();
public abstract iObject cast(iObject obj);
public abstract boolean isAssignableFrom(iClass cls);
public abstract iClass getComponentType();
public abstract iField getField(String name) throws Throwable;
public abstract iMethod getMethod(String name, iClass... parameterTypes) throws Throwable;
public abstract iMethod[] getMethods();
public abstract iConstructor getConstructor(iClass... parameterTypes) throws Throwable;
public abstract iConstructor[] getConstructors();
public abstract iObject newArray(int[] dimensions);
public abstract void setItem(iObject a, int i, iObject v);
public abstract iObject getItem(iObject a, int i);
@Override
public iClass getClazz() {
return this;
}
}