org.aspectj.org.eclipse.jdt.internal.compiler.lookup
Class CompilationUnitScope
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Scope
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope
public class CompilationUnitScope
- extends Scope
| Nested classes/interfaces inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Scope |
Scope.Substitutor |
| Fields inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Scope |
APPLICABILITY, AUTOBOX_COMPATIBLE, BLOCK_SCOPE, CLASS_SCOPE, COMPATIBLE, COMPILATION_UNIT_SCOPE, EQUAL_OR_MORE_SPECIFIC, FULL_INFERENCE, INVOCATION_TYPE, kind, METHOD_SCOPE, MORE_GENERIC, NOT_COMPATIBLE, NOT_RELATED, parent, VARARGS_COMPATIBLE |
| 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, environment, findDefaultAbstractMethod, findDirectMemberType, findExactMethod, findField, findField, findMemberType, findMethod, findMethod0, findMethodForArray, findMethodInSuperInterfaces, findPrivilegedHandler, findType, findTypeVariable, findVariable, getBaseType, getBinding, getConstructor, getConstructor0, getCurrentPackage, getDeclarationModifiers, getExactConstructor, getExactMethod, getField, getImplicitMethod, getJavaIoSerializable, getJavaLangAnnotationAnnotation, getJavaLangAssertionError, getJavaLangClass, getJavaLangCloneable, getJavaLangEnum, getJavaLangIllegalArgumentException, getJavaLangInvokeLambdaMetafactory, getJavaLangInvokeMethodHandlesLookup, getJavaLangInvokeSerializedLambda, getJavaLangIterable, getJavaLangObject, getJavaLangString, getJavaLangThrowable, getJavaUtilIterator, getMemberType, getMethod, getOnlyPackage, getPackage, getStaticFactory, getType, getType, getType, getTypeOrPackage, greaterLowerBound, greaterLowerBound, hasErasedCandidatesCollisions, inferInvocationType, innermostSwitchCase, invocationType, isAcceptableMethod, isBoxingCompatibleWith, isDefinedInField, isDefinedInMethod, isDefinedInSameUnit, isDefinedInType, isInsideCase, isInsideDeprecatedCode, isLambdaScope, isLambdaSubscope, isPossibleSubtypeOfRawType, lowerUpperBound, methodScope, minimalErasedCandidates, mostSpecificClassMethodBinding, mostSpecificInterfaceMethodBinding, mostSpecificMethodBinding, namedMethodScope, originalReferenceContext, outerMostClassScope, outerMostMethodScope, parameterCompatibilityLevel, parameterCompatibilityLevel, parameterCompatibilityLevel, referenceCompilationUnit, referenceContext, substitute, substitute, substitute, tagAsAccessingEnclosingInstanceStateOf, typeAnnotationsResolutionScope, validateNullAnnotation |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
environment
public LookupEnvironment environment
referenceContext
public CompilationUnitDeclaration referenceContext
currentPackageName
public char[][] currentPackageName
fPackage
public PackageBinding fPackage
imports
public ImportBinding[] imports
importPtr
public int importPtr
typeOrPackageCache
public HashtableOfObject typeOrPackageCache
topLevelTypes
public SourceTypeBinding[] topLevelTypes
suppressImportErrors
public boolean suppressImportErrors
- Flag that should be set during annotation traversal or similar runs
to prevent caching of failures regarding imports of yet to be generated classes.
CompilationUnitScope
public CompilationUnitScope(CompilationUnitDeclaration unit,
LookupEnvironment environment)
buildFieldsAndMethods
public void buildFieldsAndMethods()
checkAndSetImports
public void checkAndSetImports()
checkParameterizedTypes
public void checkParameterizedTypes()
- Perform deferred check specific to parameterized types: bound checks, supertype collisions
computeConstantPoolName
public char[] computeConstantPoolName(LocalTypeBinding localType)
connectTypeHierarchy
public void connectTypeHierarchy()
faultInTypes
public void faultInTypes()
findImport
public Binding findImport(char[][] compoundName,
boolean findStaticImports,
boolean onDemand)
getImport
public final Binding getImport(char[][] compoundName,
boolean onDemand,
boolean isStaticImport)
nextCaptureID
public int nextCaptureID()
problemReporter
public ProblemReporter problemReporter()
- Specified by:
problemReporter in class Scope
recordTypeConversion
public void recordTypeConversion(TypeBinding superType,
TypeBinding subType)
recordTypeReference
public void recordTypeReference(TypeBinding type)
storeDependencyInfo
public void storeDependencyInfo()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
verifyMethods
public void verifyMethods(MethodVerifier verifier)
hasDefaultNullnessFor
public boolean hasDefaultNullnessFor(int location)
- Description copied from class:
Scope
- Answer a defaultNullness defined for the closest enclosing scope, using bits from Binding.NullnessDefaultMASK.
- Specified by:
hasDefaultNullnessFor in class Scope