-
Notifications
You must be signed in to change notification settings - Fork 0
/
attribute_modules.go
55 lines (45 loc) · 922 Bytes
/
attribute_modules.go
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
package parser
type AttributeModule struct {
ModuleNameIndex uint16
ModuleFlags uint16
ModuleVersionIndex uint16
Requires []*Require
Exports []*Export
Opens []*Open
Uses []uint16
Provides []*Provide
}
func (*AttributeModule) Name() string {
return "Module"
}
type Require struct {
RequiresIndex uint16
RequiresFlags uint16
RequiresVersionIndex uint16
}
type Export struct {
ExportsIndex uint16
ExportsFlags uint16
ExportsTo []uint16
}
type Open struct {
OpensIndex uint16
OpensFlags uint16
OpensTo []uint16
}
type Provide struct {
ProvidesIndex uint16
ProvidesWith []uint16
}
type AttributeModulePackages struct {
PackageIndexes []uint16
}
func (a *AttributeModulePackages) Name() string {
return "Module"
}
type AttributeModuleMainClass struct {
MainClassIndex uint16
}
func (a *AttributeModuleMainClass) Name() string {
return "ModuleMainClass"
}