< prev index next >

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

Print this page

 97     public final Name iterator;
 98     public final Name length;
 99     public final Name next;
100     public final Name of;
101     public final Name ordinal;
102     public final Name provider;
103     public final Name serialVersionUID;
104     public final Name toString;
105     public final Name value;
106     public final Name valueOf;
107     public final Name values;
108     public final Name readResolve;
109     public final Name readObject;
110 
111     // class names
112     public final Name java_io_Serializable;
113     public final Name java_lang_Class;
114     public final Name java_lang_Cloneable;
115     public final Name java_lang_Enum;
116     public final Name java_lang_Object;

117 
118     // names of builtin classes
119     public final Name Array;
120     public final Name Bound;
121     public final Name Method;
122 
123     // package names
124     public final Name java;
125     public final Name java_lang;
126     public final Name jdk_internal_javac;
127 
128     // module names
129     public final Name java_base;
130     public final Name jdk_unsupported;
131 
132     // attribute names
133     public final Name Annotation;
134     public final Name AnnotationDefault;
135     public final Name BootstrapMethods;
136     public final Name Bridge;
137     public final Name CharacterRangeTable;
138     public final Name Code;
139     public final Name CompilationID;
140     public final Name ConstantValue;
141     public final Name Deprecated;
142     public final Name EnclosingMethod;
143     public final Name Enum;
144     public final Name Exceptions;
145     public final Name InnerClasses;
146     public final Name LineNumberTable;
147     public final Name LocalVariableTable;
148     public final Name LocalVariableTypeTable;
149     public final Name MethodParameters;
150     public final Name Module;
151     public final Name ModuleResolution;
152     public final Name NestHost;
153     public final Name NestMembers;

154     public final Name Record;
155     public final Name RuntimeInvisibleAnnotations;
156     public final Name RuntimeInvisibleParameterAnnotations;
157     public final Name RuntimeInvisibleTypeAnnotations;
158     public final Name RuntimeVisibleAnnotations;
159     public final Name RuntimeVisibleParameterAnnotations;
160     public final Name RuntimeVisibleTypeAnnotations;
161     public final Name Signature;
162     public final Name SourceFile;
163     public final Name SourceID;
164     public final Name StackMap;
165     public final Name StackMapTable;
166     public final Name Synthetic;
167     public final Name Value;
168     public final Name Varargs;
169     public final Name PermittedSubclasses;
170 
171     // members of java.lang.annotation.ElementType
172     public final Name ANNOTATION_TYPE;
173     public final Name CONSTRUCTOR;

188     public final Name SOURCE;
189 
190     // other identifiers
191     public final Name T;
192     public final Name ex;
193     public final Name module_info;
194     public final Name package_info;
195     public final Name requireNonNull;
196     public final Name main;
197 
198     // lambda-related
199     public final Name lambda;
200     public final Name metafactory;
201     public final Name altMetafactory;
202     public final Name dollarThis;
203 
204     // string concat
205     public final Name makeConcat;
206     public final Name makeConcatWithConstants;
207 




208     // record related
209     // members of java.lang.runtime.ObjectMethods
210     public final Name bootstrap;
211 
212     public final Name record;
213     public final Name non;
214 
215     // serialization members, used by records too
216     public final Name serialPersistentFields;
217     public final Name writeObject;
218     public final Name writeReplace;
219     public final Name readObjectNoData;
220 
221     // sealed types
222     public final Name permits;
223     public final Name sealed;
224 
225     // pattern switches
226     public final Name typeSwitch;
227     public final Name enumSwitch;

285         length = fromString("length");
286         next = fromString("next");
287         of = fromString("of");
288         ordinal = fromString("ordinal");
289         provider = fromString("provider");
290         serialVersionUID = fromString("serialVersionUID");
291         toString = fromString("toString");
292         value = fromString("value");
293         valueOf = fromString("valueOf");
294         values = fromString("values");
295         readResolve = fromString("readResolve");
296         readObject = fromString("readObject");
297         dollarThis = fromString("$this");
298 
299         // class names
300         java_io_Serializable = fromString("java.io.Serializable");
301         java_lang_Class = fromString("java.lang.Class");
302         java_lang_Cloneable = fromString("java.lang.Cloneable");
303         java_lang_Enum = fromString("java.lang.Enum");
304         java_lang_Object = fromString("java.lang.Object");

