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

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.BinaryTypeBinding
直接已知子类:
MissingTypeBinding

public class BinaryTypeBinding
extends ReferenceBinding


字段摘要
protected  ReferenceBinding enclosingType
           
protected  LookupEnvironment environment
           
protected  FieldBinding[] fields
           
protected  ReferenceBinding[] memberTypes
           
protected  MethodBinding[] methods
           
protected  SimpleLookupTable storedAnnotations
           
protected  ReferenceBinding superclass
           
protected  ReferenceBinding[] superInterfaces
           
protected  TypeVariableBinding[] typeVariables
           
 
从类 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
 
构造方法摘要
protected BinaryTypeBinding()
          Default empty constructor for subclasses only.
  BinaryTypeBinding(PackageBinding packageBinding, IBinaryType binaryType, LookupEnvironment environment)
          Standard constructor for creating binary type bindings from binary models (classfiles)
 
方法摘要
 FieldBinding[] availableFields()
          Return the array of resolvable fields (resilience)
 MethodBinding[] availableMethods()
          Return the array of resolvable methods (resilience)
static AnnotationBinding[] createAnnotations(IBinaryAnnotation[] annotationInfos, LookupEnvironment env, char[][][] missingTypeNames)
           
 ReferenceBinding enclosingType()
           
 FieldBinding[] fields()
           
 char[] genericTypeSignature()
          Answer the receiver classfile signature.
 MethodBinding getExactConstructor(TypeBinding[] argumentTypes)
           
 MethodBinding getExactMethod(char[] selector, TypeBinding[] argumentTypes, CompilationUnitScope refScope)
           
 FieldBinding getField(char[] fieldName, boolean needResolve)
           
 ReferenceBinding getMemberType(char[] typeName)
          Rewrite of default getMemberType to avoid resolving eagerly all member types when one is requested
 MethodBinding[] getMethods(char[] selector)
           
 MethodBinding[] getMethods(char[] selector, int suggestedParameterLength)
           
 TypeVariableBinding getTypeVariable(char[] variableName)
           
 boolean hasMemberTypes()
           
 boolean isEquivalentTo(TypeBinding otherType)
          Returns true if a type is identical to another one, or for generic types, true if compared to its raw type.
 boolean isGenericType()
           
 boolean isHierarchyConnected()
          Returns true if the type hierarchy is connected
 int kind()
           
 ReferenceBinding[] memberTypes()
           
 MethodBinding[] methods()
           
static TypeBinding resolveType(TypeBinding type, LookupEnvironment environment, boolean convertGenericToRawType)
           
 ReferenceBinding superclass()
           
 ReferenceBinding[] superInterfaces()
           
 String toString()
           
 TypeVariableBinding[] typeVariables()
           
 FieldBinding[] unResolvedFields()
           
 
从类 org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding 继承的方法
binarySearch, binarySearch, canBeInstantiated, canBeSeenBy, canBeSeenBy, canBeSeenBy, computeGenericTypeSignature, computeId, computeUniqueKey, constantPoolName, debugName, depth, detectAnnotationCycle, enclosingTypeAt, enumConstantCount, fieldCount, getAccessFlags, getAnnotations, getAnnotationTagBits, getEnclosingInstancesSlotSize, getFileName, getOuterLocalVariablesSlotSize, getPackage, hashCode, hasIncompatibleSuperType, hasRestrictedAccess, implementsInterface, isAbstract, isAnnotationType, isBinaryBinding, isClass, isCompatibleWith, isDefault, isDeprecated, isEnum, isFinal, isHierarchyBeingActivelyConnected, isHierarchyBeingConnected, isInterface, isOrEnclosedByPrivateType, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSuperclassOf, isThrowable, isUncheckedException, isUsed, isViewedAsDeprecated, outermostEnclosingType, qualifiedSourceName, readableName, retrieveAnnotationHolder, setAnnotations, shortReadableName, signature, sortFields, sortMethods, sourceName, syntheticEnclosingInstanceTypes, syntheticOuterLocalVariables
 
