public class BinaryTypeBinding extends ReferenceBinding
| Modifier and Type | Field and Description |
|---|---|
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 |
compoundName, fPackage, LUB_GENERIC, modifiers, samProblemBinding, singleAbstractMethod, sourceNameBOOLEAN, 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_CAST_TYPE, INTERSECTION_TYPE, 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 | Constructor and Description |
|---|---|
protected |
BinaryTypeBinding()
Default empty constructor for subclasses only.
|
|
BinaryTypeBinding(BinaryTypeBinding prototype) |
|
BinaryTypeBinding(PackageBinding packageBinding,
IBinaryType binaryType,
LookupEnvironment environment)
Standard constructor for creating binary type bindings from binary models (classfiles)
|
|
BinaryTypeBinding(PackageBinding packageBinding,
IBinaryType binaryType,
LookupEnvironment environment,
boolean needFieldsAndMethods)
Standard constructor for creating binary type bindings from binary models (classfiles)
|
| Modifier and Type | Method and Description |
|---|---|
FieldBinding[] |
availableFields()
Return the array of resolvable fields (resilience)
|
MethodBinding[] |
availableMethods()
Return the array of resolvable methods (resilience)
|
TypeBinding |
clone(TypeBinding outerType)
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.
|
ReferenceBinding |
containerAnnotationType() |
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 memberTypes() 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 |
hasTypeBit(int bit)
Answer an additional bit characterizing this type, like
TypeIds.BitAutoCloseable. |
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
|
boolean |
isRepeatableAnnotationType()
Answer true if the receiver is an annotation which may be repeatable.
|
int |
kind() |
ReferenceBinding[] |
memberTypes() |
MethodBinding[] |
methods() |
TypeBinding |
prototype()
Return the primordial type from which the receiver was cloned.
|
static TypeBinding |
resolveType(TypeBinding type,
LookupEnvironment environment,
boolean convertGenericToRawType) |
void |
setContainerAnnotationType(ReferenceBinding value) |
ReferenceBinding |
superclass() |
ReferenceBinding[] |
superInterfaces() |
void |
tagAsHavingDefectiveContainerType() |
String |
toString() |
TypeVariableBinding[] |
typeVariables() |
TypeBinding |
unannotated(boolean removeOnlyNullAnnotations)
Return this type minus its type annotations
|
FieldBinding[] |
unResolvedFields() |
appendNullAnnotation, applyCloseableClassWhitelists, applyCloseableInterfaceWhitelists, binarySearch, binarySearch, canBeInstantiated, canBeSeenBy, canBeSeenBy, canBeSeenBy, computeGenericTypeSignature, computeId, computeUniqueKey, constantPoolName, debugName, depth, detectAnnotationCycle, enclosingTypeAt, enumConstantCount, fieldCount, getAccessFlags, getAnnotations, getAnnotationTagBits, getEnclosingInstancesSlotSize, getFileName, getOuterLocalVariablesSlotSize, getPackage, getSingleAbstractMethod, hashCode, hasIncompatibleSuperType, hasRestrictedAccess, implementsInterface, isAbstract, isAnnotationType, isBinaryBinding, isClass, isCompatibleWith, isConsistentIntersection, isDefault, isDeprecated, isEnum, isFinal, isFunctionalInterface, isHierarchyBeingActivelyConnected, isHierarchyBeingConnected, isInterface, isOrEnclosedByPrivateType, isPrivate, isProperType, isProtected, isPublic, isStatic, isStrictfp, isSubtypeOf, isSubTypeOfRTL, isSuperclassOf, isThrowable, isUncheckedException, isUsed, isViewedAsDeprecated, nullAnnotatedReadableName, outermostEnclosingType, qualifiedSourceName, readableName, retrieveAnnotationHolder, setAnnotations, shortReadableName, signature, sortFields, sortMethods, sourceName, syntheticEnclosingInstanceTypesactualType, annotatedDebugName, capture, closestMatch, collectMissingTypes, collectSubstitutes, dimensions, enclosingMethod, enterRecursiveFunction, equalsEquals, erasure, exitRecursiveFunction, findSuperTypeOriginatingFrom, findSuperTypeOriginatingFrom, genericCast, getErasureCompatibleType, getIntersectingTypes, getTypeAnnotations, hasNullTypeAnnotations, hasTypeAnnotations, isAnonymousType, isArrayType, isBaseType, isBoundParameterizedType, isBoxedPrimitiveType, isCapture, isCompatibleWith, isHierarchyInconsistent, isIntersectionCastType, isIntersectionType, isLocalType, isMemberType, isNestedType, isNumericType, isParameterizedType, isParameterizedTypeWithActualArguments, isParameterizedWithOwnVariables, isPertinentToApplicability, isPertinentToApplicability, isPrimitiveOrBoxedPrimitiveType, isPrimitiveType, isProvablyDistinct, isRawType, isReifiable, isTypeArgumentContainedBy, isTypeVariable, isUnboundWildcard, isUnresolvedType, isWildcard, leafComponentType, mentionsAny, needsUncheckedConversion, notEquals, original, qualifiedPackageName, setTypeAnnotations, sIsMoreSpecific, swapUnresolved, syntheticOuterLocalVariables, uncapture, wellKnownTypecomputeUniqueKey, initializeDeprecatedAnnotationTagBits, isParameter, isTaggedRepeatable, isValidBinding, isVolatile, problemId, setAnnotationsprotected ReferenceBinding superclass
protected ReferenceBinding enclosingType
protected ReferenceBinding[] superInterfaces
protected FieldBinding[] fields
protected MethodBinding[] methods
protected ReferenceBinding[] memberTypes
protected TypeVariableBinding[] typeVariables
protected LookupEnvironment environment
protected SimpleLookupTable storedAnnotations
protected BinaryTypeBinding()
public BinaryTypeBinding(BinaryTypeBinding prototype)
public BinaryTypeBinding(PackageBinding packageBinding, IBinaryType binaryType, LookupEnvironment environment)
packageBinding - binaryType - environment - public BinaryTypeBinding(PackageBinding packageBinding, IBinaryType binaryType, LookupEnvironment environment, boolean needFieldsAndMethods)
packageBinding - binaryType - environment - needFieldsAndMethods - public TypeBinding clone(TypeBinding outerType)
TypeBindingclone in class TypeBindingpublic static AnnotationBinding[] createAnnotations(IBinaryAnnotation[] annotationInfos, LookupEnvironment env, char[][][] missingTypeNames)
public static TypeBinding resolveType(TypeBinding type, LookupEnvironment environment, boolean convertGenericToRawType)
public FieldBinding[] availableFields()
ReferenceBindingavailableFields in class ReferenceBindingReferenceBinding.availableFields()public MethodBinding[] availableMethods()
ReferenceBindingavailableMethods in class ReferenceBindingReferenceBinding.availableMethods()public ReferenceBinding enclosingType()
enclosingType in class TypeBindingpublic FieldBinding[] fields()
fields in class ReferenceBindingpublic char[] genericTypeSignature()
TypeBindinggenericTypeSignature in class TypeBindingTypeBinding.genericTypeSignature()public MethodBinding getExactConstructor(TypeBinding[] argumentTypes)
getExactConstructor in class ReferenceBindingpublic MethodBinding getExactMethod(char[] selector, TypeBinding[] argumentTypes, CompilationUnitScope refScope)
getExactMethod in class ReferenceBindingpublic FieldBinding getField(char[] fieldName, boolean needResolve)
getField in class ReferenceBindingpublic ReferenceBinding getMemberType(char[] typeName)
getMemberType in class ReferenceBindingpublic MethodBinding[] getMethods(char[] selector)
getMethods in class ReferenceBindingpublic MethodBinding[] getMethods(char[] selector, int suggestedParameterLength)
getMethods in class ReferenceBindingpublic boolean hasMemberTypes()
hasMemberTypes in class ReferenceBindingpublic TypeVariableBinding getTypeVariable(char[] variableName)
getTypeVariable in class ReferenceBindingpublic boolean hasTypeBit(int bit)
TypeBindingTypeIds.BitAutoCloseable.hasTypeBit in class TypeBindingpublic boolean isEquivalentTo(TypeBinding otherType)
isEquivalentTo in class TypeBindingpublic boolean isGenericType()
isGenericType in class TypeBindingpublic boolean isHierarchyConnected()
ReferenceBindingisHierarchyConnected in class ReferenceBindingpublic boolean isRepeatableAnnotationType()
TypeBindingisRepeatableAnnotationType in class TypeBindingpublic int kind()
kind in class TypeBindingpublic ReferenceBinding[] memberTypes()
memberTypes in class ReferenceBindingpublic MethodBinding[] methods()
methods in class ReferenceBindingpublic TypeBinding prototype()
TypeBindingSourceTypeBinding,
BinaryTypeBinding and UnresolvedReferenceBinding do so as of now. In fact some types e.g ParameterizedTypeBinding
should not do so. Deflecting a query to a prototype would lead to wrong results in the case of ParameterizedTypeBindingprototype in class TypeBindingpublic ReferenceBinding containerAnnotationType()
containerAnnotationType in class TypeBindingpublic void setContainerAnnotationType(ReferenceBinding value)
setContainerAnnotationType in class ReferenceBindingpublic void tagAsHavingDefectiveContainerType()
tagAsHavingDefectiveContainerType in class ReferenceBindingpublic ReferenceBinding superclass()
superclass in class ReferenceBindingpublic ReferenceBinding[] superInterfaces()
superInterfaces in class ReferenceBindingpublic TypeVariableBinding[] typeVariables()
typeVariables in class TypeBindingpublic TypeBinding unannotated(boolean removeOnlyNullAnnotations)
TypeBindingunannotated in class TypeBindingremoveOnlyNullAnnotations - if true only null type annotations are removed, otherwise all type annotations.public FieldBinding[] unResolvedFields()
unResolvedFields in class ReferenceBindingCopyright © 2015. All rights reserved.