|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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.ParameterizedTypeBinding
public class ParameterizedTypeBinding
A parameterized type encapsulates a type with type arguments,
| Fields inherited from class org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding |
|---|
compoundName, fPackage, LUB_GENERIC, modifiers, sourceName |
| Fields inherited from class org.eclipse.jdt.internal.compiler.lookup.TypeBinding |
|---|
BOOLEAN, BYTE, CHAR, DOUBLE, FLOAT, id, INT, LONG, NULL, SHORT, tagBits, VOID |
| Fields inherited from class 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 |
| Constructor Summary | |
|---|---|
ParameterizedTypeBinding(ReferenceBinding type,
TypeBinding[] arguments,
ReferenceBinding enclosingType,
LookupEnvironment environment)
|
|
| Method Summary | |
|---|---|
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 |
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()
|
| Methods inherited from class org.eclipse.jdt.internal.compiler.lookup.Binding |
|---|
computeUniqueKey, initializeDeprecatedAnnotationTagBits, isParameter, isValidBinding, isVolatile |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public TypeBinding[] arguments
public LookupEnvironment environment
public char[] genericTypeSignature
public ReferenceBinding superclass
public ReferenceBinding[] superInterfaces
public FieldBinding[] fields
public ReferenceBinding[] memberTypes
public MethodBinding[] methods
| Constructor Detail |
|---|
public ParameterizedTypeBinding(ReferenceBinding type,
TypeBinding[] arguments,
ReferenceBinding enclosingType,
LookupEnvironment environment)
| Method Detail |
|---|
protected ReferenceBinding actualType()
genericType()
public void boundCheck(Scope scope,
TypeReference[] argumentReferences)
public boolean canBeInstantiated()
ReferenceBinding
canBeInstantiated in class ReferenceBindingReferenceBinding.canBeInstantiated()
public TypeBinding capture(Scope scope,
int position)
capture in class TypeBindingTypeBinding.capture(Scope,int)public List collectMissingTypes(List missingTypes)
TypeBinding
collectMissingTypes 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)
ReferenceBinding
computeUniqueKey in class ReferenceBindingpublic char[] constantPoolName()
ReferenceBinding
constantPoolName 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()
Substitution
environment 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()
if no resolution is required (unlikely)public char[] genericTypeSignature()
genericTypeSignature in class TypeBindingpublic long getAnnotationTagBits()
Binding
getAnnotationTagBits 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 implementsMethod(MethodBinding method)
ReferenceBinding.implementsMethod(MethodBinding)protected void initializeArguments()
public boolean isEquivalentTo(TypeBinding otherType)
TypeBinding
isEquivalentTo in class TypeBindingpublic boolean isHierarchyConnected()
ReferenceBinding
isHierarchyConnected in class ReferenceBindingpublic boolean isRawSubstitution()
Substitution
isRawSubstitution 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()
TypeBinding
qualifiedPackageName in class TypeBindingTypeBinding.qualifiedPackageName()public char[] qualifiedSourceName()
ReferenceBinding
qualifiedSourceName in class ReferenceBindingTypeBinding.qualifiedSourceName()public char[] readableName()
ReferenceBinding
readableName in class ReferenceBindingBinding.readableName()public char[] shortReadableName()
shortReadableName in class ReferenceBindingBinding.shortReadableName()public char[] signature()
TypeBinding
signature in class ReferenceBindingTypeBinding.signature()public char[] sourceName()
sourceName in class ReferenceBindingTypeBinding.sourceName()public TypeBinding substitute(TypeVariableBinding originalVariable)
Substitution
substitute 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 ReferenceBinding
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||