Lines Matching refs:mappings

41  * An object of this class encapsulates type mappings from type variables. Mappings are established
44 * <p>Note that usually type mappings are already implied by the static type hierarchy (for example,
88 * corresponding mappings exist in the current {@code TypeResolver} instance.
91 Map<TypeVariableKey, Type> mappings = Maps.newHashMap();
92 populateTypeMappings(mappings, checkNotNull(formal), checkNotNull(actual));
93 return where(mappings);
97 TypeResolver where(Map<TypeVariableKey, ? extends Type> mappings) {
98 return new TypeResolver(typeTable.where(mappings));
102 final Map<TypeVariableKey, Type> mappings, Type from, final Type to) {
108 mappings.put(new TypeVariableKey(typeVariable), to);
121 populateTypeMappings(mappings, fromUpperBounds[i], toUpperBounds[i]);
124 populateTypeMappings(mappings, fromLowerBounds[i], toLowerBounds[i]);
136 populateTypeMappings(mappings, fromArgs[i], toArgs[i]);
142 populateTypeMappings(mappings, fromArrayType.getGenericComponentType(), componentType);
226 final TypeTable where(Map<TypeVariableKey, ? extends Type> mappings) {
229 for (Map.Entry<TypeVariableKey, ? extends Type> mapping : mappings.entrySet()) {
312 private final Map<TypeVariableKey, Type> mappings = Maps.newHashMap();
315 * Returns type mappings using type parameters and type arguments found in
322 return ImmutableMap.copyOf(introspector.mappings);
351 if (mappings.containsKey(var)) {
360 for (Type t = arg; t != null; t = mappings.get(TypeVariableKey.forLookup(t))) {
366 for (Type x = arg; x != null; x = mappings.remove(TypeVariableKey.forLookup(x))) {}
370 mappings.put(var, arg);