-
Notifications
You must be signed in to change notification settings - Fork 3
/
annogo.annos.go
55 lines (48 loc) · 1.35 KB
/
annogo.annos.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 annogo
import "reflect"
// DO NOT EDIT!
// This file was generated by aptgo. It registers all runtime-visible annotations
// found in this package.
func init() {
v0 := Annotation{
AllowedElements: []ElementType{
Types,
},
RuntimeVisible: true,
}
RegisterTypeAnnotation(reflect.TypeOf((*Annotation)(nil)).Elem(),
reflect.TypeOf((*Annotation)(nil)).Elem(), v0)
v1 := Annotation{
AllowedElements: []ElementType{
Types,
Fields,
},
RuntimeVisible: true,
}
RegisterTypeAnnotation(reflect.TypeOf((*FactoryFunc)(nil)).Elem(),
reflect.TypeOf((*Annotation)(nil)).Elem(), v1)
v2 := Annotation{
AllowedElements: []ElementType{
AnnotationFields,
},
RuntimeVisible: true,
}
RegisterTypeAnnotation(reflect.TypeOf((*DefaultValue)(nil)).Elem(),
reflect.TypeOf((*Annotation)(nil)).Elem(), v2)
v3 := Annotation{
AllowedElements: []ElementType{
AnnotationFields,
},
RuntimeVisible: true,
}
RegisterTypeAnnotation(reflect.TypeOf((*Required)(nil)).Elem(),
reflect.TypeOf((*Annotation)(nil)).Elem(), v3)
v4 := DefaultValue{
Value: true,
}
RegisterFieldAnnotation(reflect.TypeOf((*Annotation)(nil)).Elem(), "RuntimeVisible",
reflect.TypeOf((*DefaultValue)(nil)).Elem(), v4)
v5 := Required(true)
RegisterFieldAnnotation(reflect.TypeOf((*DefaultValue)(nil)).Elem(), "Value",
reflect.TypeOf((*Required)(nil)).Elem(), v5)
}