|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jdt.internal.compiler.lookup.Binding
org.eclipse.jdt.internal.compiler.lookup.TypeBinding
org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding
org.eclipse.jdt.internal.compiler.lookup.WildcardBinding
public class WildcardBinding
Field Summary | |
---|---|
TypeBinding |
bound
|
int |
boundKind
|
TypeBinding[] |
otherBounds
|
Fields inherited from class org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding |
---|
compoundName, fPackage, LUB_GENERIC, modifiers, sourceName |
Fields inherited from class org.eclipse.jdt.internal.compiler.lookup.TypeBinding |
---|
BOOLEAN, BYTE, CHAR, DOUBLE, FLOAT, id, INT, LONG, NULL, SHORT, tagBits, VOID |
Fields inherited from class org.eclipse.jdt.internal.compiler.lookup.Binding |
---|
ANY_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_PARAMETERS, NO_SUPERINTERFACES, NO_TYPE_VARIABLES, NO_TYPES, PACKAGE, PARAMETERIZED_TYPE, RAW_TYPE, TYPE, TYPE_PARAMETER, UNINITIALIZED_FIELDS, UNINITIALIZED_METHODS, VARIABLE, WILDCARD_TYPE |
Fields inherited from interface org.eclipse.jdt.internal.compiler.env.IDependent |
---|
JAR_FILE_ENTRY_SEPARATOR |
Constructor Summary | |
---|---|
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) |
Method Summary | |
---|---|
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 |
java.util.List |
collectMissingTypes(java.util.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. |
java.lang.String |
debugName()
|
TypeBinding |
erasure()
|
char[] |
genericTypeSignature()
Answer the receiver classfile signature. |
int |
hashCode()
|
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)
|
java.lang.String |
toString()
|
TypeVariableBinding |
typeVariable()
Returns associated type variable, or null in case of inconsistency |
Methods inherited from class org.eclipse.jdt.internal.compiler.lookup.TypeBinding |
---|
capture, closestMatch, dimensions, enclosingType, findSuperTypeOriginatingFrom, findSuperTypeOriginatingFrom, genericCast, isAnonymousType, isArrayType, isBaseType, isBoundParameterizedType, isCapture, isEquivalentTo, isGenericType, isHierarchyInconsistent, isLocalType, isMemberType, isNestedType, isNumericType, isParameterizedType, isParameterizedWithOwnVariables, isProvablyDistinct, isRawType, isReifiable, isTypeArgumentContainedBy, isTypeVariable, leafComponentType, needsUncheckedConversion, original, qualifiedPackageName, typeVariables, wellKnownType |
Methods inherited from class org.eclipse.jdt.internal.compiler.lookup.Binding |
---|
computeUniqueKey, initializeDeprecatedAnnotationTagBits, isValidBinding, problemId |
Methods inherited from class java.lang.Object |
---|
equals, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public TypeBinding bound
public TypeBinding[] otherBounds
public int boundKind
Constructor Detail |
---|
public WildcardBinding(ReferenceBinding genericType, int rank, TypeBinding bound, TypeBinding[] otherBounds, int boundKind, LookupEnvironment environment)
Method Detail |
---|
public int kind()
kind
in class TypeBinding
public boolean boundCheck(TypeBinding argumentType)
public boolean canBeInstantiated()
ReferenceBinding
canBeInstantiated
in class ReferenceBinding
ReferenceBinding.canBeInstantiated()
public java.util.List collectMissingTypes(java.util.List missingTypes)
TypeBinding
collectMissingTypes
in class TypeBinding
TypeBinding.collectMissingTypes(java.util.List)
public void collectSubstitutes(Scope scope, TypeBinding actualType, InferenceContext inferenceContext, int constraint)
collectSubstitutes
in class TypeBinding
public char[] computeUniqueKey(boolean isLeaf)
ReferenceBinding
computeUniqueKey
in class ReferenceBinding
public char[] constantPoolName()
ReferenceBinding
constantPoolName
in class ReferenceBinding
TypeBinding.constantPoolName()
public java.lang.String debugName()
debugName
in class ReferenceBinding
TypeBinding.debugName()
public TypeBinding erasure()
erasure
in class TypeBinding
public char[] genericTypeSignature()
TypeBinding
genericTypeSignature
in class TypeBinding
public int hashCode()
hashCode
in class ReferenceBinding
public boolean isSuperclassOf(ReferenceBinding otherType)
ReferenceBinding
isSuperclassOf
in class ReferenceBinding
ReferenceBinding.isSuperclassOf(org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding)
public boolean isIntersectionType()
isIntersectionType
in class TypeBinding
public boolean isUnboundWildcard()
isUnboundWildcard
in class TypeBinding
public boolean isWildcard()
isWildcard
in class TypeBinding
public char[] readableName()
ReferenceBinding
readableName
in class ReferenceBinding
public char[] shortReadableName()
shortReadableName
in class ReferenceBinding
public char[] signature()
TypeBinding
signature
in class ReferenceBinding
TypeBinding.signature()
public char[] sourceName()
sourceName
in class ReferenceBinding
public ReferenceBinding superclass()
superclass
in class ReferenceBinding
public ReferenceBinding[] superInterfaces()
superInterfaces
in class ReferenceBinding
public void swapUnresolved(UnresolvedReferenceBinding unresolvedType, ReferenceBinding resolvedType, LookupEnvironment env)
swapUnresolved
in class TypeBinding
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public TypeVariableBinding typeVariable()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |