< prev index next >

src/jdk.compiler/share/classes/com/sun/tools/javac/code/Symtab.java

Print this page




 197     public final Type iterableType;
 198     public final Type iteratorType;
 199     public final Type annotationTargetType;
 200     public final Type overrideType;
 201     public final Type retentionType;
 202     public final Type deprecatedType;
 203     public final Type suppressWarningsType;
 204     public final Type supplierType;
 205     public final Type inheritedType;
 206     public final Type profileType;
 207     public final Type proprietaryType;
 208     public final Type systemType;
 209     public final Type autoCloseableType;
 210     public final Type trustMeType;
 211     public final Type lambdaMetafactory;
 212     public final Type stringConcatFactory;
 213     public final Type repeatableType;
 214     public final Type documentedType;
 215     public final Type elementTypeType;
 216     public final Type functionalInterfaceType;


 217 
 218     /** The symbol representing the length field of an array.
 219      */
 220     public final VarSymbol lengthVar;
 221 
 222     /** The symbol representing the final finalize method on enums */
 223     public final MethodSymbol enumFinalFinalize;
 224 
 225     /** The symbol representing the close method on TWR AutoCloseable type */
 226     public final MethodSymbol autoCloseableClose;
 227 
 228     /** The predefined type that belongs to a tag.
 229      */
 230     public final Type[] typeOfTag = new Type[TypeTag.getTypeTagCount()];
 231 
 232     /** The name of the class that belongs to a basic type tag.
 233      */
 234     public final Name[] boxedName = new Name[TypeTag.getTypeTagCount()];
 235 
 236     /** A hashtable containing the encountered top-level and member classes,


 553         retentionType = enterClass("java.lang.annotation.Retention");
 554         deprecatedType = enterClass("java.lang.Deprecated");
 555         suppressWarningsType = enterClass("java.lang.SuppressWarnings");
 556         supplierType = enterClass("java.util.function.Supplier");
 557         inheritedType = enterClass("java.lang.annotation.Inherited");
 558         repeatableType = enterClass("java.lang.annotation.Repeatable");
 559         documentedType = enterClass("java.lang.annotation.Documented");
 560         elementTypeType = enterClass("java.lang.annotation.ElementType");
 561         systemType = enterClass("java.lang.System");
 562         autoCloseableType = enterClass("java.lang.AutoCloseable");
 563         autoCloseableClose = new MethodSymbol(PUBLIC,
 564                              names.close,
 565                              new MethodType(List.nil(), voidType,
 566                                             List.of(exceptionType), methodClass),
 567                              autoCloseableType.tsym);
 568         trustMeType = enterClass("java.lang.SafeVarargs");
 569         nativeHeaderType = enterClass("java.lang.annotation.Native");
 570         lambdaMetafactory = enterClass("java.lang.invoke.LambdaMetafactory");
 571         stringConcatFactory = enterClass("java.lang.invoke.StringConcatFactory");
 572         functionalInterfaceType = enterClass("java.lang.FunctionalInterface");



 573 
 574         synthesizeEmptyInterfaceIfMissing(autoCloseableType);
 575         synthesizeEmptyInterfaceIfMissing(cloneableType);
 576         synthesizeEmptyInterfaceIfMissing(serializableType);
 577         synthesizeEmptyInterfaceIfMissing(lambdaMetafactory);
 578         synthesizeEmptyInterfaceIfMissing(serializedLambdaType);
 579         synthesizeEmptyInterfaceIfMissing(stringConcatFactory);
 580         synthesizeBoxTypeIfMissing(doubleType);
 581         synthesizeBoxTypeIfMissing(floatType);
 582         synthesizeBoxTypeIfMissing(voidType);
 583 
 584         // Enter a synthetic class that is used to mark internal
 585         // proprietary classes in ct.sym.  This class does not have a
 586         // class file.
 587         proprietaryType = enterSyntheticAnnotation("sun.Proprietary+Annotation");
 588 
 589         // Enter a synthetic class that is used to provide profile info for
 590         // classes in ct.sym.  This class does not have a class file.
 591         profileType = enterSyntheticAnnotation("jdk.Profile+Annotation");
 592         MethodSymbol m = new MethodSymbol(PUBLIC | ABSTRACT, names.value, intType, profileType.tsym);




 197     public final Type iterableType;
 198     public final Type iteratorType;
 199     public final Type annotationTargetType;
 200     public final Type overrideType;
 201     public final Type retentionType;
 202     public final Type deprecatedType;
 203     public final Type suppressWarningsType;
 204     public final Type supplierType;
 205     public final Type inheritedType;
 206     public final Type profileType;
 207     public final Type proprietaryType;
 208     public final Type systemType;
 209     public final Type autoCloseableType;
 210     public final Type trustMeType;
 211     public final Type lambdaMetafactory;
 212     public final Type stringConcatFactory;
 213     public final Type repeatableType;
 214     public final Type documentedType;
 215     public final Type elementTypeType;
 216     public final Type functionalInterfaceType;
 217     public final Type intrinsicCandidateType;
 218     public final Type intrinsicFactoryType;
 219 
 220     /** The symbol representing the length field of an array.
 221      */
 222     public final VarSymbol lengthVar;
 223 
 224     /** The symbol representing the final finalize method on enums */
 225     public final MethodSymbol enumFinalFinalize;
 226 
 227     /** The symbol representing the close method on TWR AutoCloseable type */
 228     public final MethodSymbol autoCloseableClose;
 229 
 230     /** The predefined type that belongs to a tag.
 231      */
 232     public final Type[] typeOfTag = new Type[TypeTag.getTypeTagCount()];
 233 
 234     /** The name of the class that belongs to a basic type tag.
 235      */
 236     public final Name[] boxedName = new Name[TypeTag.getTypeTagCount()];
 237 
 238     /** A hashtable containing the encountered top-level and member classes,


 555         retentionType = enterClass("java.lang.annotation.Retention");
 556         deprecatedType = enterClass("java.lang.Deprecated");
 557         suppressWarningsType = enterClass("java.lang.SuppressWarnings");
 558         supplierType = enterClass("java.util.function.Supplier");
 559         inheritedType = enterClass("java.lang.annotation.Inherited");
 560         repeatableType = enterClass("java.lang.annotation.Repeatable");
 561         documentedType = enterClass("java.lang.annotation.Documented");
 562         elementTypeType = enterClass("java.lang.annotation.ElementType");
 563         systemType = enterClass("java.lang.System");
 564         autoCloseableType = enterClass("java.lang.AutoCloseable");
 565         autoCloseableClose = new MethodSymbol(PUBLIC,
 566                              names.close,
 567                              new MethodType(List.nil(), voidType,
 568                                             List.of(exceptionType), methodClass),
 569                              autoCloseableType.tsym);
 570         trustMeType = enterClass("java.lang.SafeVarargs");
 571         nativeHeaderType = enterClass("java.lang.annotation.Native");
 572         lambdaMetafactory = enterClass("java.lang.invoke.LambdaMetafactory");
 573         stringConcatFactory = enterClass("java.lang.invoke.StringConcatFactory");
 574         functionalInterfaceType = enterClass("java.lang.FunctionalInterface");
 575         intrinsicCandidateType =
 576                 enterClass("java.lang.compiler.IntrinsicCandidate");
 577         intrinsicFactoryType = enterClass("java.lang.invoke.IntrinsicFactory");
 578 
 579         synthesizeEmptyInterfaceIfMissing(autoCloseableType);
 580         synthesizeEmptyInterfaceIfMissing(cloneableType);
 581         synthesizeEmptyInterfaceIfMissing(serializableType);
 582         synthesizeEmptyInterfaceIfMissing(lambdaMetafactory);
 583         synthesizeEmptyInterfaceIfMissing(serializedLambdaType);
 584         synthesizeEmptyInterfaceIfMissing(stringConcatFactory);
 585         synthesizeBoxTypeIfMissing(doubleType);
 586         synthesizeBoxTypeIfMissing(floatType);
 587         synthesizeBoxTypeIfMissing(voidType);
 588 
 589         // Enter a synthetic class that is used to mark internal
 590         // proprietary classes in ct.sym.  This class does not have a
 591         // class file.
 592         proprietaryType = enterSyntheticAnnotation("sun.Proprietary+Annotation");
 593 
 594         // Enter a synthetic class that is used to provide profile info for
 595         // classes in ct.sym.  This class does not have a class file.
 596         profileType = enterSyntheticAnnotation("jdk.Profile+Annotation");
 597         MethodSymbol m = new MethodSymbol(PUBLIC | ABSTRACT, names.value, intType, profileType.tsym);


< prev index next >