-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConstant_Class_Info.java
More file actions
33 lines (25 loc) · 925 Bytes
/
Copy pathConstant_Class_Info.java
File metadata and controls
33 lines (25 loc) · 925 Bytes
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
package model;
import java.io.IOException;
import java.io.InputStream;
public class Constant_Class_Info extends Constant_Info {
// tag: 7
// 指向全限定名常量项的索引
private U2 name_index;
// index索引的具体值
private Constant_Utf8_Info valueof_name_index;
public Constant_Utf8_Info getValueofNameIndex() {
return valueof_name_index;
}
public static Constant_Class_Info create(InputStream is, U1 tag) throws IOException {
Constant_Class_Info ci = new Constant_Class_Info();
ci.tag = tag;
ci.name_index = U2.create(is);
ci.newBytes();
return ci;
}
public Constant_Class_Info fill(Constant_Info[] constant_infos) {
fillForException(name_index, constant_infos, Constant_Utf8_Info.class);
valueof_name_index = (Constant_Utf8_Info) constant_infos[name_index.getValue()];
return this;
}
}