305 
306         // names of builtin classes
307         Array = fromString("Array");
308         Bound = fromString("Bound");
309         Method = fromString("Method");
310 
311         // package names
312         java = fromString("java");
313         java_lang = fromString("java.lang");
314         jdk_internal_javac = fromString("jdk.internal.javac");
315 
316         // module names
317         java_base = fromString("java.base");
318         jdk_unsupported = fromString("jdk.unsupported");
319 
320         // attribute names
321         Annotation = fromString("Annotation");
322         AnnotationDefault = fromString("AnnotationDefault");
323         BootstrapMethods = fromString("BootstrapMethods");
324         Bridge = fromString("Bridge");
325         CharacterRangeTable = fromString("CharacterRangeTable");
326         Code = fromString("Code");
327         CompilationID = fromString("CompilationID");
328         ConstantValue = fromString("ConstantValue");
329         Deprecated = fromString("Deprecated");
330         EnclosingMethod = fromString("EnclosingMethod");
331         Enum = fromString("Enum");
332         Exceptions = fromString("Exceptions");
333         InnerClasses = fromString("InnerClasses");
334         LineNumberTable = fromString("LineNumberTable");
335         LocalVariableTable = fromString("LocalVariableTable");
336         LocalVariableTypeTable = fromString("LocalVariableTypeTable");
337         MethodParameters = fromString("MethodParameters");
338         Module = fromString("Module");
339         ModuleResolution = fromString("ModuleResolution");
340         NestHost = fromString("NestHost");
341         NestMembers = fromString("NestMembers");

342         Record = fromString("Record");
343         RuntimeInvisibleAnnotations = fromString("RuntimeInvisibleAnnotations");
344         RuntimeInvisibleParameterAnnotations = fromString("RuntimeInvisibleParameterAnnotations");
345         RuntimeInvisibleTypeAnnotations = fromString("RuntimeInvisibleTypeAnnotations");
346         RuntimeVisibleAnnotations = fromString("RuntimeVisibleAnnotations");
347         RuntimeVisibleParameterAnnotations = fromString("RuntimeVisibleParameterAnnotations");
348         RuntimeVisibleTypeAnnotations = fromString("RuntimeVisibleTypeAnnotations");
349         Signature = fromString("Signature");
350         SourceFile = fromString("SourceFile");
351         SourceID = fromString("SourceID");
352         StackMap = fromString("StackMap");
353         StackMapTable = fromString("StackMapTable");
354         Synthetic = fromString("Synthetic");
355         Value = fromString("Value");
356         Varargs = fromString("Varargs");
357         PermittedSubclasses = fromString("PermittedSubclasses");
358 
359         // members of java.lang.annotation.ElementType
360         ANNOTATION_TYPE = fromString("ANNOTATION_TYPE");
361         CONSTRUCTOR = fromString("CONSTRUCTOR");

375         RUNTIME = fromString("RUNTIME");
376         SOURCE = fromString("SOURCE");
377 
378         // other identifiers
379         T = fromString("T");
380         ex = fromString("ex");
381         module_info = fromString("module-info");
382         package_info = fromString("package-info");
383         requireNonNull = fromString("requireNonNull");
384         main = fromString("main");
385 
386         //lambda-related
387         lambda = fromString("lambda$");
388         metafactory = fromString("metafactory");
389         altMetafactory = fromString("altMetafactory");
390 
391         // string concat
392         makeConcat = fromString("makeConcat");
393         makeConcatWithConstants = fromString("makeConcatWithConstants");
394 


