Repository navigation
Expand file tree
/
Copy pathJavaSignatureParser.java
More file actions
1454 lines (1428 loc) · 57.2 KB
/
Copy pathJavaSignatureParser.java
File metadata and controls
1454 lines (1428 loc) · 57.2 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
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// created by jay 1.0.2 (c) 2002-2004 ats@cs.rit.edu
// skeleton Java 1.0 (c) 2002 ats@cs.rit.edu
// line 17 "src/org/jruby/parser/JavaSignatureParser.y"
package org.jruby.parser;
import java.io.InputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.jruby.ast.java_signature.Annotation;
import org.jruby.ast.java_signature.AnnotationExpression;
import org.jruby.ast.java_signature.AnnotationParameter;
import org.jruby.ast.java_signature.ArrayAnnotationExpression;
import org.jruby.ast.java_signature.ArrayTypeNode;
import org.jruby.ast.java_signature.CharacterLiteral;
import org.jruby.ast.java_signature.ConstructorSignatureNode;
import org.jruby.ast.java_signature.DefaultAnnotationParameter;
import org.jruby.ast.java_signature.MethodSignatureNode;
import org.jruby.ast.java_signature.Literal;
import org.jruby.ast.java_signature.Modifier;
import org.jruby.ast.java_signature.ParameterNode;
import org.jruby.ast.java_signature.PrimitiveTypeNode;
import org.jruby.ast.java_signature.ReferenceTypeNode;
import org.jruby.ast.java_signature.SignatureNode;
import org.jruby.ast.java_signature.StringLiteral;
import org.jruby.ast.java_signature.TypeNode;
import org.jruby.lexer.JavaSignatureLexer;
public class JavaSignatureParser {
private static JavaSignatureParser parser = new JavaSignatureParser();
public static SignatureNode parse(InputStream in) throws IOException, ParserSyntaxException {
return (SignatureNode) parser.yyparse(JavaSignatureLexer.create(in));
}
// line 39 "-"
// %token constants
public static final int BOOLEAN = 257;
public static final int BYTE = 258;
public static final int SHORT = 259;
public static final int INT = 260;
public static final int LONG = 261;
public static final int CHAR = 262;
public static final int FLOAT = 263;
public static final int DOUBLE = 264;
public static final int VOID = 265;
public static final int PUBLIC = 266;
public static final int PROTECTED = 267;
public static final int PRIVATE = 268;
public static final int STATIC = 269;
public static final int ABSTRACT = 270;
public static final int FINAL = 271;
public static final int NATIVE = 272;
public static final int SYNCHRONIZED = 273;
public static final int TRANSIENT = 274;
public static final int VOLATILE = 275;
public static final int STRICTFP = 276;
public static final int IDENTIFIER = 277;
public static final int AND = 278;
public static final int AT = 279;
public static final int DOT = 280;
public static final int COMMA = 281;
public static final int ELLIPSIS = 282;
public static final int EQUAL = 283;
public static final int LCURLY = 284;
public static final int RCURLY = 285;
public static final int LPAREN = 286;
public static final int RPAREN = 287;
public static final int LBRACK = 288;
public static final int RBRACK = 289;
public static final int QUESTION = 290;
public static final int LT = 291;
public static final int GT = 292;
public static final int THROWS = 293;
public static final int EXTENDS = 294;
public static final int SUPER = 295;
public static final int RSHIFT = 296;
public static final int URSHIFT = 297;
public static final int QQ = 298;
public static final int Q = 299;
public static final int CHARACTER_LITERAL = 300;
public static final int STRING_LITERAL = 301;
public static final int yyErrorCode = 256;
/** number of final state.
*/
protected static final int yyFinal = 13;
/** parser tables.
Order is mandated by <i>jay</i>.
*/
protected static final short[] yyLhs = {
//yyLhs 145
-1, 0, 0, 17, 17, 16, 16, 16, 16, 16,
16, 16, 16, 23, 23, 25, 18, 18, 19, 19,
22, 21, 20, 20, 20, 20, 30, 30, 30, 36,
36, 36, 37, 37, 37, 38, 38, 38, 39, 39,
40, 40, 41, 32, 32, 42, 42, 43, 43, 44,
44, 31, 31, 33, 33, 34, 34, 35, 35, 7,
7, 8, 8, 9, 54, 54, 54, 54, 54, 54,
54, 54, 54, 54, 54, 54, 24, 24, 55, 55,
10, 10, 11, 11, 1, 5, 5, 6, 6, 15,
15, 15, 15, 15, 15, 15, 15, 26, 26, 47,
47, 48, 48, 45, 46, 46, 27, 27, 49, 49,
50, 52, 52, 51, 51, 29, 29, 28, 56, 4,
4, 3, 2, 2, 2, 2, 57, 57, 53, 58,
58, 13, 13, 59, 59, 59, 59, 59, 60, 60,
14, 12, 12, 61, 61,
}, yyLen = {
//yyLen 145
2, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 5, 1, 3,
1, 1, 2, 2, 6, 4, 1, 3, 3, 2,
3, 3, 2, 3, 3, 2, 3, 3, 2, 3,
2, 3, 2, 1, 3, 1, 3, 1, 3, 1,
3, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 2, 0, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 3, 2, 3,
2, 0, 1, 3, 4, 1, 0, 1, 3, 2,
1, 3, 2, 3, 2, 4, 3, 1, 3, 3,
1, 1, 3, 2, 2, 2, 2, 3, 1, 1,
3, 1, 1, 2, 1, 2, 2, 2, 0, 3,
5, 4, 4, 6, 4, 6, 1, 4, 2, 3,
1, 1, 3, 1, 1, 1, 3, 2, 1, 3,
0, 1, 1, 1, 1,
}, yyDefRed = {
//yyDefRed 218
0, 64, 65, 66, 67, 68, 69, 70, 71, 72,
73, 74, 0, 0, 1, 2, 0, 0, 60, 0,
61, 75, 76, 0, 10, 5, 6, 7, 8, 9,
11, 12, 0, 0, 0, 0, 0, 0, 13, 14,
4, 0, 62, 0, 0, 0, 0, 15, 0, 100,
101, 0, 0, 0, 119, 0, 0, 0, 0, 0,
0, 0, 0, 144, 143, 0, 0, 142, 134, 0,
0, 133, 131, 130, 135, 77, 0, 124, 104, 0,
105, 103, 108, 109, 0, 0, 0, 0, 0, 0,
20, 82, 0, 78, 0, 122, 0, 0, 0, 0,
52, 43, 0, 45, 54, 53, 0, 0, 0, 0,
87, 0, 137, 138, 0, 127, 0, 0, 0, 0,
106, 99, 102, 0, 120, 0, 0, 0, 79, 29,
0, 0, 0, 38, 0, 0, 0, 0, 121, 0,
97, 0, 0, 0, 136, 132, 129, 84, 0, 0,
107, 111, 110, 112, 125, 123, 83, 0, 0, 30,
0, 31, 0, 0, 0, 0, 47, 56, 55, 39,
44, 46, 0, 0, 0, 88, 93, 0, 139, 0,
117, 0, 116, 115, 113, 0, 0, 0, 32, 0,
40, 0, 0, 95, 98, 0, 0, 33, 0, 34,
0, 0, 0, 49, 58, 57, 41, 48, 0, 0,
35, 42, 0, 0, 36, 0, 37, 50,
}, yyDgoto = {
//yyDgoto 62
13, 46, 14, 34, 15, 108, 109, 16, 17, 18,
54, 88, 65, 66, 67, 110, 97, 68, 37, 38,
39, 180, 91, 40, 69, 48, 142, 80, 149, 150,
100, 101, 102, 103, 166, 203, 104, 167, 204, 105,
168, 205, 106, 169, 206, 49, 50, 51, 52, 81,
82, 151, 152, 19, 20, 56, 83, 71, 72, 73,
114, 74,
}, yySindex = {
//yySindex 218
300, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, -255, 0, 0, 0, 107, 300, 0, -261,
0, 0, 0, -240, 0, 0, 0, 0, 0, 0,
0, 0, -222, -195, -184, -166, -222, -167, 0, 0,
0, -262, 0, -49, -143, -123, -184, 0, -169, 0,
0, -149, 9, -255, 0, -125, -122, -184, 128, 196,
-122, 0, -78, 0, 0, -100, -107, 0, 0, -236,
-94, 0, 0, 0, 0, 0, 196, 0, 0, 228,
0, 0, 0, 0, -195, -222, -184, -222, -90, -86,
0, 0, -240, 0, -92, 0, -119, -166, -74, -88,
0, 0, -60, 0, 0, 0, -182, 228, -63, -55,
0, -105, 0, 0, -219, 0, -49, -21, -62, -258,
0, 0, 0, -184, 0, -184, -255, 128, 0, 0,
228, 228, 162, 0, 128, -255, -122, -89, 0, 196,
0, -50, -59, -21, 0, 0, 0, 0, 228, -44,
0, 0, 0, 0, 0, 0, 0, -48, -88, 0,
-88, 0, -76, -58, -145, -37, 0, 0, 0, 0,
0, 0, -236, -30, -59, 0, 0, -35, 0, 0,
0, -88, 0, 0, 0, -255, 228, 228, 0, 172,
0, 162, -122, 0, 0, -240, -145, 0, -145, 0,
-138, -197, -33, 0, 0, 0, 0, 0, 228, 228,
0, 0, 172, -197, 0, -197, 0, 0,
}, yyRindex = {
//yyRindex 218
116, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 151, 0, 72,
0, 0, 0, 37, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 231, -217, 0, -87, 0, 0,
0, -244, 0, -26, 0, 0, 231, 0, -19, 0,
0, 0, 0, 0, 0, 0, 216, 231, 0, -12,
229, -170, 0, 0, 0, 0, -11, 0, 0, -32,
0, 0, 0, 0, 0, 0, -12, 0, 0, 0,
0, 0, 0, 0, 0, 0, 231, 0, 257, 3,
0, 0, 1, 0, 0, 0, -4, 0, -251, 6,
0, 0, 0, 0, 0, 0, 242, 0, 0, 28,
0, -179, 0, 0, 0, 0, 0, 0, 0, -19,
0, 0, 0, 231, 0, 231, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 255, -161, 0, 0,
0, -154, -146, 0, 0, 0, 0, 0, 0, 7,
0, 0, 0, 0, 0, 0, 0, 4, 8, 0,
10, 0, -4, -238, 6, 0, 0, 0, 0, 0,
0, 0, 187, -144, -132, 0, 0, 0, 0, -239,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 268, 0, 0, 2, 8, 0, 10, 0,
-4, 6, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 8, 0, 10, 0, 0,
}, yyGindex = {
//yyGindex 62
0, -24, 0, 226, 0, 205, 0, 0, 0, 0,
-9, 0, 0, 0, 0, 178, 53, -3, -47, -45,
0, 0, 164, -41, -7, -22, 182, 0, 0, 171,
0, -134, -113, -124, -176, 109, 0, 0, 0, -56,
-158, -6, 198, 0, 0, 243, 266, 0, 0, 0,
0, 177, 0, 0, 335, -34, 235, 14, 239, -46,
0, 0,
};
protected static final short[] yyTable = {
//yyTable 580
170, 16, 17, 18, 19, 23, 89, 60, 90, 41,
171, 98, 57, 36, 21, 207, 113, 99, 44, 165,
148, 70, 22, 120, 59, 43, 55, 18, 197, 199,
18, 21, 98, 16, 133, 60, 207, 77, 119, 21,
44, 18, 21, 18, 44, 41, 92, 16, 95, 87,
197, 199, 55, 13, 18, 45, 111, 170, 18, 18,
3, 123, 143, 125, 3, 3, 144, 171, 3, 35,
3, 146, 136, 111, 159, 161, 202, 124, 170, 89,
98, 90, 47, 98, 98, 163, 99, 98, 171, 158,
160, 164, 182, 99, 70, 133, 35, 178, 135, 190,
211, 98, 90, 179, 137, 35, 55, 181, 90, 53,
76, 76, 35, 15, 154, 35, 155, 76, 76, 92,
92, 76, 55, 78, 58, 79, 92, 94, 172, 35,
159, 161, 84, 94, 75, 89, 111, 96, 192, 163,
163, 89, 163, 96, 163, 196, 198, 133, 201, 91,
164, 190, 159, 161, 129, 91, 208, 209, 188, 210,
35, 163, 163, 76, 93, 163, 94, 213, 215, 35,
35, 201, 140, 129, 116, 130, 131, 141, 195, 24,
25, 26, 27, 28, 29, 30, 31, 115, 140, 117,
18, 126, 35, 173, 18, 18, 35, 128, 18, 22,
18, 12, 214, 216, 133, 127, 62, 112, 24, 25,
26, 27, 28, 29, 30, 31, 129, 132, 186, 187,
188, 134, 63, 64, 138, 147, 139, 176, 61, 177,
12, 81, 185, 189, 148, 62, 24, 25, 26, 27,
28, 29, 30, 31, 191, 16, 16, 193, 212, 16,
16, 63, 64, 16, 194, 16, 22, 80, 12, 16,
16, 140, 118, 62, 16, 16, 24, 25, 26, 27,
28, 29, 30, 31, 85, 86, 141, 26, 86, 63,
64, 118, 16, 17, 18, 19, 22, 51, 114, 27,
156, 28, 16, 17, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 85, 128, 175, 128, 174,
183, 217, 128, 128, 128, 157, 184, 121, 128, 126,
126, 126, 126, 126, 126, 126, 126, 126, 126, 126,
126, 126, 126, 126, 126, 126, 126, 126, 126, 126,
122, 126, 42, 126, 153, 145, 0, 126, 0, 126,
0, 0, 0, 126, 24, 25, 26, 27, 28, 29,
30, 31, 32, 63, 63, 63, 63, 63, 63, 63,
63, 63, 0, 0, 22, 24, 25, 26, 27, 28,
29, 30, 31, 63, 0, 0, 0, 0, 33, 0,
0, 0, 0, 0, 0, 22, 0, 63, 59, 59,
59, 59, 59, 59, 59, 59, 59, 0, 96, 24,
25, 26, 27, 28, 29, 30, 31, 0, 59, 24,
25, 26, 27, 28, 29, 30, 31, 0, 0, 22,
0, 0, 59, 0, 0, 0, 0, 0, 0, 22,
0, 0, 162, 24, 25, 26, 27, 28, 29, 30,
31, 0, 200, 0, 17, 17, 0, 107, 17, 17,
0, 0, 17, 22, 17, 0, 0, 0, 17, 17,
0, 0, 0, 17, 17, 24, 25, 26, 27, 28,
29, 30, 31, 22, 22, 0, 0, 22, 22, 0,
0, 22, 0, 22, 0, 22, 23, 23, 22, 0,
23, 23, 22, 22, 23, 0, 23, 0, 0, 19,
19, 23, 0, 19, 19, 23, 23, 19, 0, 19,
0, 0, 25, 25, 19, 0, 25, 25, 19, 19,
25, 0, 25, 0, 0, 24, 24, 25, 0, 24,
24, 25, 25, 24, 0, 24, 0, 0, 0, 0,
24, 0, 0, 0, 24, 24, 1, 2, 3, 4,
5, 6, 7, 8, 9, 10, 11, 0, 0, 12,
};
protected static final short[] yyCheck = {
//yyCheck 580
134, 0, 0, 0, 0, 12, 53, 41, 53, 16,
134, 58, 36, 16, 0, 191, 62, 58, 280, 132,
278, 43, 277, 79, 286, 286, 288, 278, 186, 187,
281, 17, 79, 277, 292, 69, 212, 46, 79, 278,
280, 292, 281, 281, 280, 52, 53, 291, 57, 52,
208, 209, 288, 292, 292, 277, 59, 191, 296, 297,
277, 85, 281, 87, 281, 282, 285, 191, 285, 16,
287, 117, 106, 76, 130, 131, 189, 86, 212, 126,
127, 126, 277, 130, 131, 132, 127, 134, 212, 130,
131, 132, 148, 134, 116, 292, 43, 143, 280, 296,
297, 148, 281, 148, 107, 52, 288, 148, 287, 293,
280, 281, 59, 283, 123, 62, 125, 287, 288, 126,
281, 291, 288, 292, 291, 294, 287, 281, 135, 76,
186, 187, 281, 287, 277, 281, 139, 281, 172, 186,
187, 287, 189, 287, 191, 186, 187, 292, 189, 281,
191, 296, 208, 209, 292, 287, 294, 295, 296, 297,
107, 208, 209, 286, 289, 212, 288, 208, 209, 116,
117, 212, 277, 292, 281, 294, 295, 282, 185, 257,
258, 259, 260, 261, 262, 263, 264, 287, 277, 283,
277, 281, 139, 282, 281, 282, 143, 289, 285, 277,
287, 279, 208, 209, 292, 291, 284, 285, 257, 258,
259, 260, 261, 262, 263, 264, 292, 291, 294, 295,
296, 281, 300, 301, 287, 287, 281, 277, 277, 288,
279, 0, 280, 291, 278, 284, 257, 258, 259, 260,
261, 262, 263, 264, 281, 277, 278, 277, 281, 281,
282, 300, 301, 285, 289, 287, 277, 0, 279, 291,
292, 287, 281, 284, 296, 297, 257, 258, 259, 260,
261, 262, 263, 264, 265, 287, 287, 281, 52, 300,
301, 76, 281, 281, 281, 281, 277, 281, 281, 281,
126, 281, 291, 291, 257, 258, 259, 260, 261, 262,
263, 264, 265, 266, 267, 268, 269, 270, 271, 272,
273, 274, 275, 276, 277, 287, 279, 139, 281, 137,
149, 212, 285, 286, 287, 127, 149, 84, 291, 257,
258, 259, 260, 261, 262, 263, 264, 265, 266, 267,
268, 269, 270, 271, 272, 273, 274, 275, 276, 277,
84, 279, 17, 281, 119, 116, -1, 285, -1, 287,
-1, -1, -1, 291, 257, 258, 259, 260, 261, 262,
263, 264, 265, 257, 258, 259, 260, 261, 262, 263,
264, 265, -1, -1, 277, 257, 258, 259, 260, 261,
262, 263, 264, 277, -1, -1, -1, -1, 291, -1,
-1, -1, -1, -1, -1, 277, -1, 291, 257, 258,
259, 260, 261, 262, 263, 264, 265, -1, 290, 257,
258, 259, 260, 261, 262, 263, 264, -1, 277, 257,
258, 259, 260, 261, 262, 263, 264, -1, -1, 277,
-1, -1, 291, -1, -1, -1, -1, -1, -1, 277,
-1, -1, 290, 257, 258, 259, 260, 261, 262, 263,
264, -1, 290, -1, 277, 278, -1, 271, 281, 282,
-1, -1, 285, 277, 287, -1, -1, -1, 291, 292,
-1, -1, -1, 296, 297, 257, 258, 259, 260, 261,
262, 263, 264, 277, 278, -1, -1, 281, 282, -1,
-1, 285, -1, 287, -1, 277, 277, 278, 292, -1,
281, 282, 296, 297, 285, -1, 287, -1, -1, 277,
278, 292, -1, 281, 282, 296, 297, 285, -1, 287,
-1, -1, 277, 278, 292, -1, 281, 282, 296, 297,
285, -1, 287, -1, -1, 277, 278, 292, -1, 281,
282, 296, 297, 285, -1, 287, -1, -1, -1, -1,
292, -1, -1, -1, 296, 297, 266, 267, 268, 269,
270, 271, 272, 273, 274, 275, 276, -1, -1, 279,
};
/** maps symbol value to printable name.
@see #yyExpecting
*/
protected static final String[] yyNames = {
"end-of-file",null,null,null,null,null,null,null,null,null,null,null,
null,null,null,null,null,null,null,null,null,null,null,null,null,null,
null,null,null,null,null,null,null,null,null,null,null,null,null,null,
null,null,null,null,null,null,null,null,null,null,null,null,null,null,
null,null,null,null,null,null,null,null,null,null,null,null,null,null,
null,null,null,null,null,null,null,null,null,null,null,null,null,null,
null,null,null,null,null,null,null,null,null,null,null,null,null,null,
null,null,null,null,null,null,null,null,null,null,null,null,null,null,
null,null,null,null,null,null,null,null,null,null,null,null,null,null,
null,null,null,null,null,null,null,null,null,null,null,null,null,null,
null,null,null,null,null,null,null,null,null,null,null,null,null,null,
null,null,null,null,null,null,null,null,null,null,null,null,null,null,
null,null,null,null,null,null,null,null,null,null,null,null,null,null,
null,null,null,null,null,null,null,null,null,null,null,null,null,null,
null,null,null,null,null,null,null,null,null,null,null,null,null,null,
null,null,null,null,null,null,null,null,null,null,null,null,null,null,
null,null,null,null,null,null,null,null,null,null,null,null,null,null,
null,null,null,null,null,null,null,null,null,null,null,null,null,null,
null,null,null,null,null,null,null,"BOOLEAN","BYTE","SHORT","INT",
"LONG","CHAR","FLOAT","DOUBLE","VOID","PUBLIC","PROTECTED","PRIVATE",
"STATIC","ABSTRACT","FINAL","NATIVE","SYNCHRONIZED","TRANSIENT",
"VOLATILE","STRICTFP","IDENTIFIER","AND","AT","DOT","COMMA",
"ELLIPSIS","EQUAL","LCURLY","RCURLY","LPAREN","RPAREN","LBRACK",
"RBRACK","QUESTION","LT","GT","THROWS","EXTENDS","SUPER","RSHIFT",
"URSHIFT","QQ","Q","CHARACTER_LITERAL","STRING_LITERAL",
};
//t /** printable rules for debugging.
//t */
//t protected static final String [] yyRule = {
//t "$accept : program",
//t "program : method_header",
//t "program : constructor_declaration",
//t "type : primitive_type",
//t "type : reference_type",
//t "primitive_type : BYTE",
//t "primitive_type : SHORT",
//t "primitive_type : INT",
//t "primitive_type : LONG",
//t "primitive_type : CHAR",
//t "primitive_type : BOOLEAN",
//t "primitive_type : FLOAT",
//t "primitive_type : DOUBLE",
//t "reference_type : class_or_interface_type",
//t "reference_type : array_type",
//t "type_variable : IDENTIFIER",
//t "class_or_interface : name",
//t "class_or_interface : class_or_interface LT type_argument_list_1 DOT name",
//t "class_or_interface_type : class_or_interface",
//t "class_or_interface_type : class_or_interface LT type_argument_list_1",
//t "class_type : class_or_interface_type",
//t "interface_type : class_or_interface_type",
//t "array_type : primitive_type dims",
//t "array_type : name dims",
//t "array_type : class_or_interface LT type_argument_list_1 DOT name dims",
//t "array_type : class_or_interface LT type_argument_list_1 dims",
//t "wildcard : QUESTION",
//t "wildcard : QUESTION EXTENDS reference_type",
//t "wildcard : QUESTION SUPER reference_type",
//t "wildcard_1 : QUESTION GT",
//t "wildcard_1 : QUESTION EXTENDS reference_type_1",
//t "wildcard_1 : QUESTION SUPER reference_type_1",
//t "wildcard_2 : QUESTION RSHIFT",
//t "wildcard_2 : QUESTION EXTENDS reference_type_2",
//t "wildcard_2 : QUESTION SUPER reference_type_2",
//t "wildcard_3 : QUESTION URSHIFT",
//t "wildcard_3 : QUESTION EXTENDS reference_type_3",
//t "wildcard_3 : QUESTION SUPER reference_type_3",
//t "reference_type_1 : reference_type GT",
//t "reference_type_1 : class_or_interface LT type_argument_list_2",
//t "reference_type_2 : reference_type RSHIFT",
//t "reference_type_2 : class_or_interface LT type_argument_list_3",
//t "reference_type_3 : reference_type URSHIFT",
//t "type_argument_list : type_argument",
//t "type_argument_list : type_argument_list COMMA type_argument",
//t "type_argument_list_1 : type_argument_1",
//t "type_argument_list_1 : type_argument_list COMMA type_argument_1",
//t "type_argument_list_2 : type_argument_2",
//t "type_argument_list_2 : type_argument_list COMMA type_argument_2",
//t "type_argument_list_3 : type_argument_3",
//t "type_argument_list_3 : type_argument_list COMMA type_argument_3",
//t "type_argument : reference_type",
//t "type_argument : wildcard",
//t "type_argument_1 : reference_type_1",
//t "type_argument_1 : wildcard_1",
//t "type_argument_2 : reference_type_2",
//t "type_argument_2 : wildcard_2",
//t "type_argument_3 : reference_type_3",
//t "type_argument_3 : wildcard_3",
//t "modifiers_opt : modifiers",
//t "modifiers_opt : modifiers_none",
//t "modifiers : modifier",
//t "modifiers : modifiers modifier",
//t "modifiers_none :",
//t "modifier : PUBLIC",
//t "modifier : PROTECTED",
//t "modifier : PRIVATE",
//t "modifier : STATIC",
//t "modifier : ABSTRACT",
//t "modifier : FINAL",
//t "modifier : NATIVE",
//t "modifier : SYNCHRONIZED",
//t "modifier : TRANSIENT",
//t "modifier : VOLATILE",
//t "modifier : STRICTFP",
//t "modifier : annotation",
//t "name : IDENTIFIER",
//t "name : name DOT IDENTIFIER",
//t "dims : LBRACK RBRACK",
//t "dims : dims LBRACK RBRACK",
//t "throws : THROWS class_type_list",
//t "throws :",
//t "class_type_list : class_type",
//t "class_type_list : class_type_list COMMA class_type",
//t "method_declarator : IDENTIFIER LPAREN formal_parameter_list_opt RPAREN",
//t "formal_parameter_list_opt : formal_parameter_list",
//t "formal_parameter_list_opt :",
//t "formal_parameter_list : formal_parameter",
//t "formal_parameter_list : formal_parameter_list COMMA formal_parameter",
//t "formal_parameter : type variable_declarator_id",
//t "formal_parameter : type",
//t "formal_parameter : FINAL type variable_declarator_id",
//t "formal_parameter : FINAL type",
//t "formal_parameter : type ELLIPSIS IDENTIFIER",
//t "formal_parameter : type ELLIPSIS",
//t "formal_parameter : FINAL type ELLIPSIS IDENTIFIER",
//t "formal_parameter : FINAL type ELLIPSIS",
//t "variable_declarator_id : IDENTIFIER",
//t "variable_declarator_id : variable_declarator_id LBRACK RBRACK",
//t "type_parameter_list : type_parameter_list COMMA type_parameter",
//t "type_parameter_list : type_parameter",
//t "type_parameter_list_1 : type_parameter_1",
//t "type_parameter_list_1 : type_parameter_list COMMA type_parameter_1",
//t "type_parameter : type_variable type_bound_opt",
//t "type_parameter_1 : type_variable GT",
//t "type_parameter_1 : type_variable type_bound_1",
//t "type_bound_1 : EXTENDS reference_type_1",
//t "type_bound_1 : EXTENDS reference_type additional_bound_list_1",
//t "type_bound_opt : type_bound",
//t "type_bound_opt : none",
//t "type_bound : EXTENDS reference_type additional_bound_list_opt",
//t "additional_bound_list_opt : additional_bound_list",
//t "additional_bound_list_opt : none",
//t "additional_bound_list : additional_bound additional_bound_list",
//t "additional_bound_list : additional_bound",
//t "additional_bound_list_1 : additional_bound additional_bound_list_1",
//t "additional_bound_list_1 : AND reference_type_1",
//t "additional_bound : AND interface_type",
//t "none :",
//t "constructor_declaration : modifiers_opt constructor_declarator throws",
//t "constructor_declaration : modifiers_opt LT type_parameter_list_1 constructor_declarator throws",
//t "constructor_declarator : name LPAREN formal_parameter_list_opt RPAREN",
//t "method_header : modifiers_opt type method_declarator throws",
//t "method_header : modifiers_opt LT type_parameter_list_1 type method_declarator throws",
//t "method_header : modifiers_opt VOID method_declarator throws",
//t "method_header : modifiers_opt LT type_parameter_list_1 VOID method_declarator throws",
//t "annotation : annotation_name",
//t "annotation : annotation_name LPAREN annotation_params_opt RPAREN",
//t "annotation_name : AT name",
//t "annotation_param : type_variable EQUAL annotation_value",
//t "annotation_param : annotation_value",
//t "annotation_params : annotation_param",
//t "annotation_params : annotation_params COMMA annotation_param",
//t "annotation_value : annotation",
//t "annotation_value : type",
//t "annotation_value : literal",
//t "annotation_value : LCURLY annotation_array_values RCURLY",
//t "annotation_value : LCURLY RCURLY",
//t "annotation_array_values : annotation_value",
//t "annotation_array_values : annotation_array_values COMMA annotation_value",
//t "annotation_params_none :",
//t "annotation_params_opt : annotation_params",
//t "annotation_params_opt : annotation_params_none",
//t "literal : STRING_LITERAL",
//t "literal : CHARACTER_LITERAL",
//t };
//t
//t /** debugging support, requires the package <tt>jay.yydebug</tt>.
//t Set to <tt>null</tt> to suppress debugging messages.
//t */
//t protected jay.yydebug.yyDebug yydebug;
//t
//t /** index-checked interface to {@link #yyNames}.
//t @param token single character or <tt>%token</tt> value.
//t @return token name or <tt>[illegal]</tt> or <tt>[unknown]</tt>.
//t */
//t public static final String yyName (int token) {
//t if (token < 0 || token > yyNames.length) return "[illegal]";
//t String name;
//t if ((name = yyNames[token]) != null) return name;
//t return "[unknown]";
//t }
//t
/** simplified error message.
@see #yyerror(java.lang.String, java.lang.String[])
*/
public void yyerror (String message) throws ParserSyntaxException {
throw new ParserSyntaxException(message);
}
/** (syntax) error message.
Can be overwritten to control message format.
@param message text to be displayed.
@param expected list of acceptable tokens, if available.
*/
public void yyerror (String message, String[] expected, String found) throws ParserSyntaxException {
String text = message + ", unexpected " + found + "\n";
throw new ParserSyntaxException(text);
}
/** computes list of expected tokens on error by tracing the tables.
@param state for which to compute the list.
@return list of token names.
*/
protected String[] yyExpecting (int state) {
int token, n, len = 0;
boolean[] ok = new boolean[yyNames.length];
if ((n = yySindex[state]) != 0)
for (token = n < 0 ? -n : 0;
token < yyNames.length && n+token < yyTable.length; ++ token)
if (yyCheck[n+token] == token && !ok[token] && yyNames[token] != null) {
++ len;
ok[token] = true;
}
if ((n = yyRindex[state]) != 0)
for (token = n < 0 ? -n : 0;
token < yyNames.length && n+token < yyTable.length; ++ token)
if (yyCheck[n+token] == token && !ok[token] && yyNames[token] != null) {
++ len;
ok[token] = true;
}
String result[] = new String[len];
for (n = token = 0; n < len; ++ token)
if (ok[token]) result[n++] = yyNames[token];
return result;
}
/** the generated parser, with debugging messages.
Maintains a dynamic state and value stack.
@param yyLex scanner.
@param yydebug debug message writer implementing <tt>yyDebug</tt>, or <tt>null</tt>.
@return result of the last reduction, if any.
@throws ParserSyntaxException on irrecoverable parse error.
*/
public Object yyparse (JavaSignatureLexer yyLex, Object ayydebug)
throws java.io.IOException, ParserSyntaxException {
//t this.yydebug = (jay.yydebug.yyDebug)ayydebug;
return yyparse(yyLex);
}
/** initial size and increment of the state/value stack [default 256].
This is not final so that it can be overwritten outside of invocations
of {@link #yyparse}.
*/
protected int yyMax;
/** executed at the beginning of a reduce action.
Used as <tt>$$ = yyDefault($1)</tt>, prior to the user-specified action, if any.
Can be overwritten to provide deep copy, etc.
@param first value for <tt>$1</tt>, or <tt>null</tt>.
@return first.
*/
protected Object yyDefault (Object first) {
return first;
}
/** the generated parser.
Maintains a dynamic state and value stack.
@param yyLex scanner.
@return result of the last reduction, if any.
@throws ParserSyntaxException on irrecoverable parse error.
*/
public Object yyparse (JavaSignatureLexer yyLex) throws java.io.IOException, ParserSyntaxException {
if (yyMax <= 0) yyMax = 256; // initial size
int yyState = 0, yyStates[] = new int[yyMax]; // state stack
Object yyVal = null, yyVals[] = new Object[yyMax]; // value stack
int yyToken = -1; // current input
int yyErrorFlag = 0; // #tokens to shift
yyLoop: for (int yyTop = 0;; ++ yyTop) {
if (yyTop >= yyStates.length) { // dynamically increase
int[] i = new int[yyStates.length+yyMax];
System.arraycopy(yyStates, 0, i, 0, yyStates.length);
yyStates = i;
Object[] o = new Object[yyVals.length+yyMax];
System.arraycopy(yyVals, 0, o, 0, yyVals.length);
yyVals = o;
}
yyStates[yyTop] = yyState;
yyVals[yyTop] = yyVal;
//t if (yydebug != null) yydebug.push(yyState, yyVal);
yyDiscarded: for (;;) { // discarding a token does not change stack
int yyN;
if ((yyN = yyDefRed[yyState]) == 0) { // else [default] reduce (yyN)
if (yyToken < 0) {
int a1 = yyLex.yylex();
yyToken = a1 == -1 ? 0 : a1;
//t if (yydebug != null)
//t yydebug.lex(yyState, yyToken, yyName(yyToken), yyLex.value());
}
if ((yyN = yySindex[yyState]) != 0 && (yyN += yyToken) >= 0
&& yyN < yyTable.length && yyCheck[yyN] == yyToken) {
//t if (yydebug != null)
//t yydebug.shift(yyState, yyTable[yyN], yyErrorFlag-1);
yyState = yyTable[yyN]; // shift to yyN
yyVal = yyLex.value();
yyToken = -1;
if (yyErrorFlag > 0) -- yyErrorFlag;
continue yyLoop;
}
if ((yyN = yyRindex[yyState]) != 0 && (yyN += yyToken) >= 0
&& yyN < yyTable.length && yyCheck[yyN] == yyToken)
yyN = yyTable[yyN]; // reduce (yyN)
else
switch (yyErrorFlag) {
case 0:
yyerror("syntax error", yyExpecting(yyState), yyNames[yyToken]);
//t if (yydebug != null) yydebug.error("syntax error");
case 1: case 2:
yyErrorFlag = 3;
do {
if ((yyN = yySindex[yyStates[yyTop]]) != 0
&& (yyN += yyErrorCode) >= 0 && yyN < yyTable.length
&& yyCheck[yyN] == yyErrorCode) {
//t if (yydebug != null)
//t yydebug.shift(yyStates[yyTop], yyTable[yyN], 3);
yyState = yyTable[yyN];
yyVal = yyLex.value();
continue yyLoop;
}
//t if (yydebug != null) yydebug.pop(yyStates[yyTop]);
} while (-- yyTop >= 0);
//t if (yydebug != null) yydebug.reject();
throw new ParserSyntaxException("irrecoverable syntax error");
case 3:
if (yyToken == 0) {
//t if (yydebug != null) yydebug.reject();
throw new ParserSyntaxException("irrecoverable syntax error at end-of-file");
}
//t if (yydebug != null)
//t yydebug.discard(yyState, yyToken, yyName(yyToken),
//t yyLex.value());
yyToken = -1;
continue yyDiscarded; // leave stack alone
}
}
int yyV = yyTop + 1-yyLen[yyN];
//t if (yydebug != null)
//t yydebug.reduce(yyState, yyStates[yyV-1], yyN, yyRule[yyN], yyLen[yyN]);
yyVal = yyDefault(yyV > yyTop ? null : yyVals[yyV]);
switch (yyN) {
// ACTIONS_BEGIN
case 1:
// line 135 "src/org/jruby/parser/JavaSignatureParser.y"
{
yyVal = ((MethodSignatureNode)yyVals[0+yyTop]);
}
break;
case 2:
// line 137 "src/org/jruby/parser/JavaSignatureParser.y"
{
yyVal = ((ConstructorSignatureNode)yyVals[0+yyTop]);
}
break;
case 4:
// line 141 "src/org/jruby/parser/JavaSignatureParser.y"
{ yyVal = ((TypeNode)yyVals[0+yyTop]); }
break;
case 5:
// line 144 "src/org/jruby/parser/JavaSignatureParser.y"
{
yyVal = PrimitiveTypeNode.BYTE;
}
break;
case 6:
// line 147 "src/org/jruby/parser/JavaSignatureParser.y"
{
yyVal = PrimitiveTypeNode.SHORT;
}
break;
case 7:
// line 150 "src/org/jruby/parser/JavaSignatureParser.y"
{
yyVal = PrimitiveTypeNode.INT;
}
break;
case 8:
// line 153 "src/org/jruby/parser/JavaSignatureParser.y"
{
yyVal = PrimitiveTypeNode.LONG;
}
break;
case 9:
// line 156 "src/org/jruby/parser/JavaSignatureParser.y"
{
yyVal = PrimitiveTypeNode.CHAR;
}
break;
case 10:
// line 159 "src/org/jruby/parser/JavaSignatureParser.y"
{
yyVal = PrimitiveTypeNode.BOOLEAN;
}
break;
case 11:
// line 162 "src/org/jruby/parser/JavaSignatureParser.y"
{
yyVal = PrimitiveTypeNode.FLOAT;
}
break;
case 12:
// line 165 "src/org/jruby/parser/JavaSignatureParser.y"
{
yyVal = PrimitiveTypeNode.DOUBLE;
}
break;
case 13:
// line 170 "src/org/jruby/parser/JavaSignatureParser.y"
{
yyVal = ((ReferenceTypeNode)yyVals[0+yyTop]);
}
break;
case 14:
// line 173 "src/org/jruby/parser/JavaSignatureParser.y"
{
yyVal = ((ReferenceTypeNode)yyVals[0+yyTop]);
}
break;
case 15:
// line 178 "src/org/jruby/parser/JavaSignatureParser.y"
{
yyVal = ((String)yyVals[0+yyTop]);
}
break;
case 16:
// line 183 "src/org/jruby/parser/JavaSignatureParser.y"
{
yyVal = new ReferenceTypeNode(((String)yyVals[0+yyTop]));
}
break;
case 17:
// line 186 "src/org/jruby/parser/JavaSignatureParser.y"
{
String genericTyping = "<" + ((String)yyVals[-2+yyTop]) + "." + ((String)yyVals[0+yyTop]);
yyVal = ((ReferenceTypeNode)yyVals[-4+yyTop]);
((ReferenceTypeNode)yyVals[-4+yyTop]).setGenericsTyping(genericTyping);
}
break;
case 19:
// line 194 "src/org/jruby/parser/JavaSignatureParser.y"
{
String genericTyping = "<" + ((String)yyVals[0+yyTop]);
yyVal = ((ReferenceTypeNode)yyVals[-2+yyTop]);
((ReferenceTypeNode)yyVals[-2+yyTop]).setGenericsTyping(genericTyping);
}
break;
case 22:
// line 207 "src/org/jruby/parser/JavaSignatureParser.y"
{
((ArrayTypeNode)yyVals[0+yyTop]).setTypeForArray(((TypeNode)yyVals[-1+yyTop]));
yyVal = ((ArrayTypeNode)yyVals[0+yyTop]);
}
break;
case 23:
// line 211 "src/org/jruby/parser/JavaSignatureParser.y"
{
((ArrayTypeNode)yyVals[0+yyTop]).setTypeForArray(new ReferenceTypeNode(((String)yyVals[-1+yyTop])));
yyVal = ((ArrayTypeNode)yyVals[0+yyTop]);
}
break;
case 24:
// line 215 "src/org/jruby/parser/JavaSignatureParser.y"
{
((ReferenceTypeNode)yyVals[-5+yyTop]).setGenericsTyping("<" + ((String)yyVals[-3+yyTop]) + "." + ((String)yyVals[-1+yyTop]));
((ArrayTypeNode)yyVals[0+yyTop]).setTypeForArray(((ReferenceTypeNode)yyVals[-5+yyTop]));
yyVal = ((ArrayTypeNode)yyVals[0+yyTop]);
}
break;
case 25:
// line 220 "src/org/jruby/parser/JavaSignatureParser.y"
{
((ReferenceTypeNode)yyVals[-3+yyTop]).setGenericsTyping("<" + ((String)yyVals[-1+yyTop]));
((ArrayTypeNode)yyVals[0+yyTop]).setTypeForArray(((ReferenceTypeNode)yyVals[-3+yyTop]));
yyVal = ((ArrayTypeNode)yyVals[0+yyTop]);
}
break;
case 26:
// line 227 "src/org/jruby/parser/JavaSignatureParser.y"
{
yyVal = "?";
}
break;
case 27:
// line 229 "src/org/jruby/parser/JavaSignatureParser.y"
{
yyVal = "? extends " + ((ReferenceTypeNode)yyVals[0+yyTop]).getFullyTypedName();
}
break;
case 28:
// line 231 "src/org/jruby/parser/JavaSignatureParser.y"
{
yyVal = "? super " + ((ReferenceTypeNode)yyVals[0+yyTop]).getFullyTypedName();
}
break;
case 29:
// line 236 "src/org/jruby/parser/JavaSignatureParser.y"
{
yyVal = "?>";
}
break;
case 30:
// line 238 "src/org/jruby/parser/JavaSignatureParser.y"
{
yyVal = "? extends " + ((String)yyVals[0+yyTop]);
}
break;
case 31:
// line 240 "src/org/jruby/parser/JavaSignatureParser.y"
{
yyVal = "? super " + ((String)yyVals[0+yyTop]);
}
break;
case 32:
// line 245 "src/org/jruby/parser/JavaSignatureParser.y"
{
yyVal = "?>>";
}
break;
case 33:
// line 247 "src/org/jruby/parser/JavaSignatureParser.y"
{
yyVal = "? extends " + ((String)yyVals[0+yyTop]);
}
break;
case 34:
// line 249 "src/org/jruby/parser/JavaSignatureParser.y"
{
yyVal = "? super " + ((String)yyVals[0+yyTop]);
}
break;
case 35:
// line 254 "src/org/jruby/parser/JavaSignatureParser.y"
{
yyVal = "?>>";
}
break;
case 36:
// line 256 "src/org/jruby/parser/JavaSignatureParser.y"
{
yyVal = "? extends " + ((String)yyVals[0+yyTop]);
}
break;
case 37:
// line 258 "src/org/jruby/parser/JavaSignatureParser.y"
{
yyVal = "? super " + ((String)yyVals[0+yyTop]);
}
break;
case 38:
// line 263 "src/org/jruby/parser/JavaSignatureParser.y"
{
yyVal = ((ReferenceTypeNode)yyVals[-1+yyTop]).getFullyTypedName() + ">";
}
break;
case 39:
// line 265 "src/org/jruby/parser/JavaSignatureParser.y"
{
yyVal = ((ReferenceTypeNode)yyVals[-2+yyTop]).getFullyTypedName() + "<" + ((String)yyVals[0+yyTop]);
}
break;
case 40:
// line 270 "src/org/jruby/parser/JavaSignatureParser.y"
{
yyVal = ((ReferenceTypeNode)yyVals[-1+yyTop]).getFullyTypedName() + ">>";
}
break;
case 41:
// line 272 "src/org/jruby/parser/JavaSignatureParser.y"
{
yyVal = ((ReferenceTypeNode)yyVals[-2+yyTop]).getFullyTypedName() + "<" + ((String)yyVals[0+yyTop]);
}
break;
case 42:
// line 277 "src/org/jruby/parser/JavaSignatureParser.y"
{
yyVal = ((ReferenceTypeNode)yyVals[-1+yyTop]).getFullyTypedName() + ">>>";
}
break;
case 43:
// line 282 "src/org/jruby/parser/JavaSignatureParser.y"
{
yyVal = ((String)yyVals[0+yyTop]);
}
break;
case 44:
// line 285 "src/org/jruby/parser/JavaSignatureParser.y"
{
yyVal = ((String)yyVals[-2+yyTop]) + ", " + ((String)yyVals[0+yyTop]);
}
break;
case 46:
// line 291 "src/org/jruby/parser/JavaSignatureParser.y"
{
yyVal = ((String)yyVals[-2+yyTop]) + ", " + ((String)yyVals[0+yyTop]);
}
break;
case 48:
// line 297 "src/org/jruby/parser/JavaSignatureParser.y"
{
yyVal = ((String)yyVals[-2+yyTop]) + ", " + ((String)yyVals[0+yyTop]);
}
break;
case 50:
// line 303 "src/org/jruby/parser/JavaSignatureParser.y"
{
yyVal = ((String)yyVals[-2+yyTop]) + ", " + ((String)yyVals[0+yyTop]);
}
break;
case 51:
// line 308 "src/org/jruby/parser/JavaSignatureParser.y"
{
yyVal = ((ReferenceTypeNode)yyVals[0+yyTop]).getFullyTypedName();
}
break;
case 61:
// line 326 "src/org/jruby/parser/JavaSignatureParser.y"
{
yyVal = new ArrayList<Object>();
((List)yyVal).add(yyVals[0+yyTop]);
}
break;
case 62:
// line 330 "src/org/jruby/parser/JavaSignatureParser.y"
{
((List)yyVals[-1+yyTop]).add(yyVals[0+yyTop]);
}
break;
case 63:
// line 335 "src/org/jruby/parser/JavaSignatureParser.y"
{ yyVal = new ArrayList<Object>(); }
break;
case 64:
// line 338 "src/org/jruby/parser/JavaSignatureParser.y"
{ yyVal = Modifier.PUBLIC; }
break;
case 65:
// line 339 "src/org/jruby/parser/JavaSignatureParser.y"
{ yyVal = Modifier.PROTECTED; }