| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final String[] | _names
Array of type (type variable) names. |
| private final ResolvedType[] | _types
Types matching names |
| private final String[] | _unboundVariables
Names of potentially unresolved type variables. |
| private static final TypeBindings | |
| private static final String[] | |
| private static final ResolvedType[] |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static TypeBindings | create(Class<?> erasedType, List<ResolvedType> typeList)
Factory method for constructing bindings for given class using specified type parameters. |
| public static TypeBindings | |
| public static TypeBindings | |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public ResolvedType | findBoundType(String name)
Find type bound to specified name, if there is one; returns bound type if so, null if not. |
| public String | |
| public ResolvedType | |
| public List | |
| public int | |
| public boolean | |
| public boolean | |
| public int | |
| public String | |
| protected ResolvedType[] | |
| public TypeBindings | withUnboundVariable(String name)
Method for creating an instance that has same bindings as this object, plus an indicator for additional type variable that may be unbound within this context; this is needed to resolve recursive self-references. |
| _hashCode | back to summary |
|---|---|
| private final int _hashCode | |
| _names | back to summary |
|---|---|
| private final String[] _names Array of type (type variable) names. | |
| _types | back to summary |
|---|---|
| private final ResolvedType[] _types Types matching names | |
| _unboundVariables | back to summary |
|---|---|
| private final String[] _unboundVariables Names of potentially unresolved type variables.
| |
| EMPTY | back to summary |
|---|---|
| private static final TypeBindings EMPTY | |
| NO_STRINGS | back to summary |
|---|---|
| private static final String[] NO_STRINGS | |
| NO_TYPES | back to summary |
|---|---|
| private static final ResolvedType[] NO_TYPES | |
| TypeBindings | back to summary |
|---|---|
| private TypeBindings(String[] names, ResolvedType[] types, String[] uvars) | |
| create | back to summary |
|---|---|
| public static TypeBindings create(Class<?> erasedType, List<ResolvedType> typeList) Factory method for constructing bindings for given class using specified type parameters. | |
| create | back to summary |
|---|---|
| public static TypeBindings create(Class<?> erasedType, ResolvedType[] types) | |
| emptyBindings | back to summary |
|---|---|
| public static TypeBindings emptyBindings() | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| findBoundType | back to summary |
|---|---|
| public ResolvedType findBoundType(String name) Find type bound to specified name, if there is one; returns bound type if so, null if not. | |
| getBoundName | back to summary |
|---|---|
| public String getBoundName(int index) | |
| getBoundType | back to summary |
|---|---|
| public ResolvedType getBoundType(int index) | |
| getTypeParameters | back to summary |
|---|---|
| public List Accessor for getting bound types in declaration order | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| hasUnbound | back to summary |
|---|---|
public boolean hasUnbound(String name)
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() | |
| size | back to summary |
|---|---|
| public int size() Returns number of bindings contained | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| typeParameterArray | back to summary |
|---|---|
| protected ResolvedType[] typeParameterArray() | |
| withUnboundVariable | back to summary |
|---|---|
| public TypeBindings withUnboundVariable(String name) Method for creating an instance that has same bindings as this object, plus an indicator for additional type variable that may be unbound within this context; this is needed to resolve recursive self-references.
| |