Home
last modified time | relevance | path

Searched refs:toResolve (Results 1 – 2 of 2) sorted by relevance

/external/guice/core/src/com/google/inject/
DTypeLiteral.java163 TypeLiteral<?> resolve(Type toResolve) { in resolve() argument
164 return TypeLiteral.get(resolveType(toResolve)); in resolve()
167 Type resolveType(Type toResolve) { in resolveType() argument
170 if (toResolve instanceof TypeVariable) { in resolveType()
171 TypeVariable original = (TypeVariable) toResolve; in resolveType()
172 toResolve = MoreTypes.resolveTypeVariable(type, rawType, original); in resolveType()
173 if (toResolve == original) { in resolveType()
174 return toResolve; in resolveType()
177 } else if (toResolve instanceof GenericArrayType) { in resolveType()
178 GenericArrayType original = (GenericArrayType) toResolve; in resolveType()
[all …]
/external/guice/core/src/com/google/inject/internal/
DMoreTypes.java282 public static Type getGenericSupertype(Type type, Class<?> rawType, Class<?> toResolve) { in getGenericSupertype() argument
283 if (toResolve == rawType) { in getGenericSupertype()
288 if (toResolve.isInterface()) { in getGenericSupertype()
291 if (interfaces[i] == toResolve) { in getGenericSupertype()
293 } else if (toResolve.isAssignableFrom(interfaces[i])) { in getGenericSupertype()
294 return getGenericSupertype(rawType.getGenericInterfaces()[i], interfaces[i], toResolve); in getGenericSupertype()
303 if (rawSupertype == toResolve) { in getGenericSupertype()
305 } else if (toResolve.isAssignableFrom(rawSupertype)) { in getGenericSupertype()
306 return getGenericSupertype(rawType.getGenericSuperclass(), rawSupertype, toResolve); in getGenericSupertype()
313 return toResolve; in getGenericSupertype()