Home | History | Annotate | Download | only in reflect

Lines Matching defs:typeVariable

23 import java.lang.reflect.TypeVariable;
67 TypeVariable<Class> typeVariable = getTypeParameter(clazz);
73 assertEquals(typeVariable, parameterType);
78 TypeVariable<Class> typeVariable = getTypeParameter(clazz);
84 assertNotEquals(typeVariable, parameterType);
85 assertInstanceOf(TypeVariable.class, parameterType);
86 assertEquals(method, ((TypeVariable)parameterType).getGenericDeclaration());
91 TypeVariable<Class> typeVariable = getTypeParameter(clazz);
97 assertNotEquals(typeVariable, parameterType);
98 assertInstanceOf(TypeVariable.class, parameterType);
99 assertEquals(method, ((TypeVariable)parameterType).getGenericDeclaration());
111 TypeVariable<?>[] typeParameters = clazz.getTypeParameters();
113 TypeVariable<?> typeVariableT = typeParameters[0];
116 TypeVariable<?> typeVariableS = typeParameters[1];
148 TypeVariable<?>[] typeParameters = clazz.getTypeParameters();
150 TypeVariable<?> typeVariableT = typeParameters[0];
153 TypeVariable<?> typeVariableS = typeParameters[1];
164 TypeVariable<Class> subTypeVariable = getTypeParameter(clazz);
170 TypeVariable<Class> superTypeParameter = getTypeParameter((Class<?>)parameterizedSuperType.getRawType());
171 TypeVariable<Class> typeParameter = getTypeParameter(GenericType.class);
178 assertInstanceOf(TypeVariable.class, actualTypeArguments[0]);
179 TypeVariable actualSuperTypeVariable = (TypeVariable) actualTypeArguments[0];
185 TypeVariable<Class> typeVariable = getTypeParameter(clazz);
198 assertEquals(typeVariable, genericParameterTypes[0]);
199 assertInstanceOf(TypeVariable.class, genericParameterTypes[0]);
200 TypeVariable<?> constructorTypeVariable = (TypeVariable<?>) genericParameterTypes[0];
207 assertEquals(typeVariable, methodParameterTypes[0]);
208 assertInstanceOf(TypeVariable.class, methodParameterTypes[0]);
209 TypeVariable<?> methodTypeVariable = (TypeVariable<?>) methodParameterTypes[0];
215 TypeVariable<Class> typeVariable = getTypeParameter(clazz);
219 assertEquals(typeVariable, genericExceptionTypes[0]);
230 assertEquals(typeVariable, exceptionTypes[0]);
231 assertInstanceOf(TypeVariable.class, exceptionTypes[0]);
232 TypeVariable<?> methodTypeVariable = (TypeVariable<?>) exceptionTypes[0];