|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
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,
| 从类 org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding 继承的字段 |
|---|
compoundName, fPackage, LUB_GENERIC, modifiers, sourceName |
| 从类 org.eclipse.jdt.internal.compiler.lookup.TypeBinding 继承的字段 |
|---|
BOOLEAN, BYTE, CHAR, DOUBLE, FLOAT, id, INT, LONG, NULL, SHORT, tagBits, VOID |
| 从类 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 |
| 构造方法摘要 | |
|---|---|
ParameterizedTypeBinding(ReferenceBinding type,
TypeBinding[] arguments,
ReferenceBinding enclosingType,
LookupEnvironment environment)
|
|
| 方法摘要 | |
|---|---|
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()
|
| 从类 org.eclipse.jdt.internal.compiler.lookup.Binding 继承的方法 |
|---|
computeUniqueKey, initializeDeprecatedAnnotationTagBits, isParameter, isValidBinding, isVolatile |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| 字段详细信息 |
|---|
public 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()
ReferenceBinding 复制的描述
ReferenceBinding 中的 canBeInstantiatedReferenceBinding.canBeInstantiated()
public TypeBinding capture(Scope scope,
int position)
TypeBinding 中的 captureTypeBinding.capture(Scope,int)public List collectMissingTypes(List missingTypes)
TypeBinding 复制的描述
TypeBinding 中的 collectMissingTypesTypeBinding.collectMissingTypes(java.util.List)
public void collectSubstitutes(Scope scope,
TypeBinding actualType,
InferenceContext inferenceContext,
int constraint)
TypeBinding 中的 collectSubstitutespublic void computeId()
ReferenceBinding 中的 computeIdReferenceBinding.computeId()public char[] computeUniqueKey(boolean isLeaf)
ReferenceBinding 复制的描述
ReferenceBinding 中的 computeUniqueKeypublic char[] constantPoolName()
ReferenceBinding 复制的描述
ReferenceBinding 中的 constantPoolNameTypeBinding.constantPoolName()public ParameterizedMethodBinding createParameterizedMethod(MethodBinding originalMethod)
public String debugName()
ReferenceBinding 中的 debugNameTypeBinding.debugName()public ReferenceBinding enclosingType()
TypeBinding 中的 enclosingTypeTypeBinding.enclosingType()public LookupEnvironment environment()
Substitution 复制的描述
Substitution 中的 environmentSubstitution.environment()public TypeBinding erasure()
TypeBinding 中的 erasureTypeBinding.erasure()public int fieldCount()
ReferenceBinding 中的 fieldCountReferenceBinding.fieldCount()public FieldBinding[] fields()
ReferenceBinding 中的 fieldsReferenceBinding.fields()public ReferenceBinding genericType()
if no resolution is required (unlikely)public char[] genericTypeSignature()
TypeBinding 中的 genericTypeSignaturepublic long getAnnotationTagBits()
Binding 复制的描述
ReferenceBinding 中的 getAnnotationTagBitsReferenceBinding.getAnnotationTagBits()public int getEnclosingInstancesSlotSize()
ReferenceBinding 中的 getEnclosingInstancesSlotSizepublic MethodBinding getExactConstructor(TypeBinding[] argumentTypes)
ReferenceBinding 中的 getExactConstructorReferenceBinding.getExactConstructor(TypeBinding[])
public MethodBinding getExactMethod(char[] selector,
TypeBinding[] argumentTypes,
CompilationUnitScope refScope)
ReferenceBinding 中的 getExactMethodReferenceBinding.getExactMethod(char[], TypeBinding[],CompilationUnitScope)
public FieldBinding getField(char[] fieldName,
boolean needResolve)
ReferenceBinding 中的 getFieldReferenceBinding.getField(char[], boolean)public ReferenceBinding getMemberType(char[] typeName)
ReferenceBinding 中的 getMemberTypeReferenceBinding.getMemberType(char[])public MethodBinding[] getMethods(char[] selector)
ReferenceBinding 中的 getMethodsReferenceBinding.getMethods(char[])public int getOuterLocalVariablesSlotSize()
ReferenceBinding 中的 getOuterLocalVariablesSlotSizepublic boolean hasMemberTypes()
ReferenceBinding 中的 hasMemberTypespublic boolean implementsMethod(MethodBinding method)
ReferenceBinding.implementsMethod(MethodBinding)protected void initializeArguments()
public boolean isEquivalentTo(TypeBinding otherType)
TypeBinding 复制的描述
TypeBinding 中的 isEquivalentTopublic boolean isHierarchyConnected()
ReferenceBinding 复制的描述
ReferenceBinding 中的 isHierarchyConnectedpublic boolean isRawSubstitution()
Substitution 复制的描述
Substitution 中的 isRawSubstitutionSubstitution.isRawSubstitution()public int kind()
TypeBinding 中的 kindpublic ReferenceBinding[] memberTypes()
ReferenceBinding 中的 memberTypesReferenceBinding.memberTypes()public MethodBinding[] methods()
ReferenceBinding 中的 methodsReferenceBinding.methods()public int problemId()
Binding 中的 problemIdBinding.problemId()public char[] qualifiedPackageName()
TypeBinding 复制的描述
TypeBinding 中的 qualifiedPackageNameTypeBinding.qualifiedPackageName()public char[] qualifiedSourceName()
ReferenceBinding 复制的描述
ReferenceBinding 中的 qualifiedSourceNameTypeBinding.qualifiedSourceName()public char[] readableName()
ReferenceBinding 复制的描述
ReferenceBinding 中的 readableNameBinding.readableName()public char[] shortReadableName()
ReferenceBinding 中的 shortReadableNameBinding.shortReadableName()public char[] signature()
TypeBinding 复制的描述
ReferenceBinding 中的 signatureTypeBinding.signature()public char[] sourceName()
ReferenceBinding 中的 sourceNameTypeBinding.sourceName()public TypeBinding substitute(TypeVariableBinding originalVariable)
Substitution 复制的描述
Substitution 中的 substituteSubstitution.substitute(org.eclipse.jdt.internal.compiler.lookup.TypeVariableBinding)public ReferenceBinding superclass()
ReferenceBinding 中的 superclassReferenceBinding.superclass()public ReferenceBinding[] superInterfaces()
ReferenceBinding 中的 superInterfacesReferenceBinding.superInterfaces()
public void swapUnresolved(UnresolvedReferenceBinding unresolvedType,
ReferenceBinding resolvedType,
LookupEnvironment env)
TypeBinding 中的 swapUnresolvedpublic ReferenceBinding[] syntheticEnclosingInstanceTypes()
ReferenceBinding 中的 syntheticEnclosingInstanceTypesReferenceBinding.syntheticEnclosingInstanceTypes()public SyntheticArgumentBinding[] syntheticOuterLocalVariables()
ReferenceBinding 中的 syntheticOuterLocalVariablesReferenceBinding.syntheticOuterLocalVariables()public String toString()
Object 中的 toStringObject.toString()public TypeVariableBinding[] typeVariables()
TypeBinding 中的 typeVariablespublic FieldBinding[] unResolvedFields()
ReferenceBinding 中的 unResolvedFields
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||