src/share/classes/com/sun/tools/javac/util/Names.java

changeset 1342
1a65d6565b45
parent 1336
26d93df3905a
child 1380
a65971893c50
equal deleted inserted replaced
1341:db36841709e4 1342:1a65d6565b45
116 public final Name java_lang; 116 public final Name java_lang;
117 117
118 // attribute names 118 // attribute names
119 public final Name Annotation; 119 public final Name Annotation;
120 public final Name AnnotationDefault; 120 public final Name AnnotationDefault;
121 public final Name BootstrapMethods;
121 public final Name Bridge; 122 public final Name Bridge;
122 public final Name CharacterRangeTable; 123 public final Name CharacterRangeTable;
123 public final Name Code; 124 public final Name Code;
124 public final Name CompilationID; 125 public final Name CompilationID;
125 public final Name ConstantValue; 126 public final Name ConstantValue;
166 // other identifiers 167 // other identifiers
167 public final Name T; 168 public final Name T;
168 public final Name deprecated; 169 public final Name deprecated;
169 public final Name ex; 170 public final Name ex;
170 public final Name package_info; 171 public final Name package_info;
171
172 // lambda-related
173 public final Name BootstrapMethods;
174 172
175 public final Name.Table table; 173 public final Name.Table table;
176 174
177 public Names(Context context) { 175 public Names(Context context) {
178 Options options = Options.instance(context); 176 Options options = Options.instance(context);
247 java_lang = fromString("java.lang"); 245 java_lang = fromString("java.lang");
248 246
249 // attribute names 247 // attribute names
250 Annotation = fromString("Annotation"); 248 Annotation = fromString("Annotation");
251 AnnotationDefault = fromString("AnnotationDefault"); 249 AnnotationDefault = fromString("AnnotationDefault");
250 BootstrapMethods = fromString("BootstrapMethods");
252 Bridge = fromString("Bridge"); 251 Bridge = fromString("Bridge");
253 CharacterRangeTable = fromString("CharacterRangeTable"); 252 CharacterRangeTable = fromString("CharacterRangeTable");
254 Code = fromString("Code"); 253 Code = fromString("Code");
255 CompilationID = fromString("CompilationID"); 254 CompilationID = fromString("CompilationID");
256 ConstantValue = fromString("ConstantValue"); 255 ConstantValue = fromString("ConstantValue");
297 // other identifiers 296 // other identifiers
298 T = fromString("T"); 297 T = fromString("T");
299 deprecated = fromString("deprecated"); 298 deprecated = fromString("deprecated");
300 ex = fromString("ex"); 299 ex = fromString("ex");
301 package_info = fromString("package-info"); 300 package_info = fromString("package-info");
302
303 //lambda-related
304 BootstrapMethods = fromString("BootstrapMethods");
305 } 301 }
306 302
307 protected Name.Table createTable(Options options) { 303 protected Name.Table createTable(Options options) {
308 boolean useUnsharedTable = options.isSet("useUnsharedTable"); 304 boolean useUnsharedTable = options.isSet("useUnsharedTable");
309 if (useUnsharedTable) 305 if (useUnsharedTable)

mercurial