395         bootstrap = fromString("bootstrap");
396         record = fromString("record");
397         non = fromString("non");
398 
399         serialPersistentFields = fromString("serialPersistentFields");
400         writeObject = fromString("writeObject");
401         writeReplace = fromString("writeReplace");
402         readObjectNoData = fromString("readObjectNoData");
403 
404         // sealed types
405         permits = fromString("permits");
406         sealed = fromString("sealed");
407 
408 
409         // pattern switches
410         typeSwitch = fromString("typeSwitch");
411         enumSwitch = fromString("enumSwitch");
412         enumConstant = fromString("enumConstant");
413     }
414 

418             return newUnsharedNameTable();
419         boolean useSharedTable = options.isSet("useSharedTable");
420         if (useSharedTable)
421             return newSharedNameTable();
422         boolean internStringTable = options.isSet("internStringTable");
423         return newStringNameTable(internStringTable);
424     }
425 
426     public StringNameTable newStringNameTable(boolean intern) {
427         return StringNameTable.create(this, intern);
428     }
429 
430     public SharedNameTable newSharedNameTable() {
431         return SharedNameTable.create(this);
432     }
433 
434     public UnsharedNameTable newUnsharedNameTable() {
435         return UnsharedNameTable.create(this);
436     }
437 




438     public void dispose() {
439         table.dispose();
440     }
441 
442     public Name fromChars(char[] cs, int start, int len) {
443         return table.fromChars(cs, start, len);
444     }
445 
446     public Name fromString(String s) {
447         return table.fromString(s);
448     }
449 
450     public Name fromUtf(byte[] cs) throws InvalidUtfException {
451         return table.fromUtf(cs);
452     }
453 
454     public Name fromUtf(byte[] cs, int start, int len, Convert.Validation validation) throws InvalidUtfException {
455         return table.fromUtf(cs, start, len, validation);
456     }
457 

 97     public final Name iterator;
 98     public final Name length;
 99     public final Name next;
100     public final Name of;
101     public final Name ordinal;
102     public final Name provider;
103     public final Name serialVersionUID;
104     public final Name toString;
105     public final Name value;
106     public final Name valueOf;
107     public final Name values;
108     public final Name readResolve;
109     public final Name readObject;
110 
111     // class names
112     public final Name java_io_Serializable;
113     public final Name java_lang_Class;
114     public final Name java_lang_Cloneable;
115     public final Name java_lang_Enum;
116     public final Name java_lang_Object;
117     public final Name java_lang_System;
118 
119     // names of builtin classes
120     public final Name Array;
121     public final Name Bound;
122     public final Name Method;
123 
124     // package names
125     public final Name java;
126     public final Name java_lang;
127     public final Name jdk_internal_javac;
128 
129     // module names
130     public final Name java_base;
131     public final Name jdk_unsupported;
132 
133     // attribute names
134     public final Name Annotation;
135     public final Name AnnotationDefault;
136     public final Name BootstrapMethods;
137     public final Name Bridge;
138     public final Name CharacterRangeTable;
139     public final Name Code;
140     public final Name CompilationID;
141     public final Name ConstantValue;
142     public final Name Deprecated;
143     public final Name EnclosingMethod;
144     public final Name Enum;
145     public final Name Exceptions;
146     public final Name InnerClasses;
147     public final Name LineNumberTable;
148     public final Name LocalVariableTable;
149     public final Name LocalVariableTypeTable;
150     public final Name MethodParameters;
151     public final Name Module;
152     public final Name ModuleResolution;
153     public final Name NestHost;
154     public final Name NestMembers;
155     public final Name LoadableDescriptors;
156     public final Name Record;
157     public final Name RuntimeInvisibleAnnotations;
158     public final Name RuntimeInvisibleParameterAnnotations;
159     public final Name RuntimeInvisibleTypeAnnotations;
160     public final Name RuntimeVisibleAnnotations;
161     public final Name RuntimeVisibleParameterAnnotations;
162     public final Name RuntimeVisibleTypeAnnotations;
163     public final Name Signature;
164     public final Name SourceFile;
165     public final Name SourceID;
166     public final Name StackMap;
167     public final Name StackMapTable;
168     public final Name Synthetic;
169     public final Name Value;
170     public final Name Varargs;
171     public final Name PermittedSubclasses;
172 
173     // members of java.lang.annotation.ElementType
174     public final Name ANNOTATION_TYPE;
175     public final Name CONSTRUCTOR;

