Class CompilationUnitScope
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Scope
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope
-
Nested Class Summary
Nested classes/interfaces inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Scope
Scope.Substitutor -
Field Summary
FieldsModifier and TypeFieldDescriptionchar[][]intFields inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Scope
AUTOBOX_COMPATIBLE, BLOCK_SCOPE, CLASS_SCOPE, COMPATIBLE, COMPATIBLE_IGNORING_MISSING_TYPE, COMPILATION_UNIT_SCOPE, compilationUnitScope, EQUAL_OR_MORE_SPECIFIC, kind, METHOD_SCOPE, MODULE_SCOPE, MORE_GENERIC, NOT_COMPATIBLE, NOT_REDUNDANT, NOT_RELATED, parent, VARARGS_COMPATIBLE -
Constructor Summary
ConstructorsConstructorDescriptionCompilationUnitScope(CompilationUnitDeclaration unit, CompilerOptions compilerOptions) CompilationUnitScope(CompilationUnitDeclaration unit, LookupEnvironment environment) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidPerform deferred check specific to parameterized types: bound checks, supertype collisionscheckRedundantDefaultNullness(int nullBits, int sourceStart) Check whether the given null default is redundant at the given position inside this scope.voidchar[]computeConstantPoolName(LocalTypeBinding localType) voidvoiddeferException(RuntimeException exception) voidfindImport(char[][] compoundName, boolean findStaticImports, boolean onDemand) final BindinggetImport(char[][] compoundName, boolean onDemand, int modifiers) booleanhasDefaultNullnessFor(int location, int sourceStart) Answer a defaultNullness defined for the closest enclosing scope, using bits from Binding.NullnessDefaultMASK.voidmodule()intSee also the contract ofProblemReporter.close().voidrecordTypeConversion(TypeBinding superType, TypeBinding subType) voidvoidregisterInferredInvocation(Invocation invocation) voidvoidtoString()voidverifyMethods(MethodVerifier verifier) Methods inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Scope
boxing, classScope, collectClassesBeingInitialized, compareTypes, compilationUnitScope, compilerOptions, computeCompatibleMethod, computeCompatibleMethod, connectTypeVariables, convertEliminatingTypeVariables, createArrayType, createArrayType, createTypeVariables, deferBoundCheck, enclosingClassScope, enclosingInstanceScope, enclosingLambdaScope, enclosingMethodScope, enclosingReceiverType, enclosingReferenceContext, enclosingSourceType, enclosingSwitchLabel, enclosingTopMostClassScope, enterEarlyConstructionContext, environment, exclude, findDefaultAbstractMethod, findDirectMemberType, findExactMethod, findField, findField, findMemberType, findMethod, findMethod0, findMethodForArray, findMethodInSuperInterfaces, findPrivilegedHandler, findType, findTypeVariable, findVariable, getBaseType, getBinding, getCommonReferenceBinding, getConstructor, getConstructor0, getCurrentPackage, getDeclarationModifiers, getExactConstructor, getExactMethod, getField, getImplicitMethod, getJavaIoSerializable, getJavaLangAnnotationAnnotation, getJavaLangAssertionError, getJavaLangBoolean, getJavaLangByte, getJavaLangCharacter, getJavaLangClass, getJavaLangClassDesc, getJavaLangClassNotFoundException, getJavaLangCloneable, getJavaLangDouble, getJavaLangEnum, getJavaLangEnumDesc, getJavaLangError, getJavaLangFloat, getJavaLangIllegalArgumentException, getJavaLangIncompatibleClassChangeError, getJavaLangInteger, getJavaLangInvokeConstantBootstraps, getJavaLangInvokeLambdaMetafactory, getJavaLangInvokeMethodHandle, getJavaLangInvokeMethodHandlesLookup, getJavaLangInvokeSerializedLambda, getJavaLangInvokeStringConcatFactory, getJavaLangInvokeVarHandle, getJavaLangIterable, getJavaLangLong, getJavaLangNoClassDefFoundError, getJavaLangNoSuchFieldError, getJavaLangObject, getJavaLangRecord, getJavaLangReflectField, getJavaLangReflectMethod, getJavaLangRuntimeObjectMethods, getJavaLangRuntimeSwitchBootstraps, getJavaLangShort, getJavaLangString, getJavaLangStringBuffer, getJavaLangStringBuilder, getJavaLangThrowable, getJavaLangVoid, getJavaUtilIterator, getMatchingUninitializedType, getMemberType, getMethod, getOnlyPackage, getPackage, getStaticFactory, getType, getType, getType, getTypeOrPackage, greaterLowerBound, greaterLowerBound, hasDefaultNullnessForType, hasErasedCandidatesCollisions, include, invocationType, isAcceptableMethod, isBoxingCompatibleWith, isDefinedInField, isDefinedInMethod, isDefinedInSameUnit, isDefinedInType, isInsideCase, isInsideDeprecatedCode, isInsideEarlyConstructionContext, isInStaticContext, isInterTypeScope, isLambdaScope, isLambdaSubscope, isSubtypeOfRawType, leaveEarlyConstructionContext, localCheckRedundantDefaultNullness, localNonNullByDefaultValue, lowerUpperBound, methodScope, minimalErasedCandidates, mostSpecificClassMethodBinding, mostSpecificInterfaceMethodBinding, mostSpecificMethodBinding, namedMethodScope, nearestEnclosingStaticScope, originalReferenceContext, outerMostClassScope, outerMostMethodScope, parameterCompatibilityLevel, parameterCompatibilityLevel, parameterCompatibilityLevel, parameterCompatibilityLevel, recordNonNullByDefault, referenceCompilationUnit, referenceContext, resolvingGuardExpression, setParent, substitute, substitute, substitute, tagAsAccessingEnclosingInstanceStateOf, typeAnnotationsResolutionScope, validateNullAnnotation
-
Field Details
-
environment
-
referenceContext
-
currentPackageName
public char[][] currentPackageName -
fPackage
-
imports
-
importPtr
public int importPtr -
typeOrPackageCache
-
topLevelTypes
-
-
Constructor Details
-
CompilationUnitScope
-
CompilationUnitScope
-
-
Method Details
-
buildFieldsAndMethods
public void buildFieldsAndMethods() -
checkAndSetImports
public void checkAndSetImports() -
checkParameterizedTypes
public void checkParameterizedTypes()Perform deferred check specific to parameterized types: bound checks, supertype collisions -
computeConstantPoolName
-
connectTypeHierarchy
public void connectTypeHierarchy() -
integrateAnnotationsInHierarchy
public void integrateAnnotationsInHierarchy() -
faultInTypes
public void faultInTypes() -
findImport
-
getImport
-
nextCaptureID
public int nextCaptureID() -
module
-
problemReporter
Description copied from class:ScopeSee also the contract ofProblemReporter.close().- Specified by:
problemReporterin classScope
-
recordTypeConversion
-
recordTypeReference
-
storeDependencyInfo
public void storeDependencyInfo() -
toString
-
verifyMethods
-
hasDefaultNullnessFor
public boolean hasDefaultNullnessFor(int location, int sourceStart) Description copied from class:ScopeAnswer a defaultNullness defined for the closest enclosing scope, using bits from Binding.NullnessDefaultMASK.- Overrides:
hasDefaultNullnessForin classScope
-
checkRedundantDefaultNullness
Description copied from class:ScopeCheck whether the given null default is redundant at the given position inside this scope.- Overrides:
checkRedundantDefaultNullnessin classScope- Parameters:
nullBits- locally defined nullness default, see Binding.NullnessDefaultMASK- Returns:
- enclosing binding that already has a matching NonNullByDefault annotation,
or the special binding
Scope.NOT_REDUNDANT, indicating that a different enclosing nullness default was found, or null to indicate that no enclosing nullness default was found.
-
registerInferredInvocation
-
cleanUpInferenceContexts
public void cleanUpInferenceContexts() -
deferException
-
throwDeferredException
public void throwDeferredException()
-