|
||||||||||
| 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
|
ReferenceBinding |
genericType
|
TypeBinding[] |
otherBounds
|
int |
rank
|
| 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, UNINITIALIZED_REFERENCE_TYPES, VARIABLE, WILDCARD_TYPE |
| 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 |
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 |
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 |
| Methods inherited from class org.eclipse.jdt.internal.compiler.lookup.Binding |
|---|
computeUniqueKey, initializeDeprecatedAnnotationTagBits, isParameter, isValidBinding, isVolatile, problemId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public ReferenceBinding genericType
public int rank
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 TypeBindingpublic boolean boundCheck(TypeBinding argumentType)
public boolean canBeInstantiated()
ReferenceBinding
canBeInstantiated in class ReferenceBindingReferenceBinding.canBeInstantiated()public List collectMissingTypes(List missingTypes)
TypeBinding
collectMissingTypes 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)
ReferenceBinding
computeUniqueKey in class ReferenceBindingpublic char[] constantPoolName()
ReferenceBinding
constantPoolName in class ReferenceBindingTypeBinding.constantPoolName()public String debugName()
debugName in class ReferenceBindingTypeBinding.debugName()public TypeBinding erasure()
erasure in class TypeBindingpublic char[] genericTypeSignature()
TypeBinding
genericTypeSignature in class TypeBindingpublic int hashCode()
hashCode in class ReferenceBindingpublic boolean isSuperclassOf(ReferenceBinding otherType)
ReferenceBinding
isSuperclassOf in class ReferenceBindingReferenceBinding.isSuperclassOf(org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding)public boolean isIntersectionType()
isIntersectionType in class TypeBindingpublic boolean isHierarchyConnected()
ReferenceBinding
isHierarchyConnected in class ReferenceBindingpublic boolean isUnboundWildcard()
isUnboundWildcard in class TypeBindingpublic boolean isWildcard()
isWildcard in class TypeBindingpublic char[] readableName()
ReferenceBinding
readableName in class ReferenceBindingpublic char[] shortReadableName()
shortReadableName in class ReferenceBindingpublic char[] signature()
TypeBinding
signature in class ReferenceBindingTypeBinding.signature()public char[] sourceName()
sourceName in class ReferenceBindingpublic ReferenceBinding superclass()
superclass in class ReferenceBindingpublic ReferenceBinding[] superInterfaces()
superInterfaces in class ReferenceBinding
public void swapUnresolved(UnresolvedReferenceBinding unresolvedType,
ReferenceBinding resolvedType,
LookupEnvironment env)
swapUnresolved in class TypeBindingpublic String toString()
toString in class ObjectObject.toString()public TypeVariableBinding typeVariable()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||