public class ClassScope extends Scope
Scope.Substitutor| Modifier and Type | Field and Description |
|---|---|
TypeDeclaration |
referenceContext |
TypeReference |
superTypeReference |
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 and Description |
|---|
ClassScope(Scope parent,
TypeDeclaration context) |
| Modifier and Type | Method and Description |
|---|---|
int |
addDepth() |
void |
checkParameterizedSuperTypeCollisions() |
void |
checkParameterizedTypeBounds() |
Binding |
checkRedundantDefaultNullness(int nullBits,
int sourceStart)
Check whether the given null default is redundant at the given position inside this scope.
|
boolean |
deferCheck(java.lang.Runnable check) |
boolean |
detectHierarchyCycle(TypeBinding superType,
TypeReference reference) |
boolean |
hasDefaultNullnessFor(int location,
int sourceStart)
Answer a defaultNullness defined for the closest enclosing scope, using bits from Binding.NullnessDefaultMASK.
|
SourceTypeBinding |
invocationType()
For Java scopes, the invocationType is always the same as the enclosingSourceType
This distinction is important for AspectJ's inter-type declarations
For inter-type declarations, the invocationType is the lexically enclosing type.
|
ProblemReporter |
problemReporter() |
TypeDeclaration |
referenceType() |
java.lang.String |
toString() |
boxing, classScope, compareTypes, compilationUnitScope, compilerOptions, computeCompatibleMethod, computeCompatibleMethod, connectTypeVariables, convertEliminatingTypeVariables, createArrayType, createArrayType, createTypeVariables, deferBoundCheck, 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, isAcceptableMethod, isBoxingCompatibleWith, isDefinedInField, isDefinedInMethod, isDefinedInSameUnit, isDefinedInType, isInsideCase, isInsideDeprecatedCode, isInterTypeScope, isLambdaScope, isLambdaSubscope, isSubtypeOfRawType, localCheckRedundantDefaultNullness, localNonNullByDefaultValue, lowerUpperBound, methodScope, minimalErasedCandidates, module, mostSpecificClassMethodBinding, mostSpecificInterfaceMethodBinding, mostSpecificMethodBinding, namedMethodScope, originalReferenceContext, outerMostClassScope, outerMostMethodScope, parameterCompatibilityLevel, parameterCompatibilityLevel, parameterCompatibilityLevel, parameterCompatibilityLevel, recordNonNullByDefault, referenceCompilationUnit, referenceContext, substitute, substitute, substitute, tagAsAccessingEnclosingInstanceStateOf, typeAnnotationsResolutionScope, validateNullAnnotationpublic TypeDeclaration referenceContext
public TypeReference superTypeReference
public ClassScope(Scope parent, TypeDeclaration context)
public void checkParameterizedSuperTypeCollisions()
public void checkParameterizedTypeBounds()
public boolean deferCheck(java.lang.Runnable check)
deferCheck in class Scopepublic boolean detectHierarchyCycle(TypeBinding superType, TypeReference reference)
public ProblemReporter problemReporter()
problemReporter in class Scopepublic TypeDeclaration referenceType()
public boolean hasDefaultNullnessFor(int location,
int sourceStart)
ScopehasDefaultNullnessFor in class Scopepublic Binding checkRedundantDefaultNullness(int nullBits, int sourceStart)
ScopecheckRedundantDefaultNullness in class ScopenullBits - locally defined nullness default, see Binding.NullnessDefaultMASKScope.NOT_REDUNDANT, indicating that a different enclosing nullness default was found,
or null to indicate that no enclosing nullness default was found.public java.lang.String toString()
toString in class java.lang.Objectpublic int addDepth()
public SourceTypeBinding invocationType()
ScopeinvocationType in class Scope