|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
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.TypeVariableBinding
public class TypeVariableBinding
Binding for a type parameter, held by source/binary type or method.
| 字段摘要 | |
|---|---|
Binding |
declaringElement
|
TypeBinding |
firstBound
Denote the first explicit (binding) bound amongst the supertypes (from declaration in source) If no superclass was specified, then it denotes the first superinterface, or null if none was specified. |
char[] |
genericTypeSignature
|
int |
rank
|
ReferenceBinding |
superclass
|
ReferenceBinding[] |
superInterfaces
|
| 从类 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 |
| 构造方法摘要 | |
|---|---|
TypeVariableBinding(char[] sourceName,
Binding declaringElement,
int rank,
LookupEnvironment environment)
|
|
| 方法摘要 | |
|---|---|
int |
boundCheck(Substitution substitution,
TypeBinding argumentType)
Returns true if the argument type satisfies all bounds of the type parameter |
int |
boundsCount()
|
boolean |
canBeInstantiated()
Answer true if the receiver can be instantiated |
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. |
char[] |
computeUniqueKey(boolean isLeaf)
p.X |
char[] |
constantPoolName()
Answer the receiver's constant pool name. |
String |
debugName()
|
TypeBinding |
erasure()
|
char[] |
genericSignature()
T::Ljava/util/Map;:Ljava/io/Serializable; T:LY |
char[] |
genericTypeSignature()
T::Ljava/util/Map;:Ljava/io/Serializable; T:LY |
boolean |
isErasureBoundTo(TypeBinding type)
Returns true if the type variable is directly bound to a given type |
boolean |
isHierarchyConnected()
Returns true if the type hierarchy is connected |
boolean |
isInterchangeableWith(TypeVariableBinding otherVariable,
Substitution substitute)
Returns true if the 2 variables are playing exact same role: they have the same bounds, providing one is substituted with the other: |
boolean |
isTypeVariable()
Returns true if the type was declared as a type variable |
int |
kind()
|
TypeBinding[] |
otherUpperBounds()
|
char[] |
readableName()
Answer the receiver's signature. |
char[] |
shortReadableName()
|
ReferenceBinding |
superclass()
|
ReferenceBinding[] |
superInterfaces()
|
String |
toString()
|
TypeBinding |
upperBound()
Upper bound doesn't perform erasure |
| 从类 org.eclipse.jdt.internal.compiler.lookup.Binding 继承的方法 |
|---|
computeUniqueKey, initializeDeprecatedAnnotationTagBits, isParameter, isValidBinding, isVolatile, problemId |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| 字段详细信息 |
|---|
public Binding declaringElement
public int rank
public TypeBinding firstBound
public ReferenceBinding superclass
public ReferenceBinding[] superInterfaces
public char[] genericTypeSignature
| 构造方法详细信息 |
|---|
public TypeVariableBinding(char[] sourceName,
Binding declaringElement,
int rank,
LookupEnvironment environment)
| 方法详细信息 |
|---|
public int boundCheck(Substitution substitution,
TypeBinding argumentType)
public int boundsCount()
public boolean canBeInstantiated()
ReferenceBinding 复制的描述
ReferenceBinding 中的 canBeInstantiatedReferenceBinding.canBeInstantiated()
public void collectSubstitutes(Scope scope,
TypeBinding actualType,
InferenceContext inferenceContext,
int constraint)
TypeBinding 中的 collectSubstitutespublic char[] computeUniqueKey(boolean isLeaf)
ReferenceBinding 复制的描述
ReferenceBinding 中的 computeUniqueKeypublic char[] constantPoolName()
ReferenceBinding 复制的描述
ReferenceBinding 中的 constantPoolNamepublic String debugName()
ReferenceBinding 中的 debugNameTypeBinding.debugName()public TypeBinding erasure()
TypeBinding 中的 erasurepublic char[] genericSignature()
public char[] genericTypeSignature()
TypeBinding 中的 genericTypeSignaturepublic boolean isErasureBoundTo(TypeBinding type)
public boolean isHierarchyConnected()
ReferenceBinding 复制的描述
ReferenceBinding 中的 isHierarchyConnected
public boolean isInterchangeableWith(TypeVariableBinding otherVariable,
Substitution substitute)
public boolean isTypeVariable()
TypeBinding 中的 isTypeVariablepublic int kind()
TypeBinding 中的 kindpublic TypeBinding[] otherUpperBounds()
public char[] readableName()
ReferenceBinding 复制的描述
ReferenceBinding 中的 readableNameReferenceBinding.readableName()public char[] shortReadableName()
ReferenceBinding 中的 shortReadableNameReferenceBinding.shortReadableName()public ReferenceBinding superclass()
ReferenceBinding 中的 superclasspublic ReferenceBinding[] superInterfaces()
ReferenceBinding 中的 superInterfacespublic String toString()
Object 中的 toStringObject.toString()public TypeBinding upperBound()
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||