Debian Codegraph @

test/harness/jpype/common/Fixture.java

raw symbols SCIP
1 /* ****************************************************************************
2 Licensed under the Apache License, Version 2.0 (the "License");
3 you may not use this file except in compliance with the License.
4 You may obtain a copy of the License at
5
6 http://www.apache.org/licenses/LICENSE-2.0
7
8 Unless required by applicable law or agreed to in writing, software
9 distributed under the License is distributed on an "AS IS" BASIS,
10 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 See the License for the specific language governing permissions and
12 limitations under the License.
13
14 See NOTICE file for details.
15 **************************************************************************** */
16 package jpype.common;
17
18 public class Fixture
19 {
20 // Tests for access
21
22 private static Object static_private_object_field
23 = new String("private static object field");
24 private Object private_object_field
25 = new String("private object field");
26 public final static Object final_static_object_field
27 = new String("final static object field");
28 public final Object final_object_field
29 = new String("final object field");
30
31 public final static int final_static_int_field = 12345;
32 public final int final_int_field = 67890;
33
34 public static boolean static_bool_field;
35 public static char static_char_field;
36 public static byte static_byte_field;
37 public static short static_short_field;
38 public static int static_int_field;
39 public static long static_long_field;
40 public static float static_float_field;
41 public static double static_double_field;
42 public static Object static_object_field;
43
44 public static boolean getStaticBool()
45 {
46 return static_bool_field;
47 }
48
49 public static char getStaticChar()
50 {
51 return static_char_field;
52 }
53
54 public static byte getStaticByte()
55 {
56 return static_byte_field;
57 }
58
59 public static short getStaticShort()
60 {
61 return static_short_field;
62 }
63
64 public static int getStaticInt()
65 {
66 return static_int_field;
67 }
68
69 public static long getStaticLong()
70 {
71 return static_long_field;
72 }
73
74 public static float getStaticFloat()
75 {
76 return static_float_field;
77 }
78
79 public static double getStaticDouble()
80 {
81 return static_double_field;
82 }
83
84 public static Object getStaticObject()
85 {
86 return static_object_field;
87 }
88
89 public static void setStaticBool(boolean i)
90 {
91 static_bool_field = i;
92 }
93
94 public static void setStaticChar(char i)
95 {
96 static_char_field = i;
97 }
98
99 public static void setStaticByte(byte i)
100 {
101 static_byte_field = i;
102 }
103
104 public static void setStaticShort(short i)
105 {
106 static_short_field = i;
107 }
108
109 public static void setStaticInt(int i)
110 {
111 static_int_field = i;
112 }
113
114 public static void setStaticLong(long i)
115 {
116 static_long_field = i;
117 }
118
119 public static void setStaticFloat(float i)
120 {
121 static_float_field = i;
122 }
123
124 public static void setStaticDouble(double i)
125 {
126 static_double_field = i;
127 }
128
129 public static void setStaticObject(Object i)
130 {
131 static_object_field = i;
132 }
133
134 public boolean bool_field;
135 public char char_field;
136 public byte byte_field;
137 public short short_field;
138 public int int_field;
139 public long long_field;
140 public float float_field;
141 public double double_field;
142 public Object object_field;
143
144 public boolean getBool()
145 {
146 return bool_field;
147 }
148
149 public char getChar()
150 {
151 return char_field;
152 }
153
154 public byte getByte()
155 {
156 return byte_field;
157 }
158
159 public short getShort()
160 {
161 return short_field;
162 }
163
164 public int getInt()
165 {
166 return int_field;
167 }
168
169 public long getLong()
170 {
171 return long_field;
172 }
173
174 public float getFloat()
175 {
176 return float_field;
177 }
178
179 public double getDouble()
180 {
181 return double_field;
182 }
183
184 public Object getObject()
185 {
186 return object_field;
187 }
188
189 public void setBool(boolean i)
190 {
191 bool_field = i;
192 }
193
194 public void setChar(char i)
195 {
196 char_field = i;
197 }
198
199 public void setByte(byte i)
200 {
201 byte_field = i;
202 }
203
204 public void setShort(short i)
205 {
206 short_field = i;
207 }
208
209 public void setInt(int i)
210 {
211 int_field = i;
212 }
213
214 public void setLong(long i)
215 {
216 long_field = i;
217 }
218
219 public void setFloat(float i)
220 {
221 float_field = i;
222 }
223
224 public void setDouble(double i)
225 {
226 double_field = i;
227 }
228
229 public void setObject(Object i)
230 {
231 object_field = i;
232 }
233
234 public static boolean throwStaticBool()
235 {
236 throw new RuntimeException("bool");
237 }
238
239 public static char throwStaticChar()
240 {
241 throw new RuntimeException("char");
242 }
243
244 public static byte throwStaticByte()
245 {
246 throw new RuntimeException("byte");
247 }
248
249 public static short throwStaticShort()
250 {
251 throw new RuntimeException("short");
252 }
253
254 public static int throwStaticInt()
255 {
256 throw new RuntimeException("int");
257 }
258
259 public static long throwStaticLong()
260 {
261 throw new RuntimeException("long");
262 }
263
264 public static float throwStaticFloat()
265 {
266 throw new RuntimeException("float");
267 }
268
269 public static double throwStaticDouble()
270 {
271 throw new RuntimeException("double");
272 }
273
274 public static Object throwStaticObject()
275 {
276 throw new RuntimeException("object");
277 }
278
279 public boolean throwBool()
280 {
281 throw new RuntimeException("bool");
282 }
283
284 public char throwChar()
285 {
286 throw new RuntimeException("char");
287 }
288
289 public byte throwByte()
290 {
291 throw new RuntimeException("byte");
292 }
293
294 public short throwShort()
295 {
296 throw new RuntimeException("short");
297 }
298
299 public int throwInt()
300 {
301 throw new RuntimeException("int");
302 }
303
304 public long throwLong()
305 {
306 throw new RuntimeException("long");
307 }
308
309 public float throwFloat()
310 {
311 throw new RuntimeException("float");
312 }
313
314 public double throwDouble()
315 {
316 throw new RuntimeException("double");
317 }
318
319 public Object throwObject()
320 {
321 throw new RuntimeException("object");
322 }
323
324 public boolean callBoolean(boolean i)
325 {
326 return i;
327 }
328
329 public byte callByte(byte i)
330 {
331 return i;
332 }
333
334 public char callChar(char i)
335 {
336 return i;
337 }
338
339 public short callShort(short i)
340 {
341 return i;
342 }
343
344 public int callInt(int i)
345 {
346 return i;
347 }
348
349 public long callLong(long i)
350 {
351 return i;
352 }
353
354 public float callFloat(float i)
355 {
356 return i;
357 }
358
359 public double callDouble(double i)
360 {
361 return i;
362 }
363
364 public String callString(String i)
365 {
366 return i;
367 }
368
369 public java.lang.Boolean callBoxedBoolean(java.lang.Boolean i)
370 {
371 return i;
372 }
373
374 public java.lang.Byte callBoxedByte(java.lang.Byte i)
375 {
376 return i;
377 }
378
379 public java.lang.Character callBoxedChar(java.lang.Character i)
380 {
381 return i;
382 }
383
384 public java.lang.Short callBoxedShort(java.lang.Short i)
385 {
386 return i;
387 }
388
389 public java.lang.Integer callBoxedInt(java.lang.Integer i)
390 {
391 return i;
392 }
393
394 public java.lang.Long callBoxedLong(java.lang.Long i)
395 {
396 return i;
397 }
398
399 public java.lang.Float callBoxedFloat(java.lang.Float i)
400 {
401 return i;
402 }
403
404 public java.lang.Double callBoxedDouble(java.lang.Double i)
405 {
406 return i;
407 }
408
409 public static boolean callStaticBoolean(boolean i)
410 {
411 return i;
412 }
413
414 public static byte callStaticByte(byte i)
415 {
416 return i;
417 }
418
419 public static char callStaticChar(char i)
420 {
421 return i;
422 }
423
424 public static short callStaticShort(short i)
425 {
426 return i;
427 }
428
429 public static int callStaticInt(int i)
430 {
431 return i;
432 }
433
434 public static long callStaticLong(long i)
435 {
436 return i;
437 }
438
439 public static float callStaticFloat(float i)
440 {
441 return i;
442 }
443
444 public static double callStaticDouble(double i)
445 {
446 return i;
447 }
448
449 public static String callStaticString(String i)
450 {
451 return i;
452 }
453
454 public static Object callStaticObject(Object i)
455 {
456 return i;
457 }
458
459 private static Object callPrivateStaticObject(Object i)
460 {
461 return i;
462 }
463
464 public Object callObject(Object i)
465 {
466 return i;
467 }
468
469 private Object callPrivateObject(Object i)
470 {
471 return i;
472 }
473
474 protected Object callProtectedObject(Object i)
475 {
476 return i;
477 }
478
479 public static Number callNumber(Number n)
480 {
481 return n;
482 }
483
484 public Object callSupplier(java.util.function.Supplier s)
485 {
486 return s.get();
487 }
488
489 public Object callCharArray(char[] c)
490 {
491 return c;
492 }
493
494 public Object callByteArray(byte[] c)
495 {
496 return c;
497 }
498
499 public Object callClass(Class c)
500 {
501 return c;
502 }
503
504 public Iterable callIterable(Iterable c)
505 {
506 return c;
507 }
508
509 }