< prev index next >

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

Print this page

 90     public final Name forRemoval;
 91     public final Name reflective;
 92     public final Name getClass;
 93     public final Name hasNext;
 94     public final Name hashCode;
 95     public final Name init;
 96     public final Name invoke;
 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         forRemoval = fromString("forRemoval");
286         reflective = fromString("reflective");
287         getClass = fromString("getClass");
288         hasNext = fromString("hasNext");
289         hashCode = fromString("hashCode");
290         init = fromString("<init>");
291         invoke = fromString("invoke");
292         iterator = fromString("iterator");
293         length = fromString("length");
294         next = fromString("next");
295         of = fromString("of");
296         ordinal = fromString("ordinal");
297         provider = fromString("provider");
298         serialVersionUID = fromString("serialVersionUID");
299         toString = fromString("toString");
300         value = fromString("value");
301         valueOf = fromString("valueOf");
302         values = fromString("values");
303         readResolve = fromString("readResolve");
304         readObject = fromString("readObject");

305         dollarThis = fromString("$this");
306 
307         // class names
308         java_io_Serializable = fromString("java.io.Serializable");
309         java_lang_Class = fromString("java.lang.Class");
310         java_lang_Cloneable = fromString("java.lang.Cloneable");
311         java_lang_Enum = fromString("java.lang.Enum");
312         java_lang_Object = fromString("java.lang.Object");

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

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         bootstrap = fromString("bootstrap");
404         record = fromString("record");
405         non = fromString("non");
406 
407         serialPersistentFields = fromString("serialPersistentFields");
408         writeObject = fromString("writeObject");
409         writeReplace = fromString("writeReplace");
410         readObjectNoData = fromString("readObjectNoData");
411 
412         // sealed types
413         permits = fromString("permits");
414         sealed = fromString("sealed");
415 
416         // templated string
417         process = fromString("process");
418         STR = fromString("STR");
419         RAW = fromString("RAW");
420         newStringTemplate = fromString("newStringTemplate");
421         newLargeStringTemplate = fromString("newLargeStringTemplate");
422         processStringTemplate = fromString("processStringTemplate");

433             return newUnsharedNameTable();
434         boolean useSharedTable = options.isSet("useSharedTable");
435         if (useSharedTable)
436             return newSharedNameTable();
437         boolean internStringTable = options.isSet("internStringTable");
438         return newStringNameTable(internStringTable);
439     }
440 
441     public StringNameTable newStringNameTable(boolean intern) {
442         return StringNameTable.create(this, intern);
443     }
444 
445     public SharedNameTable newSharedNameTable() {
446         return SharedNameTable.create(this);
447     }
448 
449     public UnsharedNameTable newUnsharedNameTable() {
450         return UnsharedNameTable.create(this);
451     }
452 




453     public void dispose() {
454         table.dispose();
455     }
456 
457     public Name fromChars(char[] cs, int start, int len) {
458         return table.fromChars(cs, start, len);
459     }
460 
461     public Name fromString(String s) {
462         return table.fromString(s);
463     }
464 
465     public Name fromUtf(byte[] cs) throws InvalidUtfException {
466         return table.fromUtf(cs);
467     }
468 
469     public Name fromUtf(byte[] cs, int start, int len, Convert.Validation validation) throws InvalidUtfException {
470         return table.fromUtf(cs, start, len, validation);
471     }
472 

 90     public final Name forRemoval;
 91     public final Name reflective;
 92     public final Name getClass;
 93     public final Name hasNext;
 94     public final Name hashCode;
 95     public final Name init;
 96     public final Name invoke;
 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     public final Name isValueObject;
