Searched refs:TypeCapture (Results 1 – 9 of 9) sorted by relevance
44 Type t1 = new TypeCapture<T>() {}.capture(); in testWhere_indirectMapping()58 Type t = new TypeCapture<List<T>>() {}.capture(); in testWhere_parameterizedSelfMapping()64 Type t = new TypeCapture<T[]>() {}.capture(); in testWhere_genericArraySelfMapping()90 Type t1 = new TypeCapture<T1>() {}.capture(); in testWhere_recursiveMapping()91 Type t2 = new TypeCapture<T2>() {}.capture(); in testWhere_recursiveMapping()96 Type t = new TypeCapture<T>() {}.capture(); in testWhere_genericArrayMapping()98 .where(new TypeCapture<T[]>() {}.capture(), String[].class) in testWhere_genericArrayMapping()103 Type t = new TypeCapture<T>() {}.capture(); in testWhere_primitiveArrayMapping()105 new TypeResolver().where(new TypeCapture<T[]>() {}.capture(), int[].class).resolveType(t)); in testWhere_primitiveArrayMapping()109 Type t = new TypeCapture<T>() {}.capture(); in testWhere_parameterizedTypeMapping()[all …]
137 TypeToken<?> f = TypeToken.of(new TypeCapture<F>() {}.capture()); in testResolveType_fromTypeVariable()148 TypeToken<?> e = TypeToken.of(new TypeCapture<E>() {}.capture()); in testResolveType_fromTypeVariable_onlyDirectBoundsAreUsed()155 new TypeCapture<Comparable<? extends Iterable<String>>>() {}.capture(); in testResolveType_fromWildcard()248 TypeToken<?>.TypeSet types = TypeToken.of(new TypeCapture<B>() {}.capture()).getTypes(); in testGetTypes_ignoresTypeVariablesByDefault()263 TypeToken<?>.TypeSet types = TypeToken.of(new TypeCapture<B>() {}.capture()).getTypes(); in testGetTypes_rawTypes_ignoresTypeVariablesByDefault()276 TypeToken<?>.TypeSet types = TypeToken.of(new TypeCapture<A>() {}.capture()).getTypes(); in testGetTypes_manyBounds()408 TypeToken.of(new TypeCapture<T>() {}.capture()).getGenericSuperclass()); in testGetGenericSuperclass_typeVariable_unbounded()415 TypeToken.of(new TypeCapture<T>() {}.capture()).getGenericSuperclass()); in testGetGenericSuperclass_typeVariable_boundIsClass()422 TypeToken.of(new TypeCapture<T>() {}.capture()).getGenericSuperclass()); in testGetGenericSuperclass_typeVariable_boundIsFBoundedClass()428 assertNull(TypeToken.of(new TypeCapture<T>() {}.capture()).getGenericSuperclass()); in testGetGenericSuperclass_typeVariable_boundIsInterface()[all …]
50 new TypeCapture<Map.Entry<String, Integer>>() {}.capture(); in testNewParameterizedType_ownerTypeImplied()59 new TypeCapture<HashMap<String, int[][]>>() {}.capture(); in testNewParameterizedType()98 new TypeCapture<Map.Entry<String, int[][]>>() {}.capture(); in testNewParameterizedTypeWithOwner()104 .addEqualityGroup(new TypeCapture<Map.Entry<String, String>>() {}.capture()) in testNewParameterizedTypeWithOwner()105 .addEqualityGroup(new TypeCapture<Map<String, Integer>>() {}.capture()) in testNewParameterizedTypeWithOwner()151 Type jvmType1 = new TypeCapture<List<String>[]>() {}.capture(); in testNewArrayType()154 Type jvmType2 = new TypeCapture<List[]>() {}.capture(); in testNewArrayType()160 assertEquals(new TypeCapture<List<String>>() {}.capture(), in testNewArrayType()167 Type jvmType = new TypeCapture<int[][]>() {}.capture(); in testNewArrayTypeOfArray()176 Type jvmType = new TypeCapture<int[]>() {}.capture(); in testNewArrayType_primitive()
49 Type type = new TypeCapture<T>() {}.capture(); in testVisitTypeVariable()65 Type type = new TypeCapture<T[]>() {}.capture(); in testVisitGenericArrayType()73 Type type = new TypeCapture<Iterable<T>>() {}.capture(); in testVisitParameterizedType()81 Type type = new TypeCapture<EnumSet<E>>() {}.capture(); in testVisitRecursiveTypeBounds()
106 return new Type[]{new TypeCapture<P>() {}.capture()}; in parameterizedType()109 return new TypeCapture<O>() {}.capture(); in parameterizedType()112 return new TypeCapture<T>() {}.capture(); in parameterizedType()
29 abstract class TypeCapture<T> { class
42 public abstract class TypeParameter<T> extends TypeCapture<T> {
586 } else if (new TypeCapture<int[]>() {}.capture() instanceof Class) {
95 public abstract class TypeToken<T> extends TypeCapture<T> implements Serializable {