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[][]
int
Fields inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Scope
AUTOBOX_COMPATIBLE, BLOCK_SCOPE, CLASS_SCOPE, COMPATIBLE, COMPILATION_UNIT_SCOPE, 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 TypeMethodDescriptionvoid
void
void
Perform 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.void
char[]
computeConstantPoolName(LocalTypeBinding localType)
void
void
findImport(char[][] compoundName, boolean findStaticImports, boolean onDemand)
getImport(char[][] compoundName, boolean onDemand, boolean isStaticImport)
boolean
hasDefaultNullnessFor(int location, int sourceStart)
Answer a defaultNullness defined for the closest enclosing scope, using bits from Binding.NullnessDefaultMASK.module()
int
void
recordTypeConversion(TypeBinding superType, TypeBinding subType)
void
recordTypeReference(TypeBinding type)
void
registerInferredInvocation(Invocation invocation)
void
toString()
void
verifyMethods(MethodVerifier verifier)
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Scope
boxing, classScope, compareTypes, compilationUnitScope, compilerOptions, computeCompatibleMethod, computeCompatibleMethod, connectTypeVariables, convertEliminatingTypeVariables, createArrayType, createArrayType, createTypeVariables, deferBoundCheck, deferCheck, enclosingClassScope, enclosingLambdaScope, enclosingMethodScope, enclosingReceiverType, enclosingReferenceContext, enclosingSourceType, enclosingTopMostClassScope, environment, 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, getJavaLangClassNotFoundException, getJavaLangCloneable, getJavaLangDouble, getJavaLangEnum, getJavaLangError, getJavaLangFloat, getJavaLangIllegalArgumentException, getJavaLangIncompatibleClassChangeError, getJavaLangInteger, getJavaLangInvokeLambdaMetafactory, getJavaLangInvokeMethodHandlesLookup, getJavaLangInvokeSerializedLambda, getJavaLangIterable, getJavaLangLong, getJavaLangNoClassDefFoundError, getJavaLangNoSuchFieldError, getJavaLangObject, getJavaLangRecord, getJavaLangReflectField, getJavaLangReflectMethod, getJavaLangRuntimeObjectMethods, getJavaLangShort, getJavaLangString, getJavaLangStringBuffer, getJavaLangStringBuilder, getJavaLangThrowable, getJavaLangVoid, getJavaUtilIterator, getMemberType, getMethod, getOnlyPackage, getPackage, getStaticFactory, getType, getType, getType, getTypeOrPackage, greaterLowerBound, greaterLowerBound, hasErasedCandidatesCollisions, innermostSwitchCase, invocationType, isAcceptableMethod, isBoxingCompatibleWith, isDefinedInField, isDefinedInMethod, isDefinedInSameUnit, isDefinedInType, isInsideCase, isInsideDeprecatedCode, isInterTypeScope, isLambdaScope, isLambdaSubscope, isSubtypeOfRawType, localCheckRedundantDefaultNullness, localNonNullByDefaultValue, lowerUpperBound, methodScope, minimalErasedCandidates, mostSpecificClassMethodBinding, mostSpecificInterfaceMethodBinding, mostSpecificMethodBinding, namedMethodScope, originalReferenceContext, outerMostClassScope, outerMostMethodScope, parameterCompatibilityLevel, parameterCompatibilityLevel, parameterCompatibilityLevel, parameterCompatibilityLevel, recordNonNullByDefault, referenceCompilationUnit, referenceContext, 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() -
faultInTypes
public void faultInTypes() -
findImport
-
getImport
-
nextCaptureID
public int nextCaptureID() -
module
-
problemReporter
- Specified by:
problemReporter
in classScope
-
recordTypeConversion
-
recordTypeReference
-
storeDependencyInfo
public void storeDependencyInfo() -
toString
-
verifyMethods
-
hasDefaultNullnessFor
public boolean hasDefaultNullnessFor(int location, int sourceStart)Description copied from class:Scope
Answer a defaultNullness defined for the closest enclosing scope, using bits from Binding.NullnessDefaultMASK.- Overrides:
hasDefaultNullnessFor
in classScope
-
checkRedundantDefaultNullness
Description copied from class:Scope
Check whether the given null default is redundant at the given position inside this scope.- Overrides:
checkRedundantDefaultNullness
in 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()
-