org.eclipse.jdt.internal.compiler.lookup
类 WildcardBinding

java.lang.Object
  继承者 org.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
extends ReferenceBinding


字段摘要
 TypeBinding bound
           
 int boundKind
           
 ReferenceBinding genericType
           
 TypeBinding[] otherBounds
           
 int rank
           
 
从类 org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding 继承的字段
compoundName, fPackage, LUB_GENERIC, modifiers, sourceName
 
从类 org.eclipse.jdt.internal.compiler.lookup.TypeBinding 继承的字段
BOOLEAN, BYTE, CHAR, DOUBLE, FLOAT, id, INT, LONG, NULL, SHORT, tagBits, VOID
 
从类 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
 
构造方法摘要
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)
 
方法摘要
 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 {} -> Lp/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
 
从类 org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding 继承的方法
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, unResolvedFields
 
从类 org.eclipse.jdt.internal.compiler.lookup.TypeBinding 继承的方法
capture, closestMatch, dimensions, enclosingType, findSuperTypeOriginatingFrom, findSuperTypeOriginatingFrom, genericCast, getErasureCompatibleType, isAnonymousType, isArrayType, isBaseType, isBoundParameterizedType, isCapture, isEquivalentTo, isGenericType, isHierarchyInconsistent, isLocalType, isMemberType, isNestedType, isNumericType, isParameterizedType, isParameterizedTypeWithActualArguments, isParameterizedWithOwnVariables, isProvablyDistinct, isRawType, isReifiable, isTypeArgumentContainedBy, isTypeVariable, leafComponentType, needsUncheckedConversion, original, qualifiedPackageName, typeVariables, wellKnownType
 
从类 org.eclipse.jdt.internal.compiler.lookup.Binding 继承的方法
computeUniqueKey, initializeDeprecatedAnnotationTagBits, isParameter, isValidBinding, isVolatile, problemId
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

字段详细信息

genericType

public ReferenceBinding genericType

rank

public int rank

bound

public TypeBinding bound

otherBounds

public TypeBinding[] otherBounds

boundKind

public int boundKind
构造方法详细信息

WildcardBinding

public 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)

方法详细信息

kind

public int kind()
覆盖:
TypeBinding 中的 kind

boundCheck

public boolean boundCheck(TypeBinding argumentType)
Returns true if the argument type satisfies the wildcard bound(s)


canBeInstantiated

public boolean canBeInstantiated()
从类 ReferenceBinding 复制的描述
Answer true if the receiver can be instantiated

覆盖:
ReferenceBinding 中的 canBeInstantiated
另请参见:
ReferenceBinding.canBeInstantiated()

collectMissingTypes

public List collectMissingTypes(List missingTypes)
从类 TypeBinding 复制的描述
Iterate through the type components to collect instances of leaf missing types

覆盖:
TypeBinding 中的 collectMissingTypes
返回:
missing types
另请参见:
TypeBinding.collectMissingTypes(java.util.List)

collectSubstitutes

public 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. Collection.collectSubstitutes(Collection>, Map), will populate Map with: T --> List Constraints: A << F corresponds to: F.collectSubstitutes(..., A, ..., CONSTRAINT_EXTENDS (1)) A = F corresponds to: F.collectSubstitutes(..., A, ..., CONSTRAINT_EQUAL (0)) A >> F corresponds to: F.collectSubstitutes(..., A, ..., CONSTRAINT_SUPER (2))

覆盖:
TypeBinding 中的 collectSubstitutes

computeUniqueKey

public char[] computeUniqueKey(boolean isLeaf)
从类 ReferenceBinding 复制的描述
p.X {} -> Lp/X;

覆盖:
ReferenceBinding 中的 computeUniqueKey

constantPoolName

public char[] constantPoolName()
从类 ReferenceBinding 复制的描述
Answer the receiver's constant pool name. NOTE: This method should only be used during/after code gen.

覆盖:
ReferenceBinding 中的 constantPoolName
另请参见:
TypeBinding.constantPoolName()

debugName

public String debugName()
覆盖:
ReferenceBinding 中的 debugName
另请参见:
TypeBinding.debugName()

erasure

public TypeBinding erasure()
覆盖:
TypeBinding 中的 erasure

genericTypeSignature

public char[] genericTypeSignature()
从类 TypeBinding 复制的描述
Answer the receiver classfile signature. Arrays & base types do not distinguish between signature() & constantPoolName(). NOTE: This method should only be used during/after code gen.

覆盖:
TypeBinding 中的 genericTypeSignature

hashCode

public int hashCode()
覆盖:
ReferenceBinding 中的 hashCode

isSuperclassOf

public boolean isSuperclassOf(ReferenceBinding otherType)
从类 ReferenceBinding 复制的描述
Answer true if the receiver is in the superclass hierarchy of aType NOTE: Object.isSuperclassOf(Object) -> false

覆盖:
ReferenceBinding 中的 isSuperclassOf
另请参见:
ReferenceBinding.isSuperclassOf(org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding)

isIntersectionType

public boolean isIntersectionType()
Returns true if the current type denotes an intersection type: Number & Comparable

覆盖:
TypeBinding 中的 isIntersectionType

isHierarchyConnected

public boolean isHierarchyConnected()
从类 ReferenceBinding 复制的描述
Returns true if the type hierarchy is connected

覆盖:
ReferenceBinding 中的 isHierarchyConnected

isUnboundWildcard

public boolean isUnboundWildcard()
Returns true if the type is a wildcard

覆盖:
TypeBinding 中的 isUnboundWildcard

isWildcard

public boolean isWildcard()
Returns true if the type is a wildcard

覆盖:
TypeBinding 中的 isWildcard

readableName

public char[] readableName()
从类 ReferenceBinding 复制的描述
Answer the receiver's signature. NOTE: This method should only be used during/after code gen.

覆盖:
ReferenceBinding 中的 readableName

shortReadableName

public char[] shortReadableName()
覆盖:
ReferenceBinding 中的 shortReadableName

signature

public char[] signature()
从类 TypeBinding 复制的描述
Answer the receiver classfile signature. Arrays & base types do not distinguish between signature() & constantPoolName(). NOTE: This method should only be used during/after code gen.

覆盖:
ReferenceBinding 中的 signature
另请参见:
TypeBinding.signature()

sourceName

public char[] sourceName()
覆盖:
ReferenceBinding 中的 sourceName

superclass

public ReferenceBinding superclass()
覆盖:
ReferenceBinding 中的 superclass

superInterfaces

public ReferenceBinding[] superInterfaces()
覆盖:
ReferenceBinding 中的 superInterfaces

swapUnresolved

public void swapUnresolved(UnresolvedReferenceBinding unresolvedType,
                           ReferenceBinding resolvedType,
                           LookupEnvironment env)
覆盖:
TypeBinding 中的 swapUnresolved

toString

public String toString()
覆盖:
Object 中的 toString
另请参见:
Object.toString()

typeVariable

public TypeVariableBinding typeVariable()
Returns associated type variable, or null in case of inconsistency



Copyright © 2013. All Rights Reserved.