public class IntersectionTypeBinding18 extends ReferenceBinding
| Modifier and Type | Field and Description |
|---|---|
ReferenceBinding[] |
intersectingTypes |
compoundName, fPackage, LUB_GENERIC, modifiers, samProblemBinding, singleAbstractMethod, sourceNameBOOLEAN, BYTE, CHAR, DOUBLE, FLOAT, id, INT, LONG, NULL, SHORT, tagBits, TYPE_USE_BINDING, typeAnnotations, VOIDANY_EXCEPTION, ARRAY_TYPE, BASE_TYPE, DefaultLocationArrayContents, DefaultLocationField, DefaultLocationParameter, DefaultLocationReturnType, DefaultLocationTypeArgument, DefaultLocationTypeBound, DefaultLocationTypeParameter, FIELD, GENERIC_TYPE, IMPORT, INTERSECTION_TYPE, INTERSECTION_TYPE18, LOCAL, METHOD, NO_ANNOTATIONS, NO_ELEMENT_VALUE_PAIRS, NO_EXCEPTIONS, NO_FIELDS, NO_MEMBER_TYPES, NO_METHODS, NO_NULL_DEFAULT, NO_PARAMETER_NAMES, NO_PARAMETERS, NO_REFERENCE_TYPES, NO_SUPERINTERFACES, NO_TYPE_VARIABLES, NO_TYPES, NONNULL_BY_DEFAULT, NULL_UNSPECIFIED_BY_DEFAULT, NullnessDefaultMASK, PACKAGE, PARAMETERIZED_TYPE, POLY_TYPE, RAW_TYPE, TYPE, TYPE_PARAMETER, TYPE_USE, UNINITIALIZED_FIELDS, UNINITIALIZED_METHODS, UNINITIALIZED_REFERENCE_TYPES, VARIABLE, WILDCARD_TYPE| Constructor and Description |
|---|
IntersectionTypeBinding18(ReferenceBinding[] intersectingTypes,
LookupEnvironment environment) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeInstantiated()
Answer true if the receiver can be instantiated
|
boolean |
canBeSeenBy(PackageBinding invocationPackage)
Answer true if the receiver is visible to the invocationPackage.
|
boolean |
canBeSeenBy(ReferenceBinding receiverType,
ReferenceBinding invocationType)
Answer true if the receiver is visible to the receiverType and the invocationType.
|
boolean |
canBeSeenBy(Scope scope)
Answer true if the receiver is visible to the type provided by the scope.
|
TypeBinding |
clone(TypeBinding enclosingType)
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[] |
constantPoolName()
Answer the receiver's constant pool name.
|
java.lang.String |
debugName() |
protected MethodBinding[] |
getInterfaceAbstractContracts(Scope scope,
boolean replaceWildcards) |
ReferenceBinding[] |
getIntersectingTypes() |
PackageBinding |
getPackage() |
TypeBinding |
getSAMType(Scope scope) |
boolean |
hasTypeBit(int bit)
Answer an additional bit characterizing this type, like
TypeIds.BitAutoCloseable. |
boolean |
isBoxedPrimitiveType() |
boolean |
isCompatibleWith(TypeBinding right,
Scope scope)
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)
|
boolean |
isIntersectionType18() |
boolean |
isSubtypeOf(TypeBinding other) |
int |
kind() |
boolean |
mentionsAny(TypeBinding[] parameters,
int idx)
Does this type mention any of the given type parameters, except the one at position 'idx'?
|
char[] |
qualifiedSourceName()
Answer the source name for the type.
|
char[] |
readableName()
Answer the receiver's signature.
|
char[] |
shortReadableName() |
char[] |
sourceName() |
ReferenceBinding |
superclass() |
ReferenceBinding[] |
superInterfaces() |
java.lang.String |
toString() |
long |
updateTagBits()
Refresh some tagBits from details into the main type.
|
acceptsNonNullDefault, appendNullAnnotation, applyCloseableClassWhitelists, applyCloseableInterfaceWhitelists, availableFields, availableMethods, binarySearch, binarySearch, computeGenericTypeSignature, computeId, computeId, computeUniqueKey, depth, detectAnnotationCycle, enclosingTypeAt, enumConstantCount, fieldCount, fields, getAccessFlags, getAnnotations, getAnnotationTagBits, getEnclosingInstancesSlotSize, getExactConstructor, getExactMethod, getField, getField, getFileName, getMemberType, getMethods, getMethods, getOuterLocalVariablesSlotSize, getSingleAbstractMethod, getTypeVariable, hashCode, hasIncompatibleSuperType, hasMemberTypes, hasNullBit, hasRestrictedAccess, implementsInterface, innerCanBeSeenBy, innerCanBeSeenBy, isAbstract, isAnnotationType, isBinaryBinding, isClass, isConsistentIntersection, isDefault, isDeprecated, isEnum, isFinal, isFunctionalInterface, isHierarchyBeingActivelyConnected, isHierarchyBeingConnected, isHierarchyConnected, isInterface, isOrEnclosedByPrivateType, isPrivate, isProperType, isProtected, isPublic, isStatic, isStrictfp, isSubTypeOfRTL, isSuperclassOf, isThrowable, isUncheckedException, isUsed, isViewedAsDeprecated, memberTypes, methods, nullAnnotatedReadableName, outermostEnclosingType, readableName, retrieveAnnotationHolder, setAnnotations, setContainerAnnotationType, shortReadableName, signature, sortFields, sortMethods, syntheticEnclosingInstanceTypes, tagAsHavingDefectiveContainerType, unResolvedFieldsactualType, annotatedDebugName, capture, closestMatch, collectMissingTypes, collectSubstitutes, containerAnnotationType, dimensions, enclosingMethod, enclosingType, enterRecursiveFunction, equalsEquals, erasure, exitRecursiveFunction, findSuperTypeOriginatingFrom, findSuperTypeOriginatingFrom, genericCast, genericTypeSignature, getErasureCompatibleType, getTypeAnnotations, hasNullTypeAnnotations, hasTypeAnnotations, isAnonymousType, isArrayType, isBaseType, isBoundParameterizedType, isBoxingCompatibleWith, isCapture, isCompatibleWith, isEquivalentTo, isFreeTypeVariable, isFunctionalType, isGenericType, isHierarchyInconsistent, isIntersectionType, isLocalType, isMemberType, isNestedType, isNumericType, isParameterizedType, isParameterizedTypeWithActualArguments, isParameterizedWithOwnVariables, isPolyType, isPotentiallyCompatibleWith, isPrimitiveOrBoxedPrimitiveType, isPrimitiveType, isProvablyDistinct, isRawType, isReifiable, isRepeatableAnnotationType, isTypeArgumentContainedBy, isTypeVariable, isUnboundWildcard, isUnresolvedType, isWildcard, leafComponentType, needsUncheckedConversion, notEquals, original, prototype, qualifiedPackageName, setTypeAnnotations, signableName, sIsMoreSpecific, swapUnresolved, syntheticOuterLocalVariables, typeVariables, unannotated, uncapture, wellKnownType, withoutToplevelNullAnnotationcomputeUniqueKey, initializeDeprecatedAnnotationTagBits, isParameter, isTaggedRepeatable, isValidBinding, isVolatile, problemId, setAnnotationspublic ReferenceBinding[] intersectingTypes
public IntersectionTypeBinding18(ReferenceBinding[] intersectingTypes, LookupEnvironment environment)
public TypeBinding clone(TypeBinding enclosingType)
TypeBindingclone in class TypeBindingprotected MethodBinding[] getInterfaceAbstractContracts(Scope scope, boolean replaceWildcards) throws InvalidInputException
getInterfaceAbstractContracts in class ReferenceBindingInvalidInputExceptionpublic boolean hasTypeBit(int bit)
TypeBindingTypeIds.BitAutoCloseable.hasTypeBit in class TypeBindingpublic boolean canBeInstantiated()
ReferenceBindingcanBeInstantiated in class ReferenceBindingpublic boolean canBeSeenBy(PackageBinding invocationPackage)
ReferenceBindingcanBeSeenBy in class ReferenceBindingpublic boolean canBeSeenBy(Scope scope)
ReferenceBindingcanBeSeenBy in class ReferenceBindingpublic boolean canBeSeenBy(ReferenceBinding receiverType, ReferenceBinding invocationType)
ReferenceBindingcanBeSeenBy in class ReferenceBindingpublic char[] constantPoolName()
ReferenceBindingconstantPoolName in class ReferenceBindingpublic PackageBinding getPackage()
getPackage in class ReferenceBindingpublic ReferenceBinding[] getIntersectingTypes()
getIntersectingTypes in class TypeBindingpublic ReferenceBinding superclass()
superclass in class ReferenceBindingpublic ReferenceBinding[] superInterfaces()
superInterfaces in class ReferenceBindingpublic boolean isBoxedPrimitiveType()
isBoxedPrimitiveType in class TypeBindingpublic boolean isCompatibleWith(TypeBinding right, Scope scope)
ReferenceBindingisCompatibleWith in class ReferenceBindingpublic boolean isSubtypeOf(TypeBinding other)
isSubtypeOf in class ReferenceBindingpublic char[] qualifiedSourceName()
ReferenceBindingqualifiedSourceName in class ReferenceBindingpublic char[] sourceName()
sourceName in class ReferenceBindingpublic char[] readableName()
ReferenceBindingreadableName in class ReferenceBindingpublic char[] shortReadableName()
shortReadableName in class ReferenceBindingpublic boolean isIntersectionType18()
isIntersectionType18 in class TypeBindingpublic int kind()
kind in class TypeBindingpublic java.lang.String debugName()
debugName in class ReferenceBindingpublic java.lang.String toString()
toString in class java.lang.Objectpublic TypeBinding getSAMType(Scope scope)
public boolean mentionsAny(TypeBinding[] parameters, int idx)
TypeBindingmentionsAny in class TypeBindingpublic long updateTagBits()
TypeBindingupdateTagBits in class TypeBinding