190     public final Name SOURCE;
191 
192     // other identifiers
193     public final Name T;
194     public final Name ex;
195     public final Name module_info;
196     public final Name package_info;
197     public final Name requireNonNull;
198     public final Name main;
199 
200     // lambda-related
201     public final Name lambda;
202     public final Name metafactory;
203     public final Name altMetafactory;
204     public final Name dollarThis;
205 
206     // string concat
207     public final Name makeConcat;
208     public final Name makeConcatWithConstants;
209 
210     // values
211     public final Name dollarValue;
212 
213 
214     // record related
215     // members of java.lang.runtime.ObjectMethods
216     public final Name bootstrap;
217 
218     public final Name record;
219     public final Name non;
220 
221     // serialization members, used by records too
222     public final Name serialPersistentFields;
223     public final Name writeObject;
224     public final Name writeReplace;
225     public final Name readObjectNoData;
226 
227     // sealed types
228     public final Name permits;
229     public final Name sealed;
230 
231     // pattern switches
232     public final Name typeSwitch;
233     public final Name enumSwitch;

291         length = fromString("length");
292         next = fromString("next");
293         of = fromString("of");
294         ordinal = fromString("ordinal");
295         provider = fromString("provider");
296         serialVersionUID = fromString("serialVersionUID");
297         toString = fromString("toString");
298         value = fromString("value");
299         valueOf = fromString("valueOf");
300         values = fromString("values");
301         readResolve = fromString("readResolve");
302         readObject = fromString("readObject");
303         dollarThis = fromString("$this");
304 
305         // class names
306         java_io_Serializable = fromString("java.io.Serializable");
307         java_lang_Class = fromString("java.lang.Class");
308         java_lang_Cloneable = fromString("java.lang.Cloneable");
309         java_lang_Enum = fromString("java.lang.Enum");
310         java_lang_Object = fromString("java.lang.Object");
311         java_lang_System = fromString("java.lang.System");
312 
313         // names of builtin classes
314         Array = fromString("Array");
315         Bound = fromString("Bound");
316         Method = fromString("Method");
317 
318         // package names
319         java = fromString("java");
320         java_lang = fromString("java.lang");
321         jdk_internal_javac = fromString("jdk.internal.javac");
322 
323         // module names
324         java_base = fromString("java.base");
325         jdk_unsupported = fromString("jdk.unsupported");
326 
327         // attribute names
328         Annotation = fromString("Annotation");
329         AnnotationDefault = fromString("AnnotationDefault");
330         BootstrapMethods = fromString("BootstrapMethods");
331         Bridge = fromString("Bridge");
332         CharacterRangeTable = fromString("CharacterRangeTable");
333         Code = fromString("Code");
334         CompilationID = fromString("CompilationID");
335         ConstantValue = fromString("ConstantValue");
336         Deprecated = fromString("Deprecated");
337         EnclosingMethod = fromString("EnclosingMethod");
338         Enum = fromString("Enum");
339         Exceptions = fromString("Exceptions");
340         InnerClasses = fromString("InnerClasses");
341         LineNumberTable = fromString("LineNumberTable");
342         LocalVariableTable = fromString("LocalVariableTable");
343         LocalVariableTypeTable = fromString("LocalVariableTypeTable");
344         MethodParameters = fromString("MethodParameters");
345         Module = fromString("Module");
346         ModuleResolution = fromString("ModuleResolution");
347         NestHost = fromString("NestHost");
348         NestMembers = fromString("NestMembers");
349         LoadableDescriptors = fromString("LoadableDescriptors");
350         Record = fromString("Record");
351         RuntimeInvisibleAnnotations = fromString("RuntimeInvisibleAnnotations");
352         RuntimeInvisibleParameterAnnotations = fromString("RuntimeInvisibleParameterAnnotations");
353         RuntimeInvisibleTypeAnnotations = fromString("RuntimeInvisibleTypeAnnotations");
354         RuntimeVisibleAnnotations = fromString("RuntimeVisibleAnnotations");
355         RuntimeVisibleParameterAnnotations = fromString("RuntimeVisibleParameterAnnotations");
356         RuntimeVisibleTypeAnnotations = fromString("RuntimeVisibleTypeAnnotations");
357         Signature = fromString("Signature");
358         SourceFile = fromString("SourceFile");
359         SourceID = fromString("SourceID");
360         StackMap = fromString("StackMap");
361         StackMapTable = fromString("StackMapTable");
362         Synthetic = fromString("Synthetic");
363         Value = fromString("Value");
364         Varargs = fromString("Varargs");
365         PermittedSubclasses = fromString("PermittedSubclasses");
366 
367         // members of java.lang.annotation.ElementType
368         ANNOTATION_TYPE = fromString("ANNOTATION_TYPE");
369         CONSTRUCTOR = fromString("CONSTRUCTOR");

