98
99 public final static int MAX_PARAMETERS = 0xff;
100 public final static int MAX_DIMENSIONS = 0xff;
101 public final static int MAX_CODE = 0xffff;
102 public final static int MAX_LOCALS = 0xffff;
103 public final static int MAX_STACK = 0xffff;
104
105 public final static int PREVIEW_MINOR_VERSION = 0xffff;
106
107 public enum Version {
108 V45_3(45, 3), // base level for all attributes
109 V49(49, 0), // JDK 1.5: enum, generics, annotations
110 V50(50, 0), // JDK 1.6: stackmaps
111 V51(51, 0), // JDK 1.7
112 V52(52, 0), // JDK 1.8: lambda, type annos, param names
113 V53(53, 0), // JDK 1.9: modules, indy string concat
114 V54(54, 0), // JDK 10
115 V55(55, 0), // JDK 11: constant dynamic, nest mates
116 V56(56, 0), // JDK 12
117 V57(57, 0), // JDK 13
118 V58(58, 0); // JDK 14
119 Version(int major, int minor) {
120 this.major = major;
121 this.minor = minor;
122 }
123 public final int major, minor;
124
125 private static final Version MIN = values()[0];
126 /** Return the least version supported, MIN */
127 public static Version MIN() { return MIN; }
128
129 private static final Version MAX = values()[values().length-1];
130 /** Return the largest version supported, MAX */
131 public static Version MAX() { return MAX; }
132 }
133
134
135 /************************************************************************
136 * String Translation Routines
137 ***********************************************************************/
138
|
98
99 public final static int MAX_PARAMETERS = 0xff;
100 public final static int MAX_DIMENSIONS = 0xff;
101 public final static int MAX_CODE = 0xffff;
102 public final static int MAX_LOCALS = 0xffff;
103 public final static int MAX_STACK = 0xffff;
104
105 public final static int PREVIEW_MINOR_VERSION = 0xffff;
106
107 public enum Version {
108 V45_3(45, 3), // base level for all attributes
109 V49(49, 0), // JDK 1.5: enum, generics, annotations
110 V50(50, 0), // JDK 1.6: stackmaps
111 V51(51, 0), // JDK 1.7
112 V52(52, 0), // JDK 1.8: lambda, type annos, param names
113 V53(53, 0), // JDK 1.9: modules, indy string concat
114 V54(54, 0), // JDK 10
115 V55(55, 0), // JDK 11: constant dynamic, nest mates
116 V56(56, 0), // JDK 12
117 V57(57, 0), // JDK 13
118 V58(58, 0), // JDK 14
119 V59(59, 0); // JDK 15
120 Version(int major, int minor) {
121 this.major = major;
122 this.minor = minor;
123 }
124 public final int major, minor;
125
126 private static final Version MIN = values()[0];
127 /** Return the least version supported, MIN */
128 public static Version MIN() { return MIN; }
129
130 private static final Version MAX = values()[values().length-1];
131 /** Return the largest version supported, MAX */
132 public static Version MAX() { return MAX; }
133 }
134
135
136 /************************************************************************
137 * String Translation Routines
138 ***********************************************************************/
139
|