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

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

public final class BaseTypeBinding
extends TypeBinding


字段摘要
static int[] CONVERSIONS
           
static int IDENTITY
           
static int MAX_CONVERSIONS
           
static int NARROWING
           
 char[] simpleName
           
static int WIDENING
           
 
从类 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
 
方法摘要
 char[] computeUniqueKey(boolean isLeaf)
          int -> I
 char[] constantPoolName()
          Answer the receiver's constant pool name.
 PackageBinding getPackage()
           
static int[] initializeConversions()
           
 boolean isCompatibleWith(TypeBinding left)
           
static boolean isNarrowing(int left, int right)
          Predicate telling whether "left" can store a "right" using some narrowing conversion (is left smaller than right)
 boolean isUncheckedException(boolean includeSupertype)
          T_null is acting as an unchecked exception
static boolean isWidening(int left, int right)
          Predicate telling whether "left" can store a "right" using some widening conversion (is left bigger than right)
 int kind()
           
 char[] qualifiedSourceName()
          Answer the source name for the type.
 char[] readableName()
           
 char[] shortReadableName()
           
 char[] sourceName()
           
 String toString()
           
 
从类 org.eclipse.jdt.internal.compiler.lookup.TypeBinding 继承的方法
canBeInstantiated, capture, closestMatch, collectMissingTypes, collectSubstitutes, debugName, dimensions, enclosingType, erasure, findSuperTypeOriginatingFrom, findSuperTypeOriginatingFrom, genericCast, genericTypeSignature, 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, isWildcard, leafComponentType, needsUncheckedConversion, original, qualifiedPackageName, signature, swapUnresolved, typeVariables, wellKnownType
 
从类 org.eclipse.jdt.internal.compiler.lookup.Binding 继承的方法
computeUniqueKey, getAnnotationTagBits, initializeDeprecatedAnnotationTagBits, isParameter, isValidBinding, isVolatile, problemId
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

字段详细信息

CONVERSIONS

public static final int[] CONVERSIONS

IDENTITY

public static final int IDENTITY
另请参见:
常量字段值

WIDENING

public static final int WIDENING
另请参见:
常量字段值

NARROWING

public static final int NARROWING
另请参见:
常量字段值

MAX_CONVERSIONS

public static final int MAX_CONVERSIONS
另请参见:
常量字段值

simpleName

public char[] simpleName
方法详细信息

initializeConversions

public static final int[] initializeConversions()

isNarrowing

public static final boolean isNarrowing(int left,
                                        int right)
Predicate telling whether "left" can store a "right" using some narrowing conversion (is left smaller than right)

参数:
left - - the target type to convert to
right - - the actual type
返回:
true if legal narrowing conversion

isWidening

public static final boolean isWidening(int left,
                                       int right)
Predicate telling whether "left" can store a "right" using some widening conversion (is left bigger than right)

参数:
left - - the target type to convert to
right - - the actual type
返回:
true if legal widening conversion

computeUniqueKey

public char[] computeUniqueKey(boolean isLeaf)
int -> I

覆盖:
Binding 中的 computeUniqueKey

constantPoolName

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

指定者:
TypeBinding 中的 constantPoolName

getPackage

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

isCompatibleWith

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

isUncheckedException

public boolean isUncheckedException(boolean includeSupertype)
T_null is acting as an unchecked exception

覆盖:
TypeBinding 中的 isUncheckedException
另请参见:
TypeBinding.isUncheckedException(boolean)

kind

public int kind()
覆盖:
TypeBinding 中的 kind
另请参见:
Binding.kind()

qualifiedSourceName

public char[] qualifiedSourceName()
从类 TypeBinding 复制的描述
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

toString

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


Copyright © 2013. All Rights Reserved.