-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathAnnotated.java
More file actions
300 lines (227 loc) · 6.73 KB
/
Annotated.java
File metadata and controls
300 lines (227 loc) · 6.73 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
package com.strategyobject.substrateclient.scale;
import com.strategyobject.substrateclient.scale.ScaleType.*;
import com.strategyobject.substrateclient.scale.annotations.ScaleReader;
import com.strategyobject.substrateclient.scale.annotations.ScaleWriter;
import com.strategyobject.substrateclient.scale.annotations.*;
import com.strategyobject.substrateclient.types.Result;
import java.lang.String;
import java.math.BigInteger;
import java.util.List;
import java.util.Optional;
@ScaleReader
@ScaleWriter
public class Annotated<T1, T2, T3> {
@Scale(Bool.class)
private Boolean testBool;
@Scale(CompactBigInteger.class)
private BigInteger testCompactBigInteger;
@Scale(CompactInteger.class)
private Integer testCompactInteger;
@Scale(I8.class)
private Byte testI8;
@Scale(I16.class)
private Short testI16;
@Scale(I32.class)
private Integer testI32;
@Scale(I64.class)
private Long testI64;
@Scale(I128.class)
private BigInteger testI128;
@Scale(OptionBool.class)
private Optional<Boolean> testOptionBool;
@ScaleGeneric(
template = "Option<I32>",
types = {
@Scale(Option.class),
@Scale(I32.class)
})
private Optional<Integer> testOption;
@ScaleGeneric(
template = "Result<Bool, String>",
types = {
@Scale(Result.class),
@Scale(Bool.class),
@Scale(ScaleType.String.class)
}
)
private Result<Boolean, String> testResult;
@Scale(ScaleType.String.class)
private String testString;
@Scale(U8.class)
private Integer testU8;
@Scale(U16.class)
private Integer testU16;
@Scale(U32.class)
private Long testU32;
@Scale(U64.class)
private BigInteger testU64;
@Scale(U128.class)
private BigInteger testU128;
@ScaleGeneric(
template = "Union<I32, Bool, String>",
types = {
@Scale(value = Union3.class, name = "Union"),
@Scale(I32.class),
@Scale(Bool.class),
@Scale(ScaleType.String.class)
}
)
private com.strategyobject.substrateclient.types.union.Union3<Integer, Boolean, String> testUnion;
@ScaleGeneric(
template = "Vec<i32>",
types = {
@Scale(value = I32.class, name = "i32"),
@Scale(Vec.class)
}
)
private List<Integer> testVec;
@Ignore
private Object testIgnore;
@Scale
private T2 testGeneric1;
@Scale
private T3 testGeneric2;
@Scale
private NestedClass<T2> testNestedField;
public Boolean getTestBool() {
return testBool;
}
public void setTestBool(Boolean testBool) {
this.testBool = testBool;
}
public BigInteger getTestCompactBigInteger() {
return testCompactBigInteger;
}
public void setTestCompactBigInteger(BigInteger testCompactBigInteger) {
this.testCompactBigInteger = testCompactBigInteger;
}
public Integer getTestCompactInteger() {
return testCompactInteger;
}
public void setTestCompactInteger(Integer testCompactInteger) {
this.testCompactInteger = testCompactInteger;
}
public Byte getTestI8() {
return testI8;
}
public void setTestI8(Byte testI8) {
this.testI8 = testI8;
}
public Short getTestI16() {
return testI16;
}
public void setTestI16(Short testI16) {
this.testI16 = testI16;
}
public Integer getTestI32() {
return testI32;
}
public void setTestI32(Integer testI32) {
this.testI32 = testI32;
}
public Long getTestI64() {
return testI64;
}
public void setTestI64(Long testI64) {
this.testI64 = testI64;
}
public BigInteger getTestI128() {
return testI128;
}
public void setTestI128(BigInteger testI128) {
this.testI128 = testI128;
}
public Optional<Boolean> getTestOptionBool() {
return testOptionBool;
}
public void setTestOptionBool(Optional<Boolean> testOptionBool) {
this.testOptionBool = testOptionBool;
}
public Optional<Integer> getTestOption() {
return testOption;
}
public void setTestOption(Optional<Integer> testOption) {
this.testOption = testOption;
}
public Result<Boolean, String> getTestResult() {
return testResult;
}
public void setTestResult(Result<Boolean, String> testResult) {
this.testResult = testResult;
}
public String getTestString() {
return testString;
}
public void setTestString(String testString) {
this.testString = testString;
}
public Integer getTestU8() {
return testU8;
}
public void setTestU8(Integer testU8) {
this.testU8 = testU8;
}
public Integer getTestU16() {
return testU16;
}
public void setTestU16(Integer testU16) {
this.testU16 = testU16;
}
public Long getTestU32() {
return testU32;
}
public void setTestU32(Long testU32) {
this.testU32 = testU32;
}
public BigInteger getTestU64() {
return testU64;
}
public void setTestU64(BigInteger testU64) {
this.testU64 = testU64;
}
public BigInteger getTestU128() {
return testU128;
}
public void setTestU128(BigInteger testU128) {
this.testU128 = testU128;
}
public com.strategyobject.substrateclient.types.union.Union3<Integer, Boolean, String> getTestUnion() {
return testUnion;
}
public void setTestUnion(com.strategyobject.substrateclient.types.union.Union3<Integer, Boolean, String> testUnion) {
this.testUnion = testUnion;
}
public List<Integer> getTestVec() {
return testVec;
}
public void setTestVec(List<Integer> testVec) {
this.testVec = testVec;
}
public Object getTestIgnore() {
return testIgnore;
}
public void setTestIgnore(Object testIgnore) {
this.testIgnore = testIgnore;
}
public T2 getTestGeneric1() {
return testGeneric1;
}
public void setTestGeneric1(T2 testGeneric1) {
this.testGeneric1 = testGeneric1;
}
public T3 getTestGeneric2() {
return testGeneric2;
}
public void setTestGeneric2(T3 testGeneric2) {
this.testGeneric2 = testGeneric2;
}
public NestedClass<T2> getTestNestedField() {
return testNestedField;
}
public void setTestNestedField(NestedClass<T2> testNestedField) {
this.testNestedField = testNestedField;
}
public static class NestedClass<T> {
public T nestedField;
}
}