从类 org.eclipse.jdt.internal.compiler.lookup.TypeBinding 继承的方法
capture, closestMatch, collectMissingTypes, collectSubstitutes, dimensions, erasure, findSuperTypeOriginatingFrom, findSuperTypeOriginatingFrom, genericCast, getErasureCompatibleType, isAnonymousType, isArrayType, isBaseType, isBoundParameterizedType, isCapture, isHierarchyInconsistent, isIntersectionType, isLocalType, isMemberType, isNestedType, isNumericType, isParameterizedType, isParameterizedTypeWithActualArguments, isParameterizedWithOwnVariables, isProvablyDistinct, isRawType, isReifiable, isTypeArgumentContainedBy, isTypeVariable, isUnboundWildcard, isWildcard, leafComponentType, needsUncheckedConversion, original, qualifiedPackageName, swapUnresolved, 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
 

字段详细信息

superclass

protected ReferenceBinding superclass

enclosingType

protected ReferenceBinding enclosingType

superInterfaces

protected ReferenceBinding[] superInterfaces

fields

protected FieldBinding[] fields

methods

protected MethodBinding[] methods

memberTypes

protected ReferenceBinding[] memberTypes

typeVariables

protected TypeVariableBinding[] typeVariables

environment

protected LookupEnvironment environment

storedAnnotations

protected SimpleLookupTable storedAnnotations
构造方法详细信息

BinaryTypeBinding

protected BinaryTypeBinding()
Default empty constructor for subclasses only.


BinaryTypeBinding

public BinaryTypeBinding(PackageBinding packageBinding,
                         IBinaryType binaryType,
                         LookupEnvironment environment)
Standard constructor for creating binary type bindings from binary models (classfiles)

参数:
packageBinding -
binaryType -
environment -
方法详细信息

createAnnotations

public static AnnotationBinding[] createAnnotations(IBinaryAnnotation[] annotationInfos,
                                                    LookupEnvironment env,
                                                    char[][][] missingTypeNames)

resolveType

public static TypeBinding resolveType(TypeBinding type,
                                      LookupEnvironment environment,
                                      boolean convertGenericToRawType)

availableFields

public FieldBinding[] availableFields()
从类 ReferenceBinding 复制的描述
Return the array of resolvable fields (resilience)

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

availableMethods

public MethodBinding[] availableMethods()
从类 ReferenceBinding 复制的描述
Return the array of resolvable methods (resilience)

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

enclosingType

public ReferenceBinding enclosingType()
覆盖:
TypeBinding 中的 enclosingType

fields

public FieldBinding[] fields()
覆盖:
ReferenceBinding 中的 fields

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
另请参见:
TypeBinding.genericTypeSignature()

getExactConstructor

public MethodBinding getExactConstructor(TypeBinding[] argumentTypes)
覆盖:
ReferenceBinding 中的 getExactConstructor

getExactMethod

public MethodBinding getExactMethod(char[] selector,
                                    TypeBinding[] argumentTypes,
                                    CompilationUnitScope refScope)
覆盖:
ReferenceBinding 中的 getExactMethod

getField

public FieldBinding getField(char[] fieldName,
                             boolean needResolve)
覆盖:
ReferenceBinding 中的 getField

getMemberType

public ReferenceBinding getMemberType(char[] typeName)
Rewrite of default getMemberType to avoid resolving eagerly all member types when one is requested

覆盖:
ReferenceBinding 中的 getMemberType

getMethods

public MethodBinding[] getMethods(char[] selector)
覆盖:
ReferenceBinding 中的 getMethods

getMethods

public MethodBinding[] getMethods(char[] selector,
                                  int suggestedParameterLength)
覆盖:
ReferenceBinding 中的 getMethods

hasMemberTypes

public boolean hasMemberTypes()
覆盖:
ReferenceBinding 中的 hasMemberTypes

getTypeVariable

public TypeVariableBinding getTypeVariable(char[] variableName)
覆盖:
ReferenceBinding 中的 getTypeVariable

isEquivalentTo

public boolean isEquivalentTo(TypeBinding otherType)
Returns true if a type is identical to another one, or for generic types, true if compared to its raw type.

覆盖:
TypeBinding 中的 isEquivalentTo

isGenericType

public boolean isGenericType()
覆盖:
TypeBinding 中的 isGenericType

isHierarchyConnected

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

覆盖:
ReferenceBinding 中的 isHierarchyConnected

kind

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

memberTypes

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

methods

public MethodBinding[] methods()
覆盖:
ReferenceBinding 中的 methods

superclass

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

superInterfaces

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

typeVariables

public TypeVariableBinding[] typeVariables()
覆盖:
TypeBinding 中的 typeVariables

toString

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

unResolvedFields

public FieldBinding[] unResolvedFields()
覆盖:
ReferenceBinding 中的 unResolvedFields


Copyright © 2013. All Rights Reserved.