public class WildcardBinding extends ReferenceBinding
| Modifier and Type | Field and Description |
|---|---|
TypeBinding |
bound |
int |
boundKind |
ReferenceBinding |
genericType |
TypeBinding[] |
otherBounds |
int |
rank |
compoundName, fPackage, LUB_GENERIC, modifiers, sourceNameBOOLEAN, BYTE, CHAR, DOUBLE, FLOAT, id, INT, LONG, NULL, SHORT, tagBits, VOIDANY_EXCEPTION, ARRAY_TYPE, BASE_TYPE, FIELD, GENERIC_TYPE, IMPORT, INTERSECTION_TYPE, LOCAL, METHOD, NO_ANNOTATIONS, NO_ELEMENT_VALUE_PAIRS, NO_EXCEPTIONS, NO_FIELDS, NO_MEMBER_TYPES, NO_METHODS, NO_NULL_DEFAULT, NO_PARAMETERS, NO_SUPERINTERFACES, NO_TYPE_VARIABLES, NO_TYPES, NONNULL_BY_DEFAULT, NULL_UNSPECIFIED_BY_DEFAULT, PACKAGE, PARAMETERIZED_TYPE, RAW_TYPE, TYPE, TYPE_PARAMETER, UNINITIALIZED_FIELDS, UNINITIALIZED_METHODS, UNINITIALIZED_REFERENCE_TYPES, VARIABLE, WILDCARD_TYPE| Constructor and Description |
|---|
WildcardBinding(ReferenceBinding genericType,
int rank,
TypeBinding bound,
TypeBinding[] otherBounds,
int boundKind,
LookupEnvironment environment)
When unbound, the bound denotes the corresponding type variable (so as to retrieve its bound lazily)
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
boundCheck(TypeBinding argumentType)
Returns true if the argument type satisfies the wildcard bound(s)
|
boolean |
canBeInstantiated()
Answer true if the receiver can be instantiated
|
List |
collectMissingTypes(List missingTypes)
Iterate through the type components to collect instances of leaf missing types
|
void |
collectSubstitutes(Scope scope,
TypeBinding actualType,
InferenceContext inferenceContext,
int constraint)
Collect the substitutes into a map for certain type variables inside the receiver type
e.g.
|
char[] |
computeUniqueKey(boolean isLeaf)
p.X
|
char[] |
constantPoolName()
Answer the receiver's constant pool name.
|
String |
debugName() |
TypeBinding |
erasure() |
char[] |
genericTypeSignature()
Answer the receiver classfile signature.
|
int |
hashCode() |
boolean |
hasTypeBit(int bit)
Answer an additional bit characterizing this type, like
TypeIds.BitAutoCloseable. |
boolean |
isHierarchyConnected()
Returns true if the type hierarchy is connected
|
boolean |
isIntersectionType()
Returns true if the current type denotes an intersection type: Number & Comparable>
|
boolean |
isSuperclassOf(ReferenceBinding otherType)
Answer true if the receiver is in the superclass hierarchy of aType
NOTE: Object.isSuperclassOf(Object) -> false
|
boolean |
isUnboundWildcard()
Returns true if the type is a wildcard
|
boolean |
isWildcard()
Returns true if the type is a wildcard
|
int |
kind() |
char[] |
readableName()
Answer the receiver's signature.
|
char[] |
shortReadableName() |
char[] |
signature()
Answer the receiver classfile signature.
|
char[] |
sourceName() |
ReferenceBinding |
superclass() |
ReferenceBinding[] |
superInterfaces() |
void |
swapUnresolved(UnresolvedReferenceBinding unresolvedType,
ReferenceBinding resolvedType,
LookupEnvironment env) |
String |
toString() |
TypeVariableBinding |
typeVariable()
Returns associated type variable, or null in case of inconsistency
|
applyCloseableWhitelists, availableFields, availableMethods, binarySearch, binarySearch, canBeSeenBy, canBeSeenBy, canBeSeenBy, computeGenericTypeSignature, computeId, depth, detectAnnotationCycle, enclosingTypeAt, enumConstantCount, fieldCount, fields, getAccessFlags, getAnnotations, getAnnotationTagBits, getEnclosingInstancesSlotSize, getExactConstructor, getExactMethod, getField, getFileName, getMemberType, getMethods, getMethods, getOuterLocalVariablesSlotSize, getPackage, getTypeVariable, hasIncompatibleSuperType, hasMemberTypes, hasRestrictedAccess, implementsInterface, isAbstract, isAnnotationType, isBinaryBinding, isClass, isCompatibleWith, isDefault, isDeprecated, isEnum, isFinal, isHierarchyBeingActivelyConnected, isHierarchyBeingConnected, isInterface, isOrEnclosedByPrivateType, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isThrowable, isUncheckedException, isUsed, isViewedAsDeprecated, memberTypes, methods, outermostEnclosingType, qualifiedSourceName, retrieveAnnotationHolder, setAnnotations, sortFields, sortMethods, syntheticEnclosingInstanceTypes, syntheticOuterLocalVariables, unResolvedFieldscapture, closestMatch, dimensions, enclosingType, findSuperTypeOriginatingFrom, findSuperTypeOriginatingFrom, genericCast, getErasureCompatibleType, isAnonymousType, isArrayType, isBaseType, isBoundParameterizedType, isCapture, isCompatibleWith, isEquivalentTo, isGenericType, isHierarchyInconsistent, isLocalType, isMemberType, isNestedType, isNumericType, isParameterizedType, isParameterizedTypeWithActualArguments, isParameterizedWithOwnVariables, isProvablyDistinct, isRawType, isReifiable, isTypeArgumentContainedBy, isTypeVariable, leafComponentType, needsUncheckedConversion, original, qualifiedPackageName, typeVariables, wellKnownTypecomputeUniqueKey, initializeDeprecatedAnnotationTagBits, isParameter, isValidBinding, isVolatile, problemIdpublic ReferenceBinding genericType
public int rank
public TypeBinding bound
public TypeBinding[] otherBounds
public int boundKind
public WildcardBinding(ReferenceBinding genericType, int rank, TypeBinding bound, TypeBinding[] otherBounds, int boundKind, LookupEnvironment environment)
public int kind()
kind in class TypeBindingpublic boolean boundCheck(TypeBinding argumentType)
public boolean canBeInstantiated()
ReferenceBindingcanBeInstantiated in class ReferenceBindingReferenceBinding.canBeInstantiated()public List collectMissingTypes(List missingTypes)
TypeBindingcollectMissingTypes in class TypeBindingTypeBinding.collectMissingTypes(java.util.List)public void collectSubstitutes(Scope scope, TypeBinding actualType, InferenceContext inferenceContext, int constraint)
collectSubstitutes in class TypeBindingpublic char[] computeUniqueKey(boolean isLeaf)
ReferenceBindingcomputeUniqueKey in class ReferenceBindingpublic char[] constantPoolName()
ReferenceBindingconstantPoolName in class ReferenceBindingTypeBinding.constantPoolName()public String debugName()
debugName in class ReferenceBindingTypeBinding.debugName()public TypeBinding erasure()
erasure in class TypeBindingpublic char[] genericTypeSignature()
TypeBindinggenericTypeSignature in class TypeBindingpublic int hashCode()
hashCode in class ReferenceBindingpublic boolean hasTypeBit(int bit)
ReferenceBindingTypeIds.BitAutoCloseable.hasTypeBit in class ReferenceBindingpublic boolean isSuperclassOf(ReferenceBinding otherType)
ReferenceBindingisSuperclassOf in class ReferenceBindingReferenceBinding.isSuperclassOf(org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding)public boolean isIntersectionType()
isIntersectionType in class TypeBindingpublic boolean isHierarchyConnected()
ReferenceBindingisHierarchyConnected in class ReferenceBindingpublic boolean isUnboundWildcard()
isUnboundWildcard in class TypeBindingpublic boolean isWildcard()
isWildcard in class TypeBindingpublic char[] readableName()
ReferenceBindingreadableName in class ReferenceBindingpublic char[] shortReadableName()
shortReadableName in class ReferenceBindingpublic char[] signature()
TypeBindingsignature in class ReferenceBindingTypeBinding.signature()public char[] sourceName()
sourceName in class ReferenceBindingpublic ReferenceBinding superclass()
superclass in class ReferenceBindingpublic ReferenceBinding[] superInterfaces()
superInterfaces in class ReferenceBindingpublic void swapUnresolved(UnresolvedReferenceBinding unresolvedType, ReferenceBinding resolvedType, LookupEnvironment env)
swapUnresolved in class TypeBindingpublic String toString()
toString in class ObjectObject.toString()public TypeVariableBinding typeVariable()
Copyright © 2013. All rights reserved.