Class NestedTypeBinding
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Binding
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.TypeBinding
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.NestedTypeBinding
- Direct Known Subclasses:
LocalTypeBinding, MemberTypeBinding
-
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from class SourceTypeBinding
components, defaultNullness, externalAnnotationProvider, fields, isImplicit, memberFinder, memberTypes, methods, module, nestHost, originalSuperclass, originalSuperInterfaces, permittedTypes, privilegedHandler, prototype, scope, superclass, superInterfaces, typeFinder, typeVariablesModifier and TypeFieldDescriptionintbooleanprotected SourceTypeBindingprotected SourceTypeBindingFields inherited from class ReferenceBinding
compatibleCache, compoundName, DYSFUNCTIONAL_INTERFACE_EXCEPTION, fPackage, LUB_GENERIC, modifiers, samProblemBinding, singleAbstractMethod, sourceNameModifier and TypeFieldDescriptionprotected Map<TypeBinding, Boolean> char[][]protected static final org.aspectj.org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding.DysfunctionalInterfaceExceptionstatic final ReferenceBindingintprotected static ProblemMethodBindingprotected MethodBinding[]char[]Fields inherited from class TypeBinding
BOOLEAN, BYTE, CHAR, DOUBLE, FLOAT, id, INT, LONG, NULL, NUMERIC_TYPES, SHORT, TYPE_USE_BINDING, typeAnnotations, VOIDModifier and TypeFieldDescriptionstatic final BaseTypeBindingstatic final BaseTypeBindingstatic final BaseTypeBindingstatic final BaseTypeBindingstatic final BaseTypeBindingintstatic final BaseTypeBindingBase type definitionsstatic final BaseTypeBindingstatic final NullTypeBindingstatic final TypeBinding[]static final BaseTypeBindingstatic final ReferenceBindingprotected AnnotationBinding[]static final VoidTypeBindingFields inherited from class Binding
ANY_EXCEPTION, ARRAY_TYPE, AWAITED_ANNOTATIONS, BASE_TYPE, DefaultLocationArrayContents, DefaultLocationField, DefaultLocationParameter, DefaultLocationRecordComponent, DefaultLocationReturnType, DefaultLocationsForTrueValue, DefaultLocationTypeArgument, DefaultLocationTypeBound, DefaultLocationTypeParameter, extendedTagBits, FIELD, GENERIC_TYPE, IMPORT, INTERSECTION_TYPE, INTERSECTION_TYPE18, LOCAL, METHOD, MODULE, NO_ANNOTATIONS, NO_COMPONENTS, NO_ELEMENT_VALUE_PAIRS, NO_EXCEPTIONS, NO_FIELDS, NO_MEMBER_TYPES, NO_METHODS, NO_MODULES, NO_NULL_DEFAULT, NO_PACKAGES, NO_PARAMETER_NAMES, NO_PARAMETERS, NO_PERMITTED_TYPES, NO_PLAIN_PACKAGES, NO_REFERENCE_TYPES, NO_SUPERINTERFACES, NO_TYPE_VARIABLES, NO_TYPES, NULL_UNSPECIFIED_BY_DEFAULT, NullnessDefaultMASK, PACKAGE, PARAMETERIZED_TYPE, PATTERN, POLY_TYPE, RAW_TYPE, RECORD_COMPONENT, tagBits, TYPE, TYPE_PARAMETER, TYPE_USE, UNINITIALIZED_COMPONENTS, UNINITIALIZED_FIELDS, UNINITIALIZED_METHODS, UNINITIALIZED_REFERENCE_TYPES, VARIABLE, WILDCARD_TYPEModifier and TypeFieldDescriptionstatic final ReferenceBinding[]static final intstatic final AnnotationBinding[]static final intstatic final intBit in defaultNullness bit vectors, representing the enum constant DefaultLocation#ARRAY_CONTENTSstatic final intBit in defaultNullness bit vectors, representing the enum constant DefaultLocation#FIELDstatic final intBit in defaultNullness bit vectors, representing the enum constant DefaultLocation#PARAMETERstatic final intBit in defaultNullness bit vectors, representing the enum constant DefaultLocation#RECORD_COMPONENTstatic final intBit in defaultNullness bit vectors, representing the enum constant DefaultLocation#RETURN_TYPEstatic final intstatic final intBit in defaultNullness bit vectors, representing the enum constant DefaultLocation#TYPE_ARGUMENTstatic final intBit in defaultNullness bit vectors, representing the enum constant DefaultLocation#TYPE_BOUNDstatic final intBit in defaultNullness bit vectors, representing the enum constant DefaultLocation#TYPE_PARAMETERintstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final AnnotationBinding[]static final RecordComponentBinding[]static final ElementValuePair[]static final ReferenceBinding[]static final FieldBinding[]static final ReferenceBinding[]static final MethodBinding[]static final ModuleBinding[]static final intstatic final PackageBinding[]static final char[][]static final TypeBinding[]static final ReferenceBinding[]static final PlainPackageBinding[]static final ReferenceBinding[]static final ReferenceBinding[]static final TypeVariableBinding[]static final TypeBinding[]static final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intlongstatic final intstatic final intstatic final intstatic final RecordComponentBinding[]static final FieldBinding[]static final MethodBinding[]static final ReferenceBinding[]static final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionNestedTypeBinding(char[][] typeName, ClassScope scope, SourceTypeBinding enclosingType) NestedTypeBinding(NestedTypeBinding prototype) -
Method Summary
Modifier and TypeMethodDescriptionaddSyntheticArgument(LocalVariableBinding actualOuterLocalVariable) addSyntheticArgument(ReferenceBinding targetEnclosingType) addSyntheticArgumentAndField(LocalVariableBinding actualOuterLocalVariable) addSyntheticArgumentAndField(ReferenceBinding targetEnclosingType) intintgetSyntheticArgument(LocalVariableBinding actualOuterLocalVariable) getSyntheticArgument(ReferenceBinding targetEnclosingType, boolean onlyExactMatch, boolean scopeIsConstructorCall) voidMethods inherited from class SourceTypeBinding
addField, addMethod, addNestMember, addSyntheticArrayMethod, addSyntheticBridgeMethod, addSyntheticBridgeMethod, addSyntheticCanonicalConstructor, addSyntheticEnumMethod, addSyntheticFactoryMethod, addSyntheticField, addSyntheticFieldForAssert, addSyntheticFieldForEnumValues, addSyntheticFieldForInnerclass, addSyntheticFieldForInnerclass, addSyntheticFieldForSwitchEnum, addSyntheticMethod, addSyntheticMethod, addSyntheticMethod, addSyntheticMethod, addSyntheticMethodForEnumInitialization, addSyntheticMethodForSwitchEnum, addSyntheticRecordComponentAccessor, addSyntheticRecordOverrideMethod, addSyntheticRecordState, canBeSeenBy, checkAndFlagHeapPollution, cleanUp, clone, components, computeUniqueKey, containerAnnotationType, evaluateNullAnnotations, fields, generateSyntheticFinalFieldInitialization, genericSignature, genericTypeSignature, getAnnotations, getAnnotationTagBits, getDefaultAbstractMethods, getExactConstructor, getExactMethod, getExactMethodBase, getField, getField, getFieldBase, getMemberType, getMethods, getMethods, getMethodsBase, getNestHost, getNestMembers, getRecordComponentAccessor, getSyntheticBridgeMethod, getSyntheticField, getSyntheticField, hasMemberTypes, hasMethodWithNumArgs, hasTypeBit, initializeDeprecatedAnnotationTagBits, isEquivalentTo, isGenericType, isHierarchyConnected, isImplicitType, isNestmateOf, isPrototype, isReadyForAnnotations, isRepeatableAnnotationType, isTaggedRepeatable, kind, memberTypes, methods, methodsBase, module, permittedTypes, prototype, rememberTypeHierarchy, removeMethod, resolveTypeFor, resolveTypeFor, resolveTypesFor, retrieveAnnotationHolder, setComponents, setContainerAnnotationType, setFields, setMemberTypes, setMethods, setNestHost, setPermittedTypes, setSuperClass, setSuperInterfaces, setTypeVariables, sourceEnd, sourceStart, superclass, superInterfaces, syntheticFields, syntheticMethods, tagAsHavingDefectiveContainerType, tagIndirectlyAccessibleMembers, toString, typeVariables, unannotated, unResolvedFields, withoutToplevelNullAnnotationModifier and TypeMethodDescriptionvoidaddField(FieldBinding binding) voidaddMethod(MethodBinding binding) voidaddNestMember(SourceTypeBinding member) addSyntheticArrayMethod(ArrayBinding arrayType, int purpose, char[] selector) addSyntheticBridgeMethod(MethodBinding inheritedMethodToBridge) addSyntheticBridgeMethod(MethodBinding inheritedMethodToBridge, MethodBinding targetMethod) addSyntheticEnumMethod(char[] selector) addSyntheticFactoryMethod(MethodBinding privateConstructor, MethodBinding publicConstructor, TypeBinding[] enclosingInstances, char[] selector) addSyntheticFieldForAssert(BlockScope blockScope) addSyntheticFieldForInnerclass(LocalVariableBinding actualOuterLocalVariable) addSyntheticFieldForInnerclass(ReferenceBinding enclosingType) addSyntheticFieldForSwitchEnum(char[] fieldName, String key) addSyntheticMethod(LambdaExpression lambda) addSyntheticMethod(FieldBinding targetField, boolean isReadAccess, boolean isSuperAccess) addSyntheticMethod(MethodBinding targetMethod, boolean isSuperAccess) addSyntheticMethodForEnumInitialization(int begin, int end) addSyntheticMethodForSwitchEnum(TypeBinding enumBinding, SwitchStatement switchStatement) addSyntheticRecordOverrideMethod(char[] selector) voidaddSyntheticRecordState(RecordComponent component, FieldBinding synthField) booleancanBeSeenBy(Scope sco) Answer true if the receiver is visible to the type provided by the scope.voidcheckAndFlagHeapPollution(MethodBinding method, AbstractVariableDeclaration argument) voidcleanUp()clone(TypeBinding immaterial) Virtual copy constructor: a copy is made of the receiver's entire instance state and then suitably parameterized by the arguments to the clone operation as seen fit by each type.char[]computeUniqueKey(boolean isLeaf) p.X<T extends Y & I, U extends Y> -> Lp/X<TT;TU;>;voidfields()voidgenerateSyntheticFinalFieldInitialization(CodeStream codeStream) char[]<param1 ... paramN>superclass superinterface1 ... superinterfaceN <T:LY<TT;>;U:Ljava/lang/Object;V::Ljava/lang/Runnable;:Ljava/lang/Cloneable;:Ljava/util/Map;>Ljava/lang/Exception;Ljava/lang/Runnable;char[]Answer the receiver classfile signature.getAnnotations(long requestedInitialization) Get annotations, but request initialization only for specific oneslongCompute the tagbits for standard annotations.getExactConstructor(TypeBinding[] argumentTypes) getExactMethod(char[] selector, TypeBinding[] argumentTypes, CompilationUnitScope refScope) getExactMethodBase(char[] selector, TypeBinding[] argumentTypes, CompilationUnitScope refScope) getField(char[] fieldName, boolean needResolve) getField(char[] fieldName, boolean needResolve, InvocationSite site, Scope scope) Where multiple fields with the same name are defined, this will return the one most visible one...getFieldBase(char[] fieldName, boolean needResolve) getMemberType(char[] typeName) Find the member type with the given simple typeName.getMethods(char[] selector) getMethods(char[] selector, int suggestedParameterLength) getMethodsBase(char[] selector) getRecordComponentAccessor(char[] name) Get the accessor method given the record component namegetSyntheticBridgeMethod(MethodBinding inheritedMethodToBridge) getSyntheticField(LocalVariableBinding actualOuterLocalVariable) getSyntheticField(ReferenceBinding targetEnclosingType, boolean onlyExactMatch) booleanprotected booleanhasMethodWithNumArgs(char[] selector, int numArgs) booleanhasTypeBit(int bit) Answer an additional bit characterizing this type, likeTypeIds.BitAutoCloseable.voidCompute the tag bits for @Deprecated annotations, avoiding resolving entire annotation if not necessary.booleanisEquivalentTo(TypeBinding otherType) Returns true if a type is identical to another one, or for generic types, true if compared to its raw type.booleanbooleanReturns true if the type hierarchy is connectedboolean**booleanisNestmateOf(SourceTypeBinding other) booleanbooleanbooleanAnswer true if the receiver is an annotation which may be repeatable.booleanintkind()Returns the member types of this type sorted by simple name.methods()module()Return the primordial type from which the receiver was cloned.voidvoidremoveMethod(int index) resolveTypeFor(FieldBinding field) resolveTypeFor(RecordComponentBinding component) resolveTypesFor(MethodBinding method) retrieveAnnotationHolder(Binding binding, boolean forceInitialization) setComponents(RecordComponentBinding[] components) voidsetFields(FieldBinding[] fields) setMemberTypes(ReferenceBinding[] memberTypes) setMethods(MethodBinding[] methods) voidsetNestHost(SourceTypeBinding nestHost) setPermittedTypes(ReferenceBinding[] permittedTypes) setSuperClass(ReferenceBinding superClass) setSuperInterfaces(ReferenceBinding[] superInterfaces) setTypeVariables(TypeVariableBinding[] typeVariables) intintAnswer the collection of synthetic fields to append into the classfilevoidvoidtoString()Return this type minus its type annotationsReturn this type minus its toplevel null annotations.Methods inherited from class ReferenceBinding
acceptsNonNullDefault, actualType, appendNullAnnotation, applyCloseableClassWhitelists, applyCloseableInterfaceWhitelists, applyCloseableWhitelists, availableFields, availableMethods, binarySearch, binarySearch, canBeInstantiated, canBeSeenBy, canBeSeenBy, collateFunctionalInterfaceContracts, computeGenericTypeSignature, computeId, computeId, constantPoolName, debugName, depth, detectAnnotationCycle, detectWrapperResource, enclosingTypeAt, enumConstantCount, fieldCount, getAccessFlags, getAllEnumerableAvatars, getAnnotations, getFileName, getFunctionalInterfaceAbstractContracts, getPackage, getRecordComponent, getRecordComponents, getSingleAbstractMethod, getTypeVariable, hasEnclosingInstanceContext, hashCode, hasHierarchyCheckStarted, hasIncompatibleSuperType, hasNullBit, hasRestrictedAccess, implementsInterface, innerCanBeSeenBy, innerCanBeSeenBy, isAbstract, isAnnotationType, isBinaryBinding, isClass, isCompatibleWith, isConsistentIntersection, isDefault, isDeprecated, isDisjointFrom, isEnum, isFieldInitializationFinished, isFinal, isFunctionalInterface, isHierarchyBeingActivelyConnected, isHierarchyBeingConnected, isInterface, isNestmateOf, isNonSealed, isOrEnclosedByPrivateType, isPrivate, isProperType, isProtected, isPublic, isRecord, isSealed, isStatic, isStrictfp, isSubtypeOf, isSubTypeOfRTL, isSuperclassOf, isThrowable, isUncheckedException, isUsed, nullAnnotatedReadableName, outermostEnclosingType, qualifiedSourceName, readableName, readableName, setAnnotations, setHierarchyCheckDone, shortReadableName, shortReadableName, signature, sortFields, sortMethods, sourceName, typeArgumentsIncludingEnclosing, typeVariablesIncludingEnclosingModifier and TypeMethodDescriptionbooleanUsed to implement this sentence from o.e.j.annotation.DefaultLocation: "Wildcards and the use of type variables are always excluded from NonNullByDefault."protected voidappendNullAnnotation(StringBuilder nameBuffer, CompilerOptions options) protected intprotected intprotected intapplyCloseableWhitelists(CompilerOptions options) Return the array of resolvable fields (resilience)Return the array of resolvable methods (resilience)static FieldBindingbinarySearch(char[] name, FieldBinding[] sortedFields) static longbinarySearch(char[] selector, MethodBinding[] sortedMethods) Returns a combined range value representing:(start + (end<<32)), where start is the index of the first matching method (remember methods are sorted alphabetically on selectors), and end is the index of last contiguous methods with same selector.booleanAnswer true if the receiver can be instantiatedbooleancanBeSeenBy(PackageBinding invocationPackage) Answer true if the receiver is visible to the invocationPackage.booleancanBeSeenBy(ReferenceBinding receiverType, ReferenceBinding invocationType) Answer true if the receiver is visible to the receiverType and the invocationType.protected Stream<MethodBinding> collateFunctionalInterfaceContracts(Scope scope, boolean replaceWildcards, Set<ReferenceBinding> visitedInterfaces) char[]computeGenericTypeSignature(TypeVariableBinding[] typeVariables) voidvoidcomputeId(LookupEnvironment environment) char[]Answer the receiver's constant pool name.intdepth()booleanvoidfinal ReferenceBindingenclosingTypeAt(int relativeDepth) intintfinal intchar[]getFunctionalInterfaceAbstractContracts(Scope scope, boolean replaceWildcards) getRecordComponent(char[] name) getSingleAbstractMethod(Scope scope, boolean replaceWildcards) Return the single abstract method of a functional interface, or one ofnullorReferenceBinding.samProblemBinding, if the receiver is not a functional interface as defined in JLS 9.8.getTypeVariable(char[] variableName) booleaninthashCode()booleanbooleanhasIncompatibleSuperType(ReferenceBinding otherType) Returns true if the two types have an incompatible common supertype, e.g.booleanhasNullBit(int mask) Query typeBits without triggering supertype lookup.final booleanbooleanimplementsInterface(ReferenceBinding anInterface, boolean searchHierarchy) Answer true if the receiver implements anInterface or is identical to anInterface.final booleaninnerCanBeSeenBy(ReferenceBinding receiverType, ReferenceBinding invocationType) final booleaninnerCanBeSeenBy(Scope scope) final booleanAnswer true if the receiver is an abstract typebooleanfinal booleanbooleanisClass()booleanisCompatibleWith(TypeBinding otherType, Scope captureScope) Answer true if the receiver type can be assigned to the argument type (right) In addition to improving performance, caching also ensures there is no infinite regression since per nature, the compatibility check is recursive through parameterized type arguments (122775)static booleanisConsistentIntersection(TypeBinding[] intersectingTypes, boolean simulatingBugJDK8026527) final booleanAnswer true if the receiver has default visibilityfinal booleanAnswer true if the receiver is a deprecated typebooleanbooleanisEnum()protected booleanfinal booleanisFinal()Answer true if the receiver is final and cannot be subclassedbooleanisFunctionalInterface(Scope scope) booleanReturns true if the type hierarchy is being connected "actively" i.e not paused momentatrily, while resolving type arguments.booleanReturns true if the type hierarchy is being connectedbooleanbooleanisNestmateOf(ReferenceBinding other) final booleanAnswer true if the receiver has non-sealed modifierfinal booleanAnswer true if the receiver or any of its enclosing types have private visibilityfinal booleanAnswer true if the receiver has private visibilitybooleanisProperType(boolean admitCapture18) JLS8 Sect 18.1.1final booleanAnswer true if the receiver has protected visibilityfinal booleanisPublic()Answer true if the receiver has public visibilitybooleanisRecord()booleanisSealed()Answer true if the receiver has sealed modifierfinal booleanisStatic()Answer true if the receiver is a static member type (or toplevel)final booleanAnswer true if all float operations must adher to IEEE 754 float/double rulesbooleanisSubtypeOf(TypeBinding other, boolean simulatingBugJDK8026527) protected booleanisSubTypeOfRTL(TypeBinding other) booleanisSuperclassOf(ReferenceBinding otherType) Answer true if the receiver is in the superclass hierarchy of aType NOTE: Object.isSuperclassOf(Object) -> falsebooleanReturns true if a given type may be thrownbooleanisUncheckedException(boolean includeSupertype) JLS 11.5 ensures that Throwable, Exception, RuntimeException and Error are directly connected.final booleanisUsed()Answer true if the receiver has private visibility and is used locallychar[]nullAnnotatedReadableName(CompilerOptions options, boolean shortNames) Answer a readable name (for error reporting) that includes nullness type annotations.final ReferenceBindingchar[]Answer the source name for the type.char[]Answer the receiver's signature.char[]readableName(boolean showGenerics) voidsetAnnotations(AnnotationBinding[] annotations, boolean forceStore) voidchar[]char[]shortReadableName(boolean showGenerics) char[]Answer the receiver classfile signature.static voidsortFields(FieldBinding[] sortedFields, int left, int right) Sort the field array using a quicksortstatic voidsortMethods(MethodBinding[] sortedMethods, int left, int right) Sort the field array using a quicksortchar[]return all type variables involved left to rightMethods inherited from class TypeBinding
annotatedDebugName, capture, closestMatch, collectMissingTypes, dimensions, downwardsProjection, enclosingMethod, enterRecursiveFunction, equalsEquals, erasure, exitRecursiveFunction, findSuperTypeOriginatingFrom, findSuperTypeOriginatingFrom, genericCast, getErasureCompatibleType, getIntersectingTypes, getTypeAnnotations, hasNullTypeAnnotations, hasTypeAnnotations, hasValueBasedTypeAnnotation, isAnonymousType, isArrayType, isBaseType, isBoundParameterizedType, isBoxedPrimitiveType, isBoxingCompatibleWith, isCapture, isCompatibleWith, isFreeTypeVariable, isFunctionalType, isHierarchyInconsistent, isIntersectionType, isIntersectionType18, isLocalType, isMemberType, isNestedType, isNonDenotable, isNumericType, isParameterizedType, isParameterizedTypeWithActualArguments, isParameterizedWithOwnVariables, isPolyType, isPotentiallyCompatibleWith, isPrimitiveOrBoxedPrimitiveType, isPrimitiveType, isProvablyDistinct, isRawType, isRecordWithComponents, isReifiable, isTypeArgumentContainedBy, isTypeVariable, isUnboundWildcard, isUnresolvedType, isWildcard, leafComponentType, mentionsAny, needsUncheckedConversion, notEquals, original, qualifiedPackageName, setTypeAnnotations, signableName, sIsMoreSpecific, syntheticTypeVariablesMentioned, typeArgumentDepth, unboxedType, uncapture, updateTagBits, upwardsProjection, upwardsProjection, wellKnownBaseType, wellKnownTypeModifier and TypeMethodDescriptionPerform capture conversion on a given type (only effective on parameterized type with wildcards)In case of problems, returns the closest match found.collectMissingTypes(List<TypeBinding> missingTypes) Iterate through the type components to collect instances of leaf missing typesintdownwardsProjection(Scope scope, TypeBinding[] mentionedTypeVariables) Perform a downwards type projection as per JLS 4.10.5booleanCall this before descending into type details to prevent infinite recursion.static booleanequalsEquals(TypeBinding that, TypeBinding other) erasure()voidExit the context of a potentially recursive function.findSuperTypeOriginatingFrom(int wellKnownOriginalID, boolean originalIsClass) Find supertype which originates from a given well-known type, or null if not found (using id avoids triggering the load of well-known type: 73740) NOTE: only works for erasures of well-known types, as random other types may share same id though being distincts.findSuperTypeOriginatingFrom(TypeBinding otherType) Find supertype which originates from a given type, or null if not foundgenericCast(TypeBinding targetType) Returns the type to use for generic cast, or null if none requiredgetErasureCompatibleType(TypeBinding declaringClass) Return the supertype which would erase as a subtype of a given declaring class.final AnnotationBinding[]booleanDoes this type or any of its details (array dimensions, type arguments) have a null type annotation?final booleanbooleanfinal booleanfinal booleanfinal booleanbooleanReturns true if parameterized type AND not of the formList<?>booleanbooleanisBoxingCompatibleWith(TypeBinding right, Scope scope) booleanReturns true if the type is the capture of some wildcardbooleanisCompatibleWith(TypeBinding right) booleanbooleanfinal booleanbooleanReturns true if the current type denotes an intersection type: Number andComparable<?>booleanfinal booleanfinal booleanfinal booleanbooleanDoes this type lack a class file representation on its own ?final booleanbooleanReturns true if the type is parameterized, e.g.final booleanReturns true if the type is parameterized, e.g.booleanReturns true if the type is parameterized using its own type variables as argumentsbooleanbooleanisPotentiallyCompatibleWith(TypeBinding right, Scope scope) final booleanfinal booleanbooleanisProvablyDistinct(TypeBinding otherType) Returns true if a type is provably distinct from another one,final booleanbooleanbooleanJLS(3) 4.7.booleanisTypeArgumentContainedBy(TypeBinding otherType) booleanReturns true if the type was declared as a type variablebooleanReturns true if wildcard type of the form '?' (no bound)booleanbooleanReturns true if the type is a wildcardbooleanmentionsAny(TypeBinding[] parameters, int idx) Does this type mention any of the given type parameters, except the one at position 'idx'?booleanneedsUncheckedConversion(TypeBinding targetType) Meant to be invoked on compatible types, to figure if unchecked conversion is necessarystatic booleannotEquals(TypeBinding that, TypeBinding other) original()Returns the orignal generic type instantiated by the receiver type, or itself if not.char[]Answer the qualified name of the receiver's package separated by periods or an empty string if its the default package.voidsetTypeAnnotations(AnnotationBinding[] annotations, boolean evalNullAnnotations) char[]booleansIsMoreSpecific(TypeBinding s, TypeBinding t, Scope scope) intPerform capture "deconversion" on a given typelongRefresh some tagBits from details into the main type.upwardsProjection(Scope scope) Perform an upwards type projection as per JLS 4.10.5upwardsProjection(Scope scope, TypeBinding[] mentionedTypeVariables) Perform an upwards type projection as per JLS 4.10.5static final TypeBindingwellKnownBaseType(int id) static final TypeBindingwellKnownType(Scope scope, int id) Match a well-known type id to its bindingMethods inherited from class Binding
computeUniqueKey, isParameter, isPatternVariable, isValid, isValidBinding, isVolatile, problemId, setAnnotationsModifier and TypeMethodDescriptionchar[]booleanbooleanstatic booleanfinal booleanbooleanintvoidsetAnnotations(AnnotationBinding[] annotations, Scope scope, boolean forceStore)
-
Field Details
-
enclosingType
-
enclosingInstances
-
outerLocalVariables
-
-
Constructor Details
-
NestedTypeBinding
-
NestedTypeBinding
-
-
Method Details
-
addSyntheticArgument
-
addSyntheticArgument
-
addSyntheticArgumentAndField
public SyntheticArgumentBinding addSyntheticArgumentAndField(LocalVariableBinding actualOuterLocalVariable) -
addSyntheticArgumentAndField
-
enclosingType
- Overrides:
enclosingTypein classTypeBinding
-
getEnclosingInstancesSlotSize
public int getEnclosingInstancesSlotSize()- Overrides:
getEnclosingInstancesSlotSizein classReferenceBinding- Returns:
- the enclosingInstancesSlotSize
-
getOuterLocalVariablesSlotSize
public int getOuterLocalVariablesSlotSize()- Overrides:
getOuterLocalVariablesSlotSizein classReferenceBinding- Returns:
- the outerLocalVariablesSlotSize
-
getSyntheticArgument
-
getSyntheticArgument
public SyntheticArgumentBinding getSyntheticArgument(ReferenceBinding targetEnclosingType, boolean onlyExactMatch, boolean scopeIsConstructorCall) -
syntheticEnclosingInstances
-
syntheticEnclosingInstanceTypes
- Overrides:
syntheticEnclosingInstanceTypesin classReferenceBinding
-
syntheticOuterLocalVariables
- Overrides:
syntheticOuterLocalVariablesin classTypeBinding
-
updateInnerEmulationDependents
public void updateInnerEmulationDependents()
-