< prev index next >

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

Print this page




 154     public final ClassSymbol methodClass;
 155 
 156     /** A symbol for the java.base module.
 157      */
 158     public final ModuleSymbol java_base;
 159 
 160     /** Predefined types.
 161      */
 162     public final Type objectType;
 163     public final Type objectsType;
 164     public final Type classType;
 165     public final Type classLoaderType;
 166     public final Type stringType;
 167     public final Type stringBufferType;
 168     public final Type stringBuilderType;
 169     public final Type cloneableType;
 170     public final Type serializableType;
 171     public final Type serializedLambdaType;
 172     public final Type varHandleType;
 173     public final Type methodHandleType;
 174     public final Type methodHandleLookupType;

 175     public final Type methodTypeType;

 176     public final Type nativeHeaderType;
 177     public final Type throwableType;
 178     public final Type errorType;
 179     public final Type interruptedExceptionType;
 180     public final Type illegalArgumentExceptionType;
 181     public final Type exceptionType;
 182     public final Type runtimeExceptionType;
 183     public final Type classNotFoundExceptionType;
 184     public final Type noClassDefFoundErrorType;
 185     public final Type noSuchFieldErrorType;
 186     public final Type assertionErrorType;
 187     public final Type incompatibleClassChangeErrorType;
 188     public final Type cloneNotSupportedExceptionType;
 189     public final Type annotationType;
 190     public final TypeSymbol enumSym;
 191     public final Type listType;
 192     public final Type collectionsType;
 193     public final Type comparableType;
 194     public final Type comparatorType;
 195     public final Type arraysType;


 499         } else {
 500             java_base = noModule;
 501         }
 502 
 503         // Get the initial completer for ModuleSymbols from Modules
 504         moduleCompleter = Modules.instance(context).getCompleter();
 505 
 506         // Enter predefined classes. All are assumed to be in the java.base module.
 507         objectType = enterClass("java.lang.Object");
 508         objectsType = enterClass("java.util.Objects");
 509         classType = enterClass("java.lang.Class");
 510         stringType = enterClass("java.lang.String");
 511         stringBufferType = enterClass("java.lang.StringBuffer");
 512         stringBuilderType = enterClass("java.lang.StringBuilder");
 513         cloneableType = enterClass("java.lang.Cloneable");
 514         throwableType = enterClass("java.lang.Throwable");
 515         serializableType = enterClass("java.io.Serializable");
 516         serializedLambdaType = enterClass("java.lang.invoke.SerializedLambda");
 517         varHandleType = enterClass("java.lang.invoke.VarHandle");
 518         methodHandleType = enterClass("java.lang.invoke.MethodHandle");
 519         methodHandleLookupType = enterClass("java.lang.invoke.MethodHandles$Lookup");

 520         methodTypeType = enterClass("java.lang.invoke.MethodType");

 521         errorType = enterClass("java.lang.Error");
 522         illegalArgumentExceptionType = enterClass("java.lang.IllegalArgumentException");
 523         interruptedExceptionType = enterClass("java.lang.InterruptedException");
 524         exceptionType = enterClass("java.lang.Exception");
 525         runtimeExceptionType = enterClass("java.lang.RuntimeException");
 526         classNotFoundExceptionType = enterClass("java.lang.ClassNotFoundException");
 527         noClassDefFoundErrorType = enterClass("java.lang.NoClassDefFoundError");
 528         noSuchFieldErrorType = enterClass("java.lang.NoSuchFieldError");
 529         assertionErrorType = enterClass("java.lang.AssertionError");
 530         incompatibleClassChangeErrorType = enterClass("java.lang.IncompatibleClassChangeError");
 531         cloneNotSupportedExceptionType = enterClass("java.lang.CloneNotSupportedException");
 532         annotationType = enterClass("java.lang.annotation.Annotation");
 533         classLoaderType = enterClass("java.lang.ClassLoader");
 534         enumSym = enterClass(java_base, names.java_lang_Enum);
 535         enumFinalFinalize =
 536             new MethodSymbol(PROTECTED|FINAL|HYPOTHETICAL,
 537                              names.finalize,
 538                              new MethodType(List.nil(), voidType,
 539                                             List.nil(), methodClass),
 540                              enumSym);




 154     public final ClassSymbol methodClass;
 155 
 156     /** A symbol for the java.base module.
 157      */
 158     public final ModuleSymbol java_base;
 159 
 160     /** Predefined types.
 161      */
 162     public final Type objectType;
 163     public final Type objectsType;
 164     public final Type classType;
 165     public final Type classLoaderType;
 166     public final Type stringType;
 167     public final Type stringBufferType;
 168     public final Type stringBuilderType;
 169     public final Type cloneableType;
 170     public final Type serializableType;
 171     public final Type serializedLambdaType;
 172     public final Type varHandleType;
 173     public final Type methodHandleType;
 174     public final Type methodHandlesLookupType;
 175     public final Type intrinsicsType;
 176     public final Type methodTypeType;
 177     public final Type foldableType;
 178     public final Type nativeHeaderType;
 179     public final Type throwableType;
 180     public final Type errorType;
 181     public final Type interruptedExceptionType;
 182     public final Type illegalArgumentExceptionType;
 183     public final Type exceptionType;
 184     public final Type runtimeExceptionType;
 185     public final Type classNotFoundExceptionType;
 186     public final Type noClassDefFoundErrorType;
 187     public final Type noSuchFieldErrorType;
 188     public final Type assertionErrorType;
 189     public final Type incompatibleClassChangeErrorType;
 190     public final Type cloneNotSupportedExceptionType;
 191     public final Type annotationType;
 192     public final TypeSymbol enumSym;
 193     public final Type listType;
 194     public final Type collectionsType;
 195     public final Type comparableType;
 196     public final Type comparatorType;
 197     public final Type arraysType;


 501         } else {
 502             java_base = noModule;
 503         }
 504 
 505         // Get the initial completer for ModuleSymbols from Modules
 506         moduleCompleter = Modules.instance(context).getCompleter();
 507 
 508         // Enter predefined classes. All are assumed to be in the java.base module.
 509         objectType = enterClass("java.lang.Object");
 510         objectsType = enterClass("java.util.Objects");
 511         classType = enterClass("java.lang.Class");
 512         stringType = enterClass("java.lang.String");
 513         stringBufferType = enterClass("java.lang.StringBuffer");
 514         stringBuilderType = enterClass("java.lang.StringBuilder");
 515         cloneableType = enterClass("java.lang.Cloneable");
 516         throwableType = enterClass("java.lang.Throwable");
 517         serializableType = enterClass("java.io.Serializable");
 518         serializedLambdaType = enterClass("java.lang.invoke.SerializedLambda");
 519         varHandleType = enterClass("java.lang.invoke.VarHandle");
 520         methodHandleType = enterClass("java.lang.invoke.MethodHandle");
 521         methodHandlesLookupType = enterClass("java.lang.invoke.MethodHandles$Lookup");
 522         intrinsicsType = enterClass("java.lang.invoke.Intrinsics");
 523         methodTypeType = enterClass("java.lang.invoke.MethodType");
 524         foldableType = enterClass("jdk.internal.lang.annotation.Foldable");
 525         errorType = enterClass("java.lang.Error");
 526         illegalArgumentExceptionType = enterClass("java.lang.IllegalArgumentException");
 527         interruptedExceptionType = enterClass("java.lang.InterruptedException");
 528         exceptionType = enterClass("java.lang.Exception");
 529         runtimeExceptionType = enterClass("java.lang.RuntimeException");
 530         classNotFoundExceptionType = enterClass("java.lang.ClassNotFoundException");
 531         noClassDefFoundErrorType = enterClass("java.lang.NoClassDefFoundError");
 532         noSuchFieldErrorType = enterClass("java.lang.NoSuchFieldError");
 533         assertionErrorType = enterClass("java.lang.AssertionError");
 534         incompatibleClassChangeErrorType = enterClass("java.lang.IncompatibleClassChangeError");
 535         cloneNotSupportedExceptionType = enterClass("java.lang.CloneNotSupportedException");
 536         annotationType = enterClass("java.lang.annotation.Annotation");
 537         classLoaderType = enterClass("java.lang.ClassLoader");
 538         enumSym = enterClass(java_base, names.java_lang_Enum);
 539         enumFinalFinalize =
 540             new MethodSymbol(PROTECTED|FINAL|HYPOTHETICAL,
 541                              names.finalize,
 542                              new MethodType(List.nil(), voidType,
 543                                             List.nil(), methodClass),
 544                              enumSym);


< prev index next >