|
||||||||||
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 ReferenceBinding
ReferenceBinding.canBeInstantiated()
public TypeBinding capture(Scope scope, int position)
capture
in class TypeBinding
TypeBinding.capture(Scope,int)
public List collectMissingTypes(List missingTypes)
TypeBinding
collectMissingTypes
in class TypeBinding
TypeBinding.collectMissingTypes(java.util.List)
public void collectSubstitutes(Scope scope, TypeBinding actualType, InferenceContext inferenceContext, int constraint)
collectSubstitutes
in class TypeBinding
public void computeId()
computeId
in class ReferenceBinding
ReferenceBinding.computeId()
public char[] computeUniqueKey(boolean isLeaf)
ReferenceBinding
computeUniqueKey
in class ReferenceBinding
public char[] constantPoolName()
ReferenceBinding
constantPoolName
in class ReferenceBinding
TypeBinding.constantPoolName()
public ParameterizedMethodBinding createParameterizedMethod(MethodBinding originalMethod)
public String debugName()
debugName
in class ReferenceBinding
TypeBinding.debugName()
public ReferenceBinding enclosingType()
enclosingType
in class TypeBinding
TypeBinding.enclosingType()
public LookupEnvironment environment()
Substitution
environment
in interface Substitution
Substitution.environment()
public TypeBinding erasure()
erasure
in class TypeBinding
TypeBinding.erasure()
public int fieldCount()
fieldCount
in class ReferenceBinding
ReferenceBinding.fieldCount()
public FieldBinding[] fields()
fields
in class ReferenceBinding
ReferenceBinding.fields()
public ReferenceBinding genericType()
if no resolution is required (unlikely)
public char[] genericTypeSignature()
genericTypeSignature
in class TypeBinding
public long getAnnotationTagBits()
Binding
getAnnotationTagBits
in class ReferenceBinding
ReferenceBinding.getAnnotationTagBits()
public int getEnclosingInstancesSlotSize()
getEnclosingInstancesSlotSize
in class ReferenceBinding
public MethodBinding getExactConstructor(TypeBinding[] argumentTypes)
getExactConstructor
in class ReferenceBinding
ReferenceBinding.getExactConstructor(TypeBinding[])
public MethodBinding getExactMethod(char[] selector, TypeBinding[] argumentTypes, CompilationUnitScope refScope)
getExactMethod
in class ReferenceBinding
ReferenceBinding.getExactMethod(char[], TypeBinding[],CompilationUnitScope)
public FieldBinding getField(char[] fieldName, boolean needResolve)
getField
in class ReferenceBinding
ReferenceBinding.getField(char[], boolean)
public ReferenceBinding getMemberType(char[] typeName)
getMemberType
in class ReferenceBinding
ReferenceBinding.getMemberType(char[])
public MethodBinding[] getMethods(char[] selector)
getMethods
in class ReferenceBinding
ReferenceBinding.getMethods(char[])
public int getOuterLocalVariablesSlotSize()
getOuterLocalVariablesSlotSize
in class ReferenceBinding
public boolean hasMemberTypes()
hasMemberTypes
in class ReferenceBinding
public boolean implementsMethod(MethodBinding method)
ReferenceBinding.implementsMethod(MethodBinding)
protected void initializeArguments()
public boolean isEquivalentTo(TypeBinding otherType)
TypeBinding
isEquivalentTo
in class TypeBinding
public boolean isHierarchyConnected()
ReferenceBinding
isHierarchyConnected
in class ReferenceBinding
public boolean isRawSubstitution()
Substitution
isRawSubstitution
in interface Substitution
Substitution.isRawSubstitution()
public int kind()
kind
in class TypeBinding
public ReferenceBinding[] memberTypes()
memberTypes
in class ReferenceBinding
ReferenceBinding.memberTypes()
public MethodBinding[] methods()
methods
in class ReferenceBinding
ReferenceBinding.methods()
public int problemId()
problemId
in class Binding
Binding.problemId()
public char[] qualifiedPackageName()
TypeBinding
qualifiedPackageName
in class TypeBinding
TypeBinding.qualifiedPackageName()
public char[] qualifiedSourceName()
ReferenceBinding
qualifiedSourceName
in class ReferenceBinding
TypeBinding.qualifiedSourceName()
public char[] readableName()
ReferenceBinding
readableName
in class ReferenceBinding
Binding.readableName()
public char[] shortReadableName()
shortReadableName
in class ReferenceBinding
Binding.shortReadableName()
public char[] signature()
TypeBinding
signature
in class ReferenceBinding
TypeBinding.signature()
public char[] sourceName()
sourceName
in class ReferenceBinding
TypeBinding.sourceName()
public TypeBinding substitute(TypeVariableBinding originalVariable)
Substitution
substitute
in interface Substitution
Substitution.substitute(org.eclipse.jdt.internal.compiler.lookup.TypeVariableBinding)
public ReferenceBinding superclass()
superclass
in class ReferenceBinding
ReferenceBinding.superclass()
public ReferenceBinding[] superInterfaces()
superInterfaces
in class ReferenceBinding
ReferenceBinding.superInterfaces()
public void swapUnresolved(UnresolvedReferenceBinding unresolvedType, ReferenceBinding resolvedType, LookupEnvironment env)
swapUnresolved
in class TypeBinding
public ReferenceBinding[] syntheticEnclosingInstanceTypes()
syntheticEnclosingInstanceTypes
in class ReferenceBinding
ReferenceBinding.syntheticEnclosingInstanceTypes()
public SyntheticArgumentBinding[] syntheticOuterLocalVariables()
syntheticOuterLocalVariables
in class ReferenceBinding
ReferenceBinding.syntheticOuterLocalVariables()
public String toString()
toString
in class Object
Object.toString()
public TypeVariableBinding[] typeVariables()
typeVariables
in class TypeBinding
public FieldBinding[] unResolvedFields()
unResolvedFields
in class ReferenceBinding
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |