public class CompilationUnitScope extends Scope
Scope.Substitutor| Modifier and Type | Field and Description |
|---|---|
char[][] |
currentPackageName |
LookupEnvironment |
environment |
PackageBinding |
fPackage |
int |
importPtr |
ImportBinding[] |
imports |
CompilationUnitDeclaration |
referenceContext |
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.
|
SourceTypeBinding[] |
topLevelTypes |
HashtableOfObject |
typeOrPackageCache |
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| Constructor and Description |
|---|
CompilationUnitScope(CompilationUnitDeclaration unit,
LookupEnvironment environment) |
| Modifier and Type | Method and Description |
|---|---|
char[] |
computeConstantPoolName(LocalTypeBinding localType) |
void |
faultInTypes() |
Binding |
findImport(char[][] compoundName,
boolean findStaticImports,
boolean onDemand) |
Binding |
getImport(char[][] compoundName,
boolean onDemand,
boolean isStaticImport) |
boolean |
hasDefaultNullnessFor(int location)
Answer a defaultNullness defined for the closest enclosing scope, using bits from Binding.NullnessDefaultMASK.
|
int |
nextCaptureID() |
ProblemReporter |
problemReporter() |
void |
recordTypeConversion(TypeBinding superType,
TypeBinding subType) |
void |
storeDependencyInfo() |
String |
toString() |
void |
verifyMethods(MethodVerifier verifier) |
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, findType, 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, 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, validateNullAnnotationpublic LookupEnvironment environment
public CompilationUnitDeclaration referenceContext
public char[][] currentPackageName
public PackageBinding fPackage
public ImportBinding[] imports
public int importPtr
public HashtableOfObject typeOrPackageCache
public SourceTypeBinding[] topLevelTypes
public boolean suppressImportErrors
public CompilationUnitScope(CompilationUnitDeclaration unit, LookupEnvironment environment)
public char[] computeConstantPoolName(LocalTypeBinding localType)
public void faultInTypes()
public Binding findImport(char[][] compoundName, boolean findStaticImports, boolean onDemand)
public final Binding getImport(char[][] compoundName, boolean onDemand, boolean isStaticImport)
public int nextCaptureID()
public ProblemReporter problemReporter()
problemReporter in class Scopepublic void recordTypeConversion(TypeBinding superType, TypeBinding subType)
public void storeDependencyInfo()
public void verifyMethods(MethodVerifier verifier)
public boolean hasDefaultNullnessFor(int location)
ScopehasDefaultNullnessFor in class ScopeCopyright © 2015. All rights reserved.