public class ParameterizedTypeBinding extends ReferenceBinding implements Substitution
| Modifier and Type | Field and Description |
|---|---|
TypeBinding[] |
arguments |
LookupEnvironment |
environment |
FieldBinding[] |
fields |
char[] |
genericTypeSignature |
ReferenceBinding[] |
memberTypes |
MethodBinding[] |
methods |
ReferenceBinding |
superclass |
ReferenceBinding[] |
superInterfaces |
compoundName, fPackage, LUB_GENERIC, modifiers, sourceNameBOOLEAN, BYTE, CHAR, DOUBLE, FLOAT, id, INT, LONG, NULL, SHORT, tagBits, VOIDANY_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_NULL_DEFAULT, NO_PARAMETERS, NO_SUPERINTERFACES, NO_TYPE_VARIABLES, NO_TYPES, NONNULL_BY_DEFAULT, NULL_UNSPECIFIED_BY_DEFAULT, PACKAGE, PARAMETERIZED_TYPE, RAW_TYPE, TYPE, TYPE_PARAMETER, UNINITIALIZED_FIELDS, UNINITIALIZED_METHODS, UNINITIALIZED_REFERENCE_TYPES, VARIABLE, WILDCARD_TYPE| Constructor and Description |
|---|
ParameterizedTypeBinding(ReferenceBinding type,
TypeBinding[] arguments,
ReferenceBinding enclosingType,
LookupEnvironment environment) |
| Modifier and Type | Method and Description |
|---|---|
protected ReferenceBinding |
actualType()
May return an UnresolvedReferenceBinding.
|
void |
boundCheck(Scope scope,
TypeReference[] argumentReferences)
Iterate type arguments, and validate them according to corresponding variable bounds.
|
boolean |
canBeInstantiated()
Answer true if the receiver can be instantiated
|
TypeBinding |
capture(Scope scope,
int position)
Perform capture conversion for a parameterized type with wildcard arguments
|
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.
|
void |
computeId() |
char[] |
computeUniqueKey(boolean isLeaf)
p.X
|
char[] |
constantPoolName()
Answer the receiver's constant pool name.
|
ParameterizedMethodBinding |
createParameterizedMethod(MethodBinding originalMethod) |
String |
debugName() |
ReferenceBinding |
enclosingType() |
LookupEnvironment |
environment()
Returns the lookup environment
|
TypeBinding |
erasure() |
int |
fieldCount() |
FieldBinding[] |
fields() |
ReferenceBinding |
genericType()
Return the original generic type from which the parameterized type got instantiated from.
|
char[] |
genericTypeSignature()
Ltype |
long |
getAnnotationTagBits()
Compute the tagbits for standard annotations.
|
int |
getEnclosingInstancesSlotSize() |
MethodBinding |
getExactConstructor(TypeBinding[] argumentTypes) |
MethodBinding |
getExactMethod(char[] selector,
TypeBinding[] argumentTypes,
CompilationUnitScope refScope) |
FieldBinding |
getField(char[] fieldName,
boolean needResolve) |
ReferenceBinding |
getMemberType(char[] typeName) |
MethodBinding[] |
getMethods(char[] selector) |
int |
getOuterLocalVariablesSlotSize() |
boolean |
hasMemberTypes() |
boolean |
hasTypeBit(int bit)
Answer an additional bit characterizing this type, like
TypeIds.BitAutoCloseable. |
boolean |
implementsMethod(MethodBinding method) |
protected void |
initializeArguments() |
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 |
isHierarchyConnected()
Returns true if the type hierarchy is connected
|
boolean |
isRawSubstitution()
Returns true for raw substitution
|
int |
kind() |
ReferenceBinding[] |
memberTypes() |
MethodBinding[] |
methods() |
int |
problemId()
Define to be able to get the computeId() for the inner type binding.
|
char[] |
qualifiedPackageName()
Answer the qualified name of the receiver's package separated by periods
or an empty string if its the default package.
|
char[] |
qualifiedSourceName()
Answer the source name for the type.
|
char[] |
readableName()
Answer the receiver's signature.
|
char[] |
shortReadableName() |
char[] |
signature()
Answer the receiver classfile signature.
|
char[] |
sourceName() |
TypeBinding |
substitute(TypeVariableBinding originalVariable)
Returns the type substitute for a given type variable, or itself
if no substitution got performed.
|
ReferenceBinding |
superclass() |
ReferenceBinding[] |
superInterfaces() |
void |
swapUnresolved(UnresolvedReferenceBinding unresolvedType,
ReferenceBinding resolvedType,
LookupEnvironment env) |
ReferenceBinding[] |
syntheticEnclosingInstanceTypes() |
SyntheticArgumentBinding[] |
syntheticOuterLocalVariables() |
String |
toString() |
TypeVariableBinding[] |
typeVariables() |
FieldBinding[] |
unResolvedFields() |
applyCloseableWhitelists, availableFields, availableMethods, binarySearch, binarySearch, canBeSeenBy, canBeSeenBy, canBeSeenBy, computeGenericTypeSignature, depth, detectAnnotationCycle, enclosingTypeAt, enumConstantCount, getAccessFlags, getAnnotations, getFileName, getMethods, getPackage, getTypeVariable, 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, retrieveAnnotationHolder, setAnnotations, sortFields, sortMethodsclosestMatch, dimensions, findSuperTypeOriginatingFrom, findSuperTypeOriginatingFrom, genericCast, getErasureCompatibleType, isAnonymousType, isArrayType, isBaseType, isBoundParameterizedType, isCapture, isCompatibleWith, isGenericType, isHierarchyInconsistent, isIntersectionType, isLocalType, isMemberType, isNestedType, isNumericType, isParameterizedType, isParameterizedTypeWithActualArguments, isParameterizedWithOwnVariables, isProvablyDistinct, isRawType, isReifiable, isTypeArgumentContainedBy, isTypeVariable, isUnboundWildcard, isWildcard, leafComponentType, needsUncheckedConversion, original, wellKnownTypecomputeUniqueKey, initializeDeprecatedAnnotationTagBits, isParameter, isValidBinding, isVolatilepublic TypeBinding[] arguments
public LookupEnvironment environment
public char[] genericTypeSignature
public ReferenceBinding superclass
public ReferenceBinding[] superInterfaces
public FieldBinding[] fields
public ReferenceBinding[] memberTypes
public MethodBinding[] methods
public ParameterizedTypeBinding(ReferenceBinding type, TypeBinding[] arguments, ReferenceBinding enclosingType, LookupEnvironment environment)
protected ReferenceBinding actualType()
genericType()public void boundCheck(Scope scope, TypeReference[] argumentReferences)
public boolean canBeInstantiated()
ReferenceBindingcanBeInstantiated in class ReferenceBindingReferenceBinding.canBeInstantiated()public TypeBinding capture(Scope scope, int position)
capture in class TypeBindingTypeBinding.capture(Scope,int)public List collectMissingTypes(List missingTypes)
TypeBindingcollectMissingTypes in class TypeBindingTypeBinding.collectMissingTypes(java.util.List)public void collectSubstitutes(Scope scope, TypeBinding actualType, InferenceContext inferenceContext, int constraint)
collectSubstitutes in class TypeBindingpublic void computeId()
computeId in class ReferenceBindingReferenceBinding.computeId()public char[] computeUniqueKey(boolean isLeaf)
ReferenceBindingcomputeUniqueKey in class ReferenceBindingpublic char[] constantPoolName()
ReferenceBindingconstantPoolName in class ReferenceBindingTypeBinding.constantPoolName()public ParameterizedMethodBinding createParameterizedMethod(MethodBinding originalMethod)
public String debugName()
debugName in class ReferenceBindingTypeBinding.debugName()public ReferenceBinding enclosingType()
enclosingType in class TypeBindingTypeBinding.enclosingType()public LookupEnvironment environment()
Substitutionenvironment in interface SubstitutionSubstitution.environment()public TypeBinding erasure()
erasure in class TypeBindingTypeBinding.erasure()public int fieldCount()
fieldCount in class ReferenceBindingReferenceBinding.fieldCount()public FieldBinding[] fields()
fields in class ReferenceBindingReferenceBinding.fields()public ReferenceBinding genericType()
public char[] genericTypeSignature()
genericTypeSignature in class TypeBindingpublic long getAnnotationTagBits()
BindinggetAnnotationTagBits in class ReferenceBindingReferenceBinding.getAnnotationTagBits()public int getEnclosingInstancesSlotSize()
getEnclosingInstancesSlotSize in class ReferenceBindingpublic MethodBinding getExactConstructor(TypeBinding[] argumentTypes)
getExactConstructor in class ReferenceBindingReferenceBinding.getExactConstructor(TypeBinding[])public MethodBinding getExactMethod(char[] selector, TypeBinding[] argumentTypes, CompilationUnitScope refScope)
getExactMethod in class ReferenceBindingReferenceBinding.getExactMethod(char[], TypeBinding[],CompilationUnitScope)public FieldBinding getField(char[] fieldName, boolean needResolve)
getField in class ReferenceBindingReferenceBinding.getField(char[], boolean)public ReferenceBinding getMemberType(char[] typeName)
getMemberType in class ReferenceBindingReferenceBinding.getMemberType(char[])public MethodBinding[] getMethods(char[] selector)
getMethods in class ReferenceBindingReferenceBinding.getMethods(char[])public int getOuterLocalVariablesSlotSize()
getOuterLocalVariablesSlotSize in class ReferenceBindingpublic boolean hasMemberTypes()
hasMemberTypes in class ReferenceBindingpublic boolean hasTypeBit(int bit)
ReferenceBindingTypeIds.BitAutoCloseable.hasTypeBit in class ReferenceBindingpublic boolean implementsMethod(MethodBinding method)
protected void initializeArguments()
public boolean isEquivalentTo(TypeBinding otherType)
TypeBindingisEquivalentTo in class TypeBindingpublic boolean isHierarchyConnected()
ReferenceBindingisHierarchyConnected in class ReferenceBindingpublic boolean isRawSubstitution()
SubstitutionisRawSubstitution in interface SubstitutionSubstitution.isRawSubstitution()public int kind()
kind in class TypeBindingpublic ReferenceBinding[] memberTypes()
memberTypes in class ReferenceBindingReferenceBinding.memberTypes()public MethodBinding[] methods()
methods in class ReferenceBindingReferenceBinding.methods()public int problemId()
problemId in class BindingBinding.problemId()public char[] qualifiedPackageName()
TypeBindingqualifiedPackageName in class TypeBindingTypeBinding.qualifiedPackageName()public char[] qualifiedSourceName()
ReferenceBindingqualifiedSourceName in class ReferenceBindingTypeBinding.qualifiedSourceName()public char[] readableName()
ReferenceBindingreadableName in class ReferenceBindingBinding.readableName()public char[] shortReadableName()
shortReadableName in class ReferenceBindingBinding.shortReadableName()public char[] signature()
TypeBindingsignature in class ReferenceBindingTypeBinding.signature()public char[] sourceName()
sourceName in class ReferenceBindingTypeBinding.sourceName()public TypeBinding substitute(TypeVariableBinding originalVariable)
Substitutionsubstitute in interface SubstitutionSubstitution.substitute(org.eclipse.jdt.internal.compiler.lookup.TypeVariableBinding)public ReferenceBinding superclass()
superclass in class ReferenceBindingReferenceBinding.superclass()public ReferenceBinding[] superInterfaces()
superInterfaces in class ReferenceBindingReferenceBinding.superInterfaces()public void swapUnresolved(UnresolvedReferenceBinding unresolvedType, ReferenceBinding resolvedType, LookupEnvironment env)
swapUnresolved in class TypeBindingpublic ReferenceBinding[] syntheticEnclosingInstanceTypes()
syntheticEnclosingInstanceTypes in class ReferenceBindingReferenceBinding.syntheticEnclosingInstanceTypes()public SyntheticArgumentBinding[] syntheticOuterLocalVariables()
syntheticOuterLocalVariables in class ReferenceBindingReferenceBinding.syntheticOuterLocalVariables()public String toString()
toString in class ObjectObject.toString()public TypeVariableBinding[] typeVariables()
typeVariables in class TypeBindingpublic FieldBinding[] unResolvedFields()
unResolvedFields in class ReferenceBindingCopyright © 2013. All rights reserved.