Lines Matching refs:resolver
98 TypeLiteral<?> resolver = TypeLiteral.get(arrayListOfString);
100 resolver.getReturnType(List.class.getMethod("subList", int.class, int.class)).getType());
102 resolver.getParameterTypes(Collection.class.getMethod("add", Object.class)));
106 TypeLiteral<?> resolver = TypeLiteral.get(arrayListOfString);
108 resolver.getSupertype(Collection.class).getType());
110 resolver.getSupertype(Iterable.class).getType());
112 resolver.getSupertype(AbstractList.class).getType());
113 assertEquals(Object.class, resolver.getSupertype(Object.class).getType());
117 TypeLiteral<?> resolver = TypeLiteral.get(MyInteger.class);
118 assertEquals(MyInteger.class, resolver.getParameterTypes(comparableCompareTo).get(0).getType());
131 TypeLiteral<?> resolver = TypeLiteral.get(hasGenericFieldsOfShort);
132 assertEquals(listOf(Short.class), resolver.getFieldType(list).getType());
133 assertEquals(Short.class, resolver.getFieldType(instance).getType());
142 TypeLiteral<?> resolver = TypeLiteral.get(hasGenericConstructorOfShort);
144 resolver.getParameterTypes(newHasGenericConstructor).get(0).getType());
164 TypeLiteral<?> resolver = TypeLiteral.get(hasArrayOfShort);
165 assertEquals(arrayOf(Short.class), resolver.getReturnType(getArray).getType());
166 assertEquals(setOf(arrayOf(Short.class)), resolver.getReturnType(getSetOfArray).getType());
175 TypeLiteral<?> resolver = TypeLiteral.get(hasRelatedOfString);
176 assertEquals(String.class, resolver.getParameterTypes(echo).get(0).getType());
177 assertEquals(String.class, resolver.getReturnType(echo).getType());
186 TypeLiteral<?> resolver = TypeLiteral.get(
189 resolver.getReturnType(HasLists.class.getMethod("listS")).getType());
191 resolver.getReturnType(HasLists.class.getMethod("listT")).getType());
201 TypeLiteral<?> resolver = TypeLiteral.get(arrayListOfString);
204 resolver.getExceptionTypes(stringIndexOf);
211 resolver.getParameterTypes(stringIndexOf);
218 resolver.getReturnType(stringIndexOf);
225 resolver.getSupertype(String.class);
232 resolver.getExceptionTypes(newString);
239 resolver.getParameterTypes(newString);