111 
112     // class names
113     public final Name java_io_Serializable;
114     public final Name java_lang_Class;
115     public final Name java_lang_Cloneable;
116     public final Name java_lang_Enum;
117     public final Name java_lang_Object;
118     public final Name java_lang_System;
119 
120     // names of builtin classes
121     public final Name Array;
122     public final Name Bound;
123     public final Name Method;
124 
125     // package names
126     public final Name java;
127     public final Name java_lang;
128     public final Name jdk_internal_javac;
129 
130     // module names
131     public final Name java_base;
132     public final Name jdk_unsupported;
133 
134     // attribute names
135     public final Name Annotation;
136     public final Name AnnotationDefault;
137     public final Name BootstrapMethods;
138     public final Name Bridge;
139     public final Name CharacterRangeTable;
140     public final Name Code;
141     public final Name CompilationID;
142     public final Name ConstantValue;
143     public final Name Deprecated;
144     public final Name EnclosingMethod;
145     public final Name Enum;
146     public final Name Exceptions;
147     public final Name InnerClasses;
148     public final Name LineNumberTable;
149     public final Name LocalVariableTable;
150     public final Name LocalVariableTypeTable;
151     public final Name MethodParameters;
152     public final Name Module;
153     public final Name ModuleResolution;
154     public final Name NestHost;
155     public final Name NestMembers;
156     public final Name Preload;
157     public final Name Record;
158     public final Name RuntimeInvisibleAnnotations;
159     public final Name RuntimeInvisibleParameterAnnotations;
160     public final Name RuntimeInvisibleTypeAnnotations;
161     public final Name RuntimeVisibleAnnotations;
162     public final Name RuntimeVisibleParameterAnnotations;
163     public final Name RuntimeVisibleTypeAnnotations;
164     public final Name Signature;
165     public final Name SourceFile;
166     public final Name SourceID;
167     public final Name StackMap;
168     public final Name StackMapTable;
169     public final Name Synthetic;
170     public final Name Value;
171     public final Name Varargs;
172     public final Name PermittedSubclasses;
173 
174     // members of java.lang.annotation.ElementType
175     public final Name ANNOTATION_TYPE;
176     public final Name CONSTRUCTOR;

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

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

393         RUNTIME = fromString("RUNTIME");
394         SOURCE = fromString("SOURCE");
395 
396         // other identifiers
397         T = fromString("T");
398         ex = fromString("ex");
399         module_info = fromString("module-info");
400         package_info = fromString("package-info");
401         requireNonNull = fromString("requireNonNull");
402         main = fromString("main");
403 
404         //lambda-related
405         lambda = fromString("lambda$");
406         metafactory = fromString("metafactory");
407         altMetafactory = fromString("altMetafactory");
408 
409         // string concat
410         makeConcat = fromString("makeConcat");
411         makeConcatWithConstants = fromString("makeConcatWithConstants");
412 
413         dollarValue = fromString("$value");
414 
415         bootstrap = fromString("bootstrap");
416         record = fromString("record");
417         non = fromString("non");
418 
419         serialPersistentFields = fromString("serialPersistentFields");
420         writeObject = fromString("writeObject");
421         writeReplace = fromString("writeReplace");
422         readObjectNoData = fromString("readObjectNoData");
423 
424         // sealed types
425         permits = fromString("permits");
426         sealed = fromString("sealed");
427 
428         // templated string
429         process = fromString("process");
430         STR = fromString("STR");
431         RAW = fromString("RAW");
432         newStringTemplate = fromString("newStringTemplate");
433         newLargeStringTemplate = fromString("newLargeStringTemplate");
434         processStringTemplate = fromString("processStringTemplate");

445             return newUnsharedNameTable();
446         boolean useSharedTable = options.isSet("useSharedTable");
447         if (useSharedTable)
448             return newSharedNameTable();
449         boolean internStringTable = options.isSet("internStringTable");
450         return newStringNameTable(internStringTable);
451     }
452 
453     public StringNameTable newStringNameTable(boolean intern) {
454         return StringNameTable.create(this, intern);
455     }
456 
457     public SharedNameTable newSharedNameTable() {
458         return SharedNameTable.create(this);
459     }
460 
461     public UnsharedNameTable newUnsharedNameTable() {
462         return UnsharedNameTable.create(this);
463     }
464 
465     public boolean isInit(Name name) {
466         return name == init;
467     }
468 
469     public void dispose() {
470         table.dispose();
471     }
472 
473     public Name fromChars(char[] cs, int start, int len) {
474         return table.fromChars(cs, start, len);
475     }
476 
477     public Name fromString(String s) {
478         return table.fromString(s);
479     }
480 
481     public Name fromUtf(byte[] cs) throws InvalidUtfException {
482         return table.fromUtf(cs);
483     }
484 
485     public Name fromUtf(byte[] cs, int start, int len, Convert.Validation validation) throws InvalidUtfException {
486         return table.fromUtf(cs, start, len, validation);
487     }
488 
< prev index next >