383         RUNTIME = fromString("RUNTIME");
384         SOURCE = fromString("SOURCE");
385 
386         // other identifiers
387         T = fromString("T");
388         ex = fromString("ex");
389         module_info = fromString("module-info");
390         package_info = fromString("package-info");
391         requireNonNull = fromString("requireNonNull");
392         main = fromString("main");
393 
394         //lambda-related
395         lambda = fromString("lambda$");
396         metafactory = fromString("metafactory");
397         altMetafactory = fromString("altMetafactory");
398 
399         // string concat
400         makeConcat = fromString("makeConcat");
401         makeConcatWithConstants = fromString("makeConcatWithConstants");
402 
403         dollarValue = fromString("$value");
404 
405         bootstrap = fromString("bootstrap");
406         record = fromString("record");
407         non = fromString("non");
408 
409         serialPersistentFields = fromString("serialPersistentFields");
410         writeObject = fromString("writeObject");
411         writeReplace = fromString("writeReplace");
412         readObjectNoData = fromString("readObjectNoData");
413 
414         // sealed types
415         permits = fromString("permits");
416         sealed = fromString("sealed");
417 
418 
419         // pattern switches
420         typeSwitch = fromString("typeSwitch");
421         enumSwitch = fromString("enumSwitch");
422         enumConstant = fromString("enumConstant");
423     }
424 

428             return newUnsharedNameTable();
429         boolean useSharedTable = options.isSet("useSharedTable");
430         if (useSharedTable)
431             return newSharedNameTable();
432         boolean internStringTable = options.isSet("internStringTable");
433         return newStringNameTable(internStringTable);
434     }
435 
436     public StringNameTable newStringNameTable(boolean intern) {
437         return StringNameTable.create(this, intern);
438     }
439 
440     public SharedNameTable newSharedNameTable() {
441         return SharedNameTable.create(this);
442     }
443 
444     public UnsharedNameTable newUnsharedNameTable() {
445         return UnsharedNameTable.create(this);
446     }
447 
448     public boolean isInit(Name name) {
449         return name == init;
450     }
451 
452     public void dispose() {
453         table.dispose();
454     }
455 
456     public Name fromChars(char[] cs, int start, int len) {
457         return table.fromChars(cs, start, len);
458     }
459 
460     public Name fromString(String s) {
461         return table.fromString(s);
462     }
463 
464     public Name fromUtf(byte[] cs) throws InvalidUtfException {
465         return table.fromUtf(cs);
466     }
467 
468     public Name fromUtf(byte[] cs, int start, int len, Convert.Validation validation) throws InvalidUtfException {
469         return table.fromUtf(cs, start, len, validation);
470     }
471 
< prev index next >