public class BaseTypeBinding extends TypeBinding
| Modifier and Type | Field and Description |
|---|---|
static int[] |
CONVERSIONS |
static int |
IDENTITY |
static int |
MAX_CONVERSIONS |
static int |
NARROWING |
char[] |
simpleName |
static int |
WIDENING |
BOOLEAN, BYTE, CHAR, DOUBLE, FLOAT, id, INT, LONG, NULL, SHORT, tagBits, TYPE_USE_BINDING, typeAnnotations, VOIDANY_EXCEPTION, ARRAY_TYPE, BASE_TYPE, DefaultLocationArrayContents, DefaultLocationField, DefaultLocationParameter, DefaultLocationReturnType, DefaultLocationTypeArgument, DefaultLocationTypeBound, DefaultLocationTypeParameter, FIELD, GENERIC_TYPE, IMPORT, INTERSECTION_TYPE, INTERSECTION_TYPE18, LOCAL, METHOD, NO_ANNOTATIONS, NO_ELEMENT_VALUE_PAIRS, NO_EXCEPTIONS, NO_FIELDS, NO_MEMBER_TYPES, NO_METHODS, NO_NULL_DEFAULT, NO_PARAMETER_NAMES, NO_PARAMETERS, NO_REFERENCE_TYPES, NO_SUPERINTERFACES, NO_TYPE_VARIABLES, NO_TYPES, NONNULL_BY_DEFAULT, NULL_UNSPECIFIED_BY_DEFAULT, NullnessDefaultMASK, PACKAGE, PARAMETERIZED_TYPE, POLY_TYPE, RAW_TYPE, TYPE, TYPE_PARAMETER, TYPE_USE, UNINITIALIZED_FIELDS, UNINITIALIZED_METHODS, UNINITIALIZED_REFERENCE_TYPES, VARIABLE, WILDCARD_TYPE| Modifier and Type | Method and Description |
|---|---|
TypeBinding |
clone(TypeBinding enclosingType)
Virtual copy constructor: a copy is made of the receiver's entire instance state and then suitably
parameterized by the arguments to the clone operation as seen fit by each type.
|
char[] |
computeUniqueKey(boolean isLeaf)
int -> I
|
char[] |
constantPoolName()
Answer the receiver's constant pool name.
|
PackageBinding |
getPackage() |
static int[] |
initializeConversions() |
boolean |
isCompatibleWith(TypeBinding right,
Scope captureScope) |
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() |
void |
setTypeAnnotations(AnnotationBinding[] annotations,
boolean evalNullAnnotations) |
char[] |
shortReadableName() |
char[] |
sourceName() |
java.lang.String |
toString() |
TypeBinding |
unannotated()
Return this type minus its type annotations
|
acceptsNonNullDefault, actualType, annotatedDebugName, canBeInstantiated, canBeSeenBy, capture, closestMatch, collectMissingTypes, collectSubstitutes, containerAnnotationType, debugName, depth, dimensions, enclosingMethod, enclosingType, enterRecursiveFunction, equalsEquals, erasure, exitRecursiveFunction, findSuperTypeOriginatingFrom, findSuperTypeOriginatingFrom, genericCast, genericTypeSignature, getErasureCompatibleType, getIntersectingTypes, getMethods, getSingleAbstractMethod, getTypeAnnotations, hasNullTypeAnnotations, hasTypeAnnotations, hasTypeBit, isAnonymousType, isArrayType, isBaseType, isBoundParameterizedType, isBoxedPrimitiveType, isBoxingCompatibleWith, isCapture, isClass, isCompatibleWith, isEnum, isEquivalentTo, isFreeTypeVariable, isFunctionalInterface, isFunctionalType, isGenericType, isHierarchyInconsistent, isInterface, isIntersectionType, isIntersectionType18, isLocalType, isMemberType, isNestedType, isNumericType, isParameterizedType, isParameterizedTypeWithActualArguments, isParameterizedWithOwnVariables, isPolyType, isPotentiallyCompatibleWith, isPrimitiveOrBoxedPrimitiveType, isPrimitiveType, isProperType, isProvablyDistinct, isRawType, isReifiable, isRepeatableAnnotationType, isStatic, isSubtypeOf, isThrowable, isTypeArgumentContainedBy, isTypeVariable, isUnboundWildcard, isUnresolvedType, isWildcard, leafComponentType, mentionsAny, needsUncheckedConversion, notEquals, nullAnnotatedReadableName, original, prototype, qualifiedPackageName, signableName, signature, sIsMoreSpecific, superclass, superInterfaces, swapUnresolved, syntheticOuterLocalVariables, typeVariables, uncapture, updateTagBits, wellKnownType, withoutToplevelNullAnnotationcomputeUniqueKey, getAnnotations, getAnnotationTagBits, initializeDeprecatedAnnotationTagBits, isAnnotationType, isParameter, isTaggedRepeatable, isValidBinding, isVolatile, problemId, setAnnotations, setAnnotationspublic static final int[] CONVERSIONS
public static final int IDENTITY
public static final int WIDENING
public static final int NARROWING
public static final int MAX_CONVERSIONS
public char[] simpleName
public static final int[] initializeConversions()
public static final boolean isNarrowing(int left,
int right)
left - - the target type to convert toright - - the actual typepublic static final boolean isWidening(int left,
int right)
left - - the target type to convert toright - - the actual typepublic char[] computeUniqueKey(boolean isLeaf)
computeUniqueKey in class Bindingpublic char[] constantPoolName()
TypeBindingconstantPoolName in class TypeBindingpublic TypeBinding clone(TypeBinding enclosingType)
TypeBindingclone in class TypeBindingpublic PackageBinding getPackage()
getPackage in class TypeBindingpublic final boolean isCompatibleWith(TypeBinding right, Scope captureScope)
isCompatibleWith in class TypeBindingpublic void setTypeAnnotations(AnnotationBinding[] annotations, boolean evalNullAnnotations)
setTypeAnnotations in class TypeBindingpublic TypeBinding unannotated()
TypeBindingunannotated in class TypeBindingpublic boolean isUncheckedException(boolean includeSupertype)
isUncheckedException in class TypeBindingTypeBinding.isUncheckedException(boolean)public int kind()
kind in class TypeBindingBinding.kind()public char[] qualifiedSourceName()
TypeBindingqualifiedSourceName in class TypeBindingpublic char[] readableName()
readableName in class Bindingpublic char[] shortReadableName()
shortReadableName in class Bindingpublic char[] sourceName()
sourceName in class TypeBindingpublic java.lang.String toString()
toString in class java.lang.Object