Searched refs:resolveType (Results 1 – 10 of 10) sorted by relevance
/external/guava/guava-tests/test/com/google/common/reflect/ |
D | TypeResolverTest.java | 35 assertEquals(t, new TypeResolver().resolveType(t)); in testWhere_noMapping() 40 assertEquals(String.class, new TypeResolver().where(t, String.class).resolveType(t)); in testWhere_typeVariableMapping() 47 new TypeResolver().where(t1, t2).where(t2, String.class).resolveType(t1)); in testWhere_indirectMapping() 53 assertEquals(t, resolver.where(t, t).resolveType(t)); in testWhere_typeVariableSelfMapping() 59 assertEquals(t, resolver.where(t, t).resolveType(t)); in testWhere_parameterizedSelfMapping() 65 assertEquals(t, resolver.where(t, t).resolveType(t)); in testWhere_genericArraySelfMapping() 71 resolver.where(String.class, String.class).resolveType(String.class)); in testWhere_rawClassSelfMapping() 77 assertEquals(t, resolver.where(t, t).resolveType(t)); in testWhere_wildcardSelfMapping() 92 assertEquals(t2, new TypeResolver().where(t1, t2).resolveType(t1)); in testWhere_recursiveMapping() 99 .resolveType(t)); in testWhere_genericArrayMapping() [all …]
|
D | TypeTokenResolutionTest.java | 123 ParameterizedType resolved = (ParameterizedType) typeResolver.resolveType( 143 TypeToken.of(IntegerStringFunction.class).resolveType(fType) 149 TypeToken.of(IntegerStringFunction.class).resolveType(predicateParameterType) 232 TypeToken.of(ParameterizedOuter.class).resolveType(fieldType).getType()); 238 assertEquals(String.class, TypeToken.of(this.getClass()).resolveType(String.class).getType()); 241 .resolveType(Iterable.class.getTypeParameters()[0]).getType()); 244 .resolveType(Iterable.class.getTypeParameters()[0]).getType()); 246 TypeToken.of(this.getClass()).resolveType(null); 264 assertEquals(String.class, TypeToken.of(context).resolveType(keyType).getType()); 266 TypeToken.of(context).resolveType(valueType).getType()); [all …]
|
D | TypeTokenTest.java | 131 .resolveType(getFromList.getGenericReturnType()); in testResolveType() 139 f.resolveType(Function.class.getTypeParameters()[0]).getType()); in testResolveType_fromTypeVariable() 141 f.resolveType(Function.class.getTypeParameters()[1]).getType()); in testResolveType_fromTypeVariable() 143 f.resolveType(Iterable.class.getTypeParameters()[0]).getType()); in testResolveType_fromTypeVariable() 150 e.resolveType(Iterable.class.getTypeParameters()[0]).getType()); in testResolveType_fromTypeVariable_onlyDirectBoundsAreUsed() 158 wildcardType.resolveType(Iterable.class.getTypeParameters()[0]).getType()); in testResolveType_fromWildcard() 1194 TypeToken<?> parameterType = type.resolveType( in testWildcardCaptured_methodParameter_upperBound() 1203 TypeToken<?> matrixType = type.resolveType( in testWildcardCaptured_field_upperBound()
|
/external/guice/core/src/com/google/inject/ |
D | TypeLiteral.java | 181 return TypeLiteral.get(resolveType(toResolve)); in resolve() 184 Type resolveType(Type toResolve) { in resolveType() method in TypeLiteral 197 Type newComponentType = resolveType(componentType); in resolveType() 205 Type newOwnerType = resolveType(ownerType); in resolveType() 210 Type resolvedTypeArgument = resolveType(args[t]); in resolveType() 230 Type lowerBound = resolveType(originalLowerBound[0]); in resolveType() 235 Type upperBound = resolveType(originalUpperBound[0]); in resolveType()
|
/external/guice/core/test/com/google/inject/ |
D | TypeLiteralTypeResolutionTest.java | 249 assertEquals(String.class, typeResolver.resolveType(mapK)); in testResolve() 252 assertEquals(String.class, typeResolver.resolveType(mapK)); in testResolve() 257 assertEquals(String.class, typeResolver.resolveType(mapK)); in testResolve() 260 assertEquals(String.class, typeResolver.resolveType(mapK)); in testResolve() 263 assertEquals(String.class, typeResolver.resolveType(mapK)); in testResolve() 264 assertEquals(String.class, typeResolver.resolveType(hashMapK)); in testResolve() 265 assertEquals(entryStringInteger, typeResolver.resolveType(setEntryKV)); in testResolve()
|
/external/guava/guava/src/com/google/common/reflect/ |
D | TypeToken.java | 144 this.runtimeType = of(declaringClass).resolveType(captured).runtimeType; in TypeToken() 220 return new SimpleTypeToken<T>(resolver.resolveType(runtimeType)); in where() 249 public final TypeToken<?> resolveType(Type type) { in resolveType() method in TypeToken 255 return of(resolver.resolveType(type)); in resolveType() 260 types[i] = resolveType(types[i]).getType(); in resolveInPlace() 266 TypeToken<?> supertype = resolveType(type); in resolveSupertype() 499 return resolveType(super.getGenericReturnType()).getType(); in method() 526 return resolveType(super.getGenericReturnType()).getType(); 718 return of(new TypeResolver().resolveType(runtimeType)); 829 Type fromTypeArg = fromTypeToken.resolveType(typeParams[i]).runtimeType; [all …]
|
D | TypeResolver.java | 157 public Type resolveType(Type type) { in resolveType() method in TypeResolver 176 result[i] = resolveType(types[i]); in resolveTypes() 190 Type resolvedComponentType = resolveType(componentType); in resolveGenericArrayType() 196 Type resolvedOwner = (owner == null) ? null : resolveType(owner); in resolveParameterizedType() 197 Type resolvedRawType = resolveType(type.getRawType()); in resolveParameterizedType() 304 return new TypeResolver(forDependants).resolveType(type); in resolveInternal()
|
/external/guava/guava-testlib/src/com/google/common/testing/ |
D | DummyProxy.java | 80 return dummyReturnValue(interfaceType.resolveType(method.getGenericReturnType())); in handleInvocation()
|
D | NullPointerTester.java | 401 TypeToken<?> convertFromType = type.resolveType( in getDefaultValue() 403 TypeToken<?> convertToType = type.resolveType( in getDefaultValue()
|
D | FreshValueGenerator.java | 188 TypeToken<?> paramType = type.resolveType(typeVars[i]); in generate()
|