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

java.lang.Object
  继承者 org.eclipse.jdt.internal.compiler.lookup.Binding
      继承者 org.eclipse.jdt.internal.compiler.lookup.TypeBinding
          继承者 org.eclipse.jdt.internal.compiler.lookup.ArrayBinding

public final class ArrayBinding
extends TypeBinding


字段摘要
static FieldBinding ArrayLength
           
 int dimensions
           
 TypeBinding leafComponentType
           
 
从类 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
 
构造方法摘要
ArrayBinding(TypeBinding type, int dimensions, LookupEnvironment environment)
           
 
方法摘要
 TypeBinding closestMatch()
          In case of problems, returns the closest match found.
 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)
           
 char[] constantPoolName()
          Answer the receiver's constant pool name.
 String debugName()
           
 int dimensions()
           
 TypeBinding elementsType()
           
 LookupEnvironment environment()
           
 TypeBinding erasure()
           
 char[] genericTypeSignature()
          Answer the receiver classfile signature.
 PackageBinding getPackage()
           
 int hashCode()
           
 boolean isCompatibleWith(TypeBinding otherType)
           
 int kind()
           
 TypeBinding leafComponentType()
           
 int problemId()
           
 char[] qualifiedSourceName()
          Answer the source name for the type.
 char[] readableName()
           
 char[] shortReadableName()
           
 char[] sourceName()
           
 void swapUnresolved(UnresolvedReferenceBinding unresolvedType, ReferenceBinding resolvedType, LookupEnvironment env)
           
 String toString()
           
 
从类 org.eclipse.jdt.internal.compiler.lookup.TypeBinding 继承的方法
canBeInstantiated, capture, enclosingType, findSuperTypeOriginatingFrom, findSuperTypeOriginatingFrom, genericCast, getErasureCompatibleType, isAnnotationType, isAnonymousType, isArrayType, isBaseType, isBoundParameterizedType, isCapture, isClass, isEnum, isEquivalentTo, isGenericType, isHierarchyInconsistent, isInterface, isIntersectionType, isLocalType, isMemberType, isNestedType, isNumericType, isParameterizedType, isParameterizedTypeWithActualArguments, isParameterizedWithOwnVariables, isProvablyDistinct, isRawType, isReifiable, isThrowable, isTypeArgumentContainedBy, isTypeVariable, isUnboundWildcard, isUncheckedException, isWildcard, needsUncheckedConversion, original, qualifiedPackageName, signature, typeVariables, wellKnownType
 
从类 org.eclipse.jdt.internal.compiler.lookup.Binding 继承的方法
computeUniqueKey, getAnnotationTagBits, initializeDeprecatedAnnotationTagBits, isParameter, isValidBinding, isVolatile
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

字段详细信息

ArrayLength

public static final FieldBinding ArrayLength

leafComponentType

public TypeBinding leafComponentType

dimensions

public int dimensions
构造方法详细信息

ArrayBinding

public ArrayBinding(TypeBinding type,
                    int dimensions,
                    LookupEnvironment environment)
方法详细信息

closestMatch

public TypeBinding closestMatch()
从类 TypeBinding 复制的描述
In case of problems, returns the closest match found. It may not be perfect match, but the result of a best effort to improve fault-tolerance.

覆盖:
TypeBinding 中的 closestMatch

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)
覆盖:
Binding 中的 computeUniqueKey

constantPoolName

public char[] constantPoolName()
Answer the receiver's constant pool name. NOTE: This method should only be used during/after code gen. e.g. '[Ljava/lang/Object;'

指定者:
TypeBinding 中的 constantPoolName

debugName

public String debugName()
覆盖:
TypeBinding 中的 debugName

dimensions

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

elementsType

public TypeBinding elementsType()

erasure

public TypeBinding erasure()
覆盖:
TypeBinding 中的 erasure
另请参见:
TypeBinding.erasure()

environment

public LookupEnvironment environment()

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

getPackage

public PackageBinding getPackage()
指定者:
TypeBinding 中的 getPackage

hashCode

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

isCompatibleWith

public boolean isCompatibleWith(TypeBinding otherType)
指定者:
TypeBinding 中的 isCompatibleWith

kind

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

leafComponentType

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

problemId

public int problemId()
覆盖:
Binding 中的 problemId

qualifiedSourceName

public char[] qualifiedSourceName()
Answer the source name for the type. In the case of member types, as the qualified name from its top level type. For example, for a member type N defined inside M & A: "A.M.N".

指定者:
TypeBinding 中的 qualifiedSourceName

readableName

public char[] readableName()
指定者:
Binding 中的 readableName

shortReadableName

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

sourceName

public char[] sourceName()
指定者:
TypeBinding 中的 sourceName

swapUnresolved

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

toString

public String toString()
覆盖:
Object 中的 toString


Copyright © 2013. All Rights Reserved.