-
Notifications
You must be signed in to change notification settings - Fork 131
Expand file tree
/
Copy pathConst.java
More file actions
3459 lines (3003 loc) · 133 KB
/
Const.java
File metadata and controls
3459 lines (3003 loc) · 133 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
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.bcel;
import java.util.Arrays;
import java.util.Collections;
/**
* Constants for the project, mostly defined in the JVM specification.
*
* @since 6.0 (intended to replace the Constants interface)
*/
public final class Const {
/**
* Java class file format Magic number: {@value}.
*
* @see <a href="https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.1-200-A"> The ClassFile Structure in The Java Virtual Machine
* Specification</a>
*/
public static final int JVM_CLASSFILE_MAGIC = 0xCAFEBABE;
/**
* Major version number of class files for Java 1.1: {@value}.
*
* @see #MINOR_1_1
*/
public static final short MAJOR_1_1 = 45;
/**
* Minor version number of class files for Java 1.1: {@value}.
*
* @see #MAJOR_1_1
*/
public static final short MINOR_1_1 = 3;
/**
* Major version number of class files for Java 1.2: {@value}.
*
* @see #MINOR_1_2
*/
public static final short MAJOR_1_2 = 46;
/**
* Minor version number of class files for Java 1.2: {@value}.
*
* @see #MAJOR_1_2
*/
public static final short MINOR_1_2 = 0;
/**
* Major version number of class files for Java 1.2: {@value}.
*
* @see #MINOR_1_2
*/
public static final short MAJOR_1_3 = 47;
/**
* Minor version number of class files for Java 1.3: {@value}.
*
* @see #MAJOR_1_3
*/
public static final short MINOR_1_3 = 0;
/**
* Major version number of class files for Java 1.3: {@value}.
*
* @see #MINOR_1_3
*/
public static final short MAJOR_1_4 = 48;
/**
* Minor version number of class files for Java 1.4: {@value}.
*
* @see #MAJOR_1_4
*/
public static final short MINOR_1_4 = 0;
/**
* Major version number of class files for Java 1.4: {@value}.
*
* @see #MINOR_1_4
*/
public static final short MAJOR_1_5 = 49;
/**
* Minor version number of class files for Java 1.5: {@value}.
*
* @see #MAJOR_1_5
*/
public static final short MINOR_1_5 = 0;
/**
* Major version number of class files for Java 1.6: {@value}.
*
* @see #MINOR_1_6
*/
public static final short MAJOR_1_6 = 50;
/**
* Minor version number of class files for Java 1.6: {@value}.
*
* @see #MAJOR_1_6
*/
public static final short MINOR_1_6 = 0;
/**
* Major version number of class files for Java 1.7: {@value}.
*
* @see #MINOR_1_7
*/
public static final short MAJOR_1_7 = 51;
/**
* Minor version number of class files for Java 1.7: {@value}.
*
* @see #MAJOR_1_7
*/
public static final short MINOR_1_7 = 0;
/**
* Major version number of class files for Java 1.8: {@value}.
*
* @see #MINOR_1_8
*/
public static final short MAJOR_1_8 = 52;
/**
* Minor version number of class files for Java 1.8: {@value}.
*
* @see #MAJOR_1_8
*/
public static final short MINOR_1_8 = 0;
/**
* Major version number of class files for Java 9: {@value}.
*
* @see #MINOR_9
*/
public static final short MAJOR_9 = 53;
/**
* Minor version number of class files for Java 9: {@value}.
*
* @see #MAJOR_9
*/
public static final short MINOR_9 = 0;
/**
* @deprecated Use {@link #MAJOR_9} ({@value}) instead.
*/
@Deprecated
public static final short MAJOR_1_9 = MAJOR_9;
/**
* @deprecated Use {@link #MINOR_9} ({@value}) instead.
*/
@Deprecated
public static final short MINOR_1_9 = MINOR_9;
/**
* Major version number of class files for Java 10: {@value}.
*
* @see #MINOR_10
*/
public static final short MAJOR_10 = 54;
/**
* Minor version number of class files for Java 10: {@value}.
*
* @see #MAJOR_10
*/
public static final short MINOR_10 = 0;
/**
* Major version number of class files for Java 11: {@value}.
*
* @see #MINOR_11
*/
public static final short MAJOR_11 = 55;
/**
* Minor version number of class files for Java 11: {@value}.
*
* @see #MAJOR_11
*/
public static final short MINOR_11 = 0;
/**
* Major version number of class files for Java 12: {@value}.
*
* @see #MINOR_12
*/
public static final short MAJOR_12 = 56;
/**
* Minor version number of class files for Java 12: {@value}.
*
* @see #MAJOR_12
*/
public static final short MINOR_12 = 0;
/**
* Major version number of class files for Java 13: {@value}.
*
* @see #MINOR_13
*/
public static final short MAJOR_13 = 57;
/**
* Minor version number of class files for Java 13: {@value}.
*
* @see #MAJOR_13
*/
public static final short MINOR_13 = 0;
/**
* Minor version number of class files for Java 14: {@value}.
*
* @see #MAJOR_14
* @since 6.4.0
*/
public static final short MINOR_14 = 0;
/**
* Minor version number of class files for Java 15: {@value}.
*
* @see #MAJOR_15
* @since 6.6.0
*/
public static final short MINOR_15 = 0;
/**
* Minor version number of class files for Java 16: {@value}.
*
* @see #MAJOR_16
* @since 6.6.0
*/
public static final short MINOR_16 = 0;
/**
* Minor version number of class files for Java 17: {@value}.
*
* @see #MAJOR_17
* @since 6.6.0
*/
public static final short MINOR_17 = 0;
/**
* Minor version number of class files for Java 18: {@value}.
*
* @see #MAJOR_18
* @since 6.6.0
*/
public static final short MINOR_18 = 0;
/**
* Minor version number of class files for Java 19: {@value}.
*
* @see #MAJOR_19
* @since 6.6.0
*/
public static final short MINOR_19 = 0;
/**
* Minor version number of class files for Java 20: {@value}.
*
* @see #MAJOR_20
* @since 6.8.0
*/
public static final short MINOR_20 = 0;
/**
* Minor version number of class files for Java 21: {@value}.
*
* @see #MAJOR_21
* @since 6.8.0
*/
public static final short MINOR_21 = 0;
/**
* Minor version number of class files for Java 22: {@value}.
*
* @see #MAJOR_22
* @since 6.10.0
*/
public static final short MINOR_22 = 0;
/**
* Minor version number of class files for Java 23: {@value}.
*
* @see #MAJOR_23
* @since 6.10.0
*/
public static final short MINOR_23 = 0;
/**
* Minor version number of class files for Java 24: {@value}.
*
* @see #MAJOR_24
* @since 6.10.0
*/
public static final short MINOR_24 = 0;
/**
* Minor version number of class files for Java 25: {@value}.
*
* @see #MAJOR_25
* @since 6.11.0
*/
public static final short MINOR_25 = 0;
/**
* Minor version number of class files for Java 26: {@value}.
*
* @see #MAJOR_26
* @since 6.12.0
*/
public static final short MINOR_26 = 0;
/**
* Major version number of class files for Java 14: {@value}.
*
* @see #MINOR_14
* @since 6.4.0
*/
public static final short MAJOR_14 = 58;
/**
* Major version number of class files for Java 15: {@value}.
*
* @see #MINOR_15
* @since 6.6.0
*/
public static final short MAJOR_15 = 59;
/**
* Major version number of class files for Java 16: {@value}.
*
* @see #MINOR_16
* @since 6.6.0
*/
public static final short MAJOR_16 = 60;
/**
* Major version number of class files for Java 17: {@value}.
*
* @see #MINOR_17
* @since 6.6.0
*/
public static final short MAJOR_17 = 61;
/**
* Major version number of class files for Java 18: {@value}.
*
* @see #MINOR_18
* @since 6.6.0
*/
public static final short MAJOR_18 = 62;
/**
* Major version number of class files for Java 19: {@value}.
*
* @see #MINOR_19
* @since 6.6.0
*/
public static final short MAJOR_19 = 63;
/**
* Major version number of class files for Java 20: {@value}.
*
* @see #MINOR_20
* @since 6.8.0
*/
public static final short MAJOR_20 = 64;
/**
* Major version number of class files for Java 21: {@value}.
*
* @see #MINOR_21
* @since 6.8.0
*/
public static final short MAJOR_21 = 65;
/**
* Major version number of class files for Java 22: {@value}.
*
* @see #MINOR_22
* @since 6.10.0
*/
public static final short MAJOR_22 = 66;
/**
* Major version number of class files for Java 23: {@value}.
*
* @see #MINOR_23
* @since 6.10.0
*/
public static final short MAJOR_23 = 67;
/**
* Major version number of class files for Java 24: {@value}.
*
* @see #MINOR_24
* @since 6.10.0
*/
public static final short MAJOR_24 = 68;
/**
* Major version number of class files for Java 25: {@value}.
*
* @see #MINOR_25
* @since 6.11.0
*/
public static final short MAJOR_25 = 69;
/**
* Major version number of class files for Java 26: {@value}.
*
* @see #MINOR_26
* @since 6.12.0
*/
public static final short MAJOR_26 = 70;
/**
* Default major version number. Class file is for Java 1.1: {@value}.
*
* @see #MAJOR_1_1
*/
public static final short MAJOR = MAJOR_1_1;
/**
* Default major version number. Class file is for Java 1.1: {@value}.
*
* @see #MAJOR_1_1
*/
public static final short MINOR = MINOR_1_1;
/**
* Maximum value for an unsigned short: {@value}.
*/
public static final int MAX_SHORT = 65535; // 2^16 - 1
/**
* Maximum value for an unsigned byte: {@value}.
*/
public static final int MAX_BYTE = 255; // 2^8 - 1
/**
* One of the access flags for fields, methods, or classes: {@value}.
*
* @see <a href="https://docs.oracle.com/javase/specs/jvms/se9/html/jvms-4.html#jvms-4.1-200-E.1"> Flag definitions for Classes in the Java Virtual Machine
* Specification (Java SE 9 Edition).</a>
* @see <a href="https://docs.oracle.com/javase/specs/jvms/se9/html/jvms-4.html#jvms-4.5"> Flag definitions for Fields in the Java Virtual Machine
* Specification (Java SE 9 Edition).</a>
* @see <a href="https://docs.oracle.com/javase/specs/jvms/se9/html/jvms-4.html#jvms-4.6"> Flag definitions for Methods in the Java Virtual Machine
* Specification (Java SE 9 Edition).</a>
* @see <a href="https://docs.oracle.com/javase/specs/jvms/se9/html/jvms-4.html#jvms-4.7.6-300-D.1-D.1"> Flag definitions for Inner Classes in the Java
* Virtual Machine Specification (Java SE 9 Edition).</a>
*/
public static final short ACC_PUBLIC = 0x0001;
/**
* One of the access flags for fields, methods, or classes: {@value}.
*
* @see #ACC_PUBLIC
*/
public static final short ACC_PRIVATE = 0x0002;
/**
* One of the access flags for fields, methods, or classes: {@value}.
*
* @see #ACC_PUBLIC
*/
public static final short ACC_PROTECTED = 0x0004;
/**
* One of the access flags for fields, methods, or classes: {@value}.
*
* @see #ACC_PUBLIC
*/
public static final short ACC_STATIC = 0x0008;
/**
* One of the access flags for fields, methods, or classes: {@value}.
*
* @see #ACC_PUBLIC
*/
public static final short ACC_FINAL = 0x0010;
/**
* One of the access flags for the Module attribute: {@value}.
*
* @see #ACC_PUBLIC
*/
public static final short ACC_OPEN = 0x0020;
/**
* One of the access flags for classes: {@value}.
*
* @see #ACC_PUBLIC
*/
public static final short ACC_SUPER = 0x0020;
/**
* One of the access flags for methods: {@value}.
*
* @see #ACC_PUBLIC
*/
public static final short ACC_SYNCHRONIZED = 0x0020;
/**
* One of the access flags for the Module attribute: {@value}.
*
* @see #ACC_PUBLIC
*/
public static final short ACC_TRANSITIVE = 0x0020;
/**
* One of the access flags for methods: {@value}.
*
* @see #ACC_PUBLIC
*/
public static final short ACC_BRIDGE = 0x0040;
/**
* One of the access flags for the Module attribute: {@value}.
*
* @see #ACC_PUBLIC
*/
public static final short ACC_STATIC_PHASE = 0x0040;
/**
* One of the access flags for fields: {@value}.
*
* @see #ACC_PUBLIC
*/
public static final short ACC_VOLATILE = 0x0040;
/**
* One of the access flags for fields: {@value}.
*
* @see #ACC_PUBLIC
*/
public static final short ACC_TRANSIENT = 0x0080;
/**
* One of the access flags for methods: {@value}.
*
* @see #ACC_PUBLIC
*/
public static final short ACC_VARARGS = 0x0080;
/**
* One of the access flags for methods: {@value}.
*
* @see #ACC_PUBLIC
*/
public static final short ACC_NATIVE = 0x0100;
/**
* One of the access flags for classes: {@value}.
*
* @see #ACC_PUBLIC
*/
public static final short ACC_INTERFACE = 0x0200;
/**
* One of the access flags for methods or classes: {@value}.
*
* @see #ACC_PUBLIC
*/
public static final short ACC_ABSTRACT = 0x0400;
/**
* One of the access flags for methods: {@value}.
*
* @see #ACC_PUBLIC
*/
public static final short ACC_STRICT = 0x0800;
/**
* One of the access flags for fields, methods, classes, MethodParameter attribute, or Module attribute: {@value}.
*
* @see #ACC_PUBLIC
*/
public static final short ACC_SYNTHETIC = 0x1000;
/**
* One of the access flags for classes: {@value}.
*
* @see #ACC_PUBLIC
*/
public static final short ACC_ANNOTATION = 0x2000;
/**
* One of the access flags for fields or classes: {@value}.
*
* @see #ACC_PUBLIC
*/
public static final short ACC_ENUM = 0x4000;
// Applies to classes compiled by new compilers only
/**
* One of the access flags for MethodParameter or Module attributes: {@value}.
*
* @see #ACC_PUBLIC
*/
public static final short ACC_MANDATED = (short) 0x8000;
/**
* One of the access flags for classes: {@value}.
*
* @see #ACC_PUBLIC
*/
public static final short ACC_MODULE = (short) 0x8000;
/**
* One of the access flags for fields, methods, or classes: {@value}.
*
* @see #ACC_PUBLIC
* @deprecated Use {@link #MAX_ACC_FLAG_I}
*/
@Deprecated
public static final short MAX_ACC_FLAG = ACC_ENUM;
/**
* One of the access flags for fields, methods, or classes. ACC_MODULE is negative as a short: {@value}.
*
* @see #ACC_PUBLIC
* @since 6.4.0
*/
public static final int MAX_ACC_FLAG_I = 0x8000; // ACC_MODULE is negative as a short
// Note that do to overloading:
// 'synchronized' is for methods, might be 'open' (if Module), 'super' (if class), or 'transitive' (if Module).
// 'volatile' is for fields, might be 'bridge' (if method) or 'static_phase' (if Module)
// 'transient' is for fields, might be 'varargs' (if method)
// 'module' is for classes, might be 'mandated' (if Module or MethodParameters)
/**
* The names of the access flags.
*/
private static final String[] ACCESS_NAMES = { "public", "private", "protected", "static", "final", "synchronized", "volatile", "transient", "native",
"interface", "abstract", "strictfp", "synthetic", "annotation", "enum", "module" };
/**
* The length of the ACCESS_NAMES array.
*
* @since 6.0
*/
public static final int ACCESS_NAMES_LENGTH = ACCESS_NAMES.length;
/**
* Marks a constant pool entry as type UTF-8: {@value}.
*
* @see <a href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.4.7"> The Constant Pool in The Java Virtual Machine Specification</a>
*/
public static final byte CONSTANT_Utf8 = 1;
/*
* The description of the constant pool is at: https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.4 References below are to the
* individual sections
*/
/**
* Marks a constant pool entry as type Integer: {@value}.
*
* @see <a href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.4.4"> The Constant Pool in The Java Virtual Machine Specification</a>
*/
public static final byte CONSTANT_Integer = 3;
/**
* Marks a constant pool entry as type Float: {@value}.
*
* @see <a href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.4.4"> The Constant Pool in The Java Virtual Machine Specification</a>
*/
public static final byte CONSTANT_Float = 4;
/**
* Marks a constant pool entry as type Long: {@value}.
*
* @see <a href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.4.5"> The Constant Pool in The Java Virtual Machine Specification</a>
*/
public static final byte CONSTANT_Long = 5;
/**
* Marks a constant pool entry as type Double: {@value}.
*
* @see <a href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.4.5"> The Constant Pool in The Java Virtual Machine Specification</a>
*/
public static final byte CONSTANT_Double = 6;
/**
* Marks a constant pool entry as a Class: {@value}.
*
* @see <a href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.4.1"> The Constant Pool in The Java Virtual Machine Specification</a>
*/
public static final byte CONSTANT_Class = 7;
/**
* Marks a constant pool entry as a Field Reference: {@value}.
*
* @see <a href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.4.2"> The Constant Pool in The Java Virtual Machine Specification</a>
*/
public static final byte CONSTANT_Fieldref = 9;
/**
* Marks a constant pool entry as type String: {@value}.
*
* @see <a href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.4.3"> The Constant Pool in The Java Virtual Machine Specification</a>
*/
public static final byte CONSTANT_String = 8;
/**
* Marks a constant pool entry as a Method Reference: {@value}.
*
* @see <a href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.4.2"> The Constant Pool in The Java Virtual Machine Specification</a>
*/
public static final byte CONSTANT_Methodref = 10;
/**
* Marks a constant pool entry as an Interface Method Reference: {@value}.
*
* @see <a href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.4.2"> The Constant Pool in The Java Virtual Machine Specification</a>
*/
public static final byte CONSTANT_InterfaceMethodref = 11;
/**
* Marks a constant pool entry as a name and type: {@value}.
*
* @see <a href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.4.6"> The Constant Pool in The Java Virtual Machine Specification</a>
*/
public static final byte CONSTANT_NameAndType = 12;
/**
* Marks a constant pool entry as a Method Handle: {@value}.
*
* @see <a href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.4.8"> The Constant Pool in The Java Virtual Machine Specification</a>
*/
public static final byte CONSTANT_MethodHandle = 15;
/**
* Marks a constant pool entry as a Method Type: {@value}.
*
* @see <a href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.4.9"> The Constant Pool in The Java Virtual Machine Specification</a>
*/
public static final byte CONSTANT_MethodType = 16;
/**
* Marks a constant pool entry as dynamically computed: {@value}.
*
* @see <a href="https://docs.oracle.com/javase/specs/jvms/se11/html/jvms-4.html#jvms-4.4.10"> The Constant Pool in The Java Virtual Machine
* Specification</a>
* @since 6.3
*/
public static final byte CONSTANT_Dynamic = 17;
/**
* Marks a constant pool entry as an Invoke Dynamic: {@value}.
*
* @see <a href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.4.10"> The Constant Pool in The Java Virtual Machine
* Specification</a>
*/
public static final byte CONSTANT_InvokeDynamic = 18;
/**
* Marks a constant pool entry as a Module Reference: {@value}.
*
* @see <a href="https://docs.oracle.com/javase/specs/jvms/se9/html/jvms-4.html#jvms-4.4.11"> The Constant Pool in The Java Virtual Machine
* Specification</a>
* @since 6.1
*/
public static final byte CONSTANT_Module = 19;
/**
* Marks a constant pool entry as a Package Reference: {@value}.
*
* @see <a href="https://docs.oracle.com/javase/specs/jvms/se9/html/jvms-4.html#jvms-4.4.12"> The Constant Pool in The Java Virtual Machine
* Specification</a>
* @since 6.1
*/
public static final byte CONSTANT_Package = 20;
/**
* The names of the types of entries in a constant pool. Use getConstantName instead
*/
private static final String[] CONSTANT_NAMES = { "", "CONSTANT_Utf8", "", "CONSTANT_Integer", "CONSTANT_Float", "CONSTANT_Long", "CONSTANT_Double",
"CONSTANT_Class", "CONSTANT_String", "CONSTANT_Fieldref", "CONSTANT_Methodref", "CONSTANT_InterfaceMethodref", "CONSTANT_NameAndType", "", "",
"CONSTANT_MethodHandle", "CONSTANT_MethodType", "CONSTANT_Dynamic", "CONSTANT_InvokeDynamic", "CONSTANT_Module", "CONSTANT_Package" };
/**
* The name of the static initializer, also called "class initialization method" or "interface initialization method". This is {@value}.
*/
public static final String STATIC_INITIALIZER_NAME = "<clinit>";
/**
* The name of every constructor method in a class, also called "instance initialization method". This is {@value}.
*/
public static final String CONSTRUCTOR_NAME = "<init>";
/**
* The names of the interfaces implemented by arrays.
*/
private static final String[] INTERFACES_IMPLEMENTED_BY_ARRAYS = { "java.lang.Cloneable", "java.io.Serializable" };
/**
* Maximum Constant Pool entries: {@value}. One of the limitations of the Java Virtual Machine.
*
* @see <a href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.11-100-A"> The Java Virtual Machine Specification, Java SE 8 Edition,
* page 330, chapter 4.11.</a>
*/
public static final int MAX_CP_ENTRIES = 65535;
/**
* Maximum code size plus one; the code size must be LESS than {@value}.
* <p>
* This limitation is from <a href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.7.3"> The Java Virtual Machine Specification, Java
* SE 8 Edition, 4.7.3 The Code Attribute.</a>:
* </p>
*
* <pre>
* code_length
*
* The value of the code_length item gives the number of bytes in the code array for this method.
*
* The value of code_length must be greater than zero (as the code array must not be empty) and less than 65536"
* </pre>
*
* @see <a href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.7.3"> The Java Virtual Machine Specification, Java SE 8 Edition,
* 4.7.3 The Code Attribute.</a>
*/
public static final int MAX_CODE_SIZE = 65536; // bytes
/**
* The maximum number of dimensions in an array: {@value}. One of the limitations of the Java Virtual Machine.
*
* @see <a href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.3.2-150"> Field Descriptors in The Java Virtual Machine
* Specification</a>
*/
public static final int MAX_ARRAY_DIMENSIONS = 255;
/**
* Java VM opcode {@value}.
*
* @see <a href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-6.html#jvms-6.5.nop"> Opcode definitions in The Java Virtual Machine
* Specification</a>
*/
public static final short NOP = 0;
/**
* Java VM opcode {@value}.
*
* @see <a href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-6.html#jvms-6.5.aconst_null"> Opcode definitions in The Java Virtual Machine
* Specification</a>
*/
public static final short ACONST_NULL = 1;
/**
* Java VM opcode {@value}.
*
* @see <a href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-6.html#jvms-6.5.iconst_i"> Opcode definitions in The Java Virtual Machine
* Specification</a>
*/
public static final short ICONST_M1 = 2;
/**
* Java VM opcode {@value}.
*
* @see <a href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-6.html#jvms-6.5.iconst_i"> Opcode definitions in The Java Virtual Machine
* Specification</a>
*/
public static final short ICONST_0 = 3;
/**
* Java VM opcode {@value}.
*
* @see <a href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-6.html#jvms-6.5.iconst_i"> Opcode definitions in The Java Virtual Machine
* Specification</a>
*/
public static final short ICONST_1 = 4;
/**
* Java VM opcode {@value}.
*
* @see <a href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-6.html#jvms-6.5.iconst_i"> Opcode definitions in The Java Virtual Machine
* Specification</a>
*/
public static final short ICONST_2 = 5;
/**
* Java VM opcode {@value}.
*
* @see <a href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-6.html#jvms-6.5.iconst_i"> Opcode definitions in The Java Virtual Machine
* Specification</a>
*/
public static final short ICONST_3 = 6;
/**
* Java VM opcode {@value}.
*
* @see <a href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-6.html#jvms-6.5.iconst_i"> Opcode definitions in The Java Virtual Machine
* Specification</a>
*/
public static final short ICONST_4 = 7;
/**
* Java VM opcode {@value}.
*
* @see <a href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-6.html#jvms-6.5.iconst_i"> Opcode definitions in The Java Virtual Machine
* Specification</a>
*/
public static final short ICONST_5 = 8;
/**
* Java VM opcode {@value}.
*
* @see <a href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-6.html#jvms-6.5.lconst_l"> Opcode definitions in The Java Virtual Machine
* Specification</a>
*/
public static final short LCONST_0 = 9;
/**
* Java VM opcode {@value}.
*
* @see <a href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-6.html#jvms-6.5.lconst_l"> Opcode definitions in The Java Virtual Machine
* Specification</a>
*/
public static final short LCONST_1 = 10;
/**
* Java VM opcode {@value}.
*
* @see <a href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-6.html#jvms-6.5.fconst_f"> Opcode definitions in The Java Virtual Machine
* Specification</a>
*/
public static final short FCONST_0 = 11;
/**
* Java VM opcode {@value}.
*
* @see <a href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-6.html#jvms-6.5.fconst_f"> Opcode definitions in The Java Virtual Machine
* Specification</a>
*/
public static final short FCONST_1 = 12;
/**
* Java VM opcode {@value}.
*
* @see <a href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-6.html#jvms-6.5.fconst_f"> Opcode definitions in The Java Virtual Machine
* Specification</a>
*/
public static final short FCONST_2 = 13;
/**
* Java VM opcode {@value}.
*
* @see <a href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-6.html#jvms-6.5.dconst_d"> Opcode definitions in The Java Virtual Machine
* Specification</a>
*/
public static final short DCONST_0 = 14;
/**
* Java VM opcode {@value}.
*
* @see <a href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-6.html#jvms-6.5.dconst_d"> Opcode definitions in The Java Virtual Machine
* Specification</a>
*/
public static final short DCONST_1 = 15;
/**
* Java VM opcode {@value}.
*
* @see <a href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-6.html#jvms-6.5.bipush"> Opcode definitions in The Java Virtual Machine
* Specification</a>
*/
public static final short BIPUSH = 16;
/**
* Java VM opcode {@value}.
*
* @see <a href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-6.html#jvms-6.5.sipush"> Opcode definitions in The Java Virtual Machine
* Specification</a>
*/
public static final short SIPUSH = 17;