/libcore/luni/src/main/java/org/apache/harmony/luni/lang/reflect/ |
ListOfVariables.java | 19 import java.lang.reflect.TypeVariable; 23 public static final TypeVariable[] EMPTY = new ImplForVariable[0]; 25 ArrayList<TypeVariable<?>> array = new ArrayList<TypeVariable<?>>(); 27 void add (TypeVariable<?> elem) { 31 TypeVariable<?>[] getArray() { 32 TypeVariable<?>[] a = new TypeVariable[array.size()];
|
ImplForVariable.java | 23 import java.lang.reflect.TypeVariable; 26 public final class ImplForVariable<D extends GenericDeclaration> implements TypeVariable<D> { 35 if(!(o instanceof TypeVariable)) { 38 TypeVariable<?> that = (TypeVariable<?>) o; 71 static TypeVariable findFormalVar(GenericDeclaration layer, String name) { 72 TypeVariable[] formalVars = layer.getTypeParameters(); 73 for (TypeVariable var : formalVars) { 109 TypeVariable var;
|
GenericSignatureParser.java | 24 import java.lang.reflect.TypeVariable; 71 public TypeVariable[] formalTypeParameters;
|
/libcore/luni/src/main/java/java/lang/reflect/ |
GenericDeclaration.java | 34 TypeVariable<?>[] getTypeParameters();
|
TypeVariable.java | 29 public interface TypeVariable<D extends GenericDeclaration> extends Type {
|
AccessibleObject.java | 276 if (obj instanceof TypeVariable) { 277 sb.append(((TypeVariable)obj).getName());
|
Constructor.java | 59 TypeVariable<Constructor<T>>[] formalTypeParameters; 114 public TypeVariable<Constructor<T>>[] getTypeParameters() {
|
/libcore/luni/src/test/java/tests/api/java/lang/reflect/ |
GenericReflectionTestsBase.java | 20 import java.lang.reflect.TypeVariable; 33 public TypeVariable<Method> getTypeParameter(Method method) { 34 TypeVariable<Method>[] typeParameters = method.getTypeParameters(); 36 TypeVariable<Method> typeParameter = typeParameters[0]; 48 public TypeVariable<Class> getTypeParameter(Class<?> clazz) { 49 TypeVariable[] typeParameters = clazz.getTypeParameters(); 51 TypeVariable<Class> typeVariable = typeParameters[0]; 52 assertEquals(clazz, typeVariable.getGenericDeclaration()); 53 assertEquals("T", typeVariable.getName()) [all...] |
GenericMethodsTests.java | 22 import java.lang.reflect.TypeVariable; 56 TypeVariable<Method> typeParameter = getTypeParameter(method); 67 TypeVariable<Method> typeParameter = getTypeParameter(method); 71 assertInstanceOf(TypeVariable.class, genericParameterType); 72 assertEquals(method, ((TypeVariable<?>) genericParameterType).getGenericDeclaration()); 80 TypeVariable<Method> typeParameter = getTypeParameter(method); 83 assertInstanceOf(TypeVariable.class, genericReturnType); 84 assertEquals(method, ((TypeVariable<?>) genericReturnType).getGenericDeclaration()); 111 TypeVariable<Method> typeParameter0 = method0.getTypeParameters()[0]; 114 TypeVariable<Method> typeParameter1 = method1.getTypeParameters()[0] [all...] |
TypeVariableTest.java | 23 import java.lang.reflect.TypeVariable; 33 TypeVariable[] typeParameters = clazz.getTypeParameters(); 35 TypeVariable<Class> typeVariable = typeParameters[0]; 36 assertEquals(clazz, typeVariable.getGenericDeclaration()); 37 assertEquals("T", typeVariable.getName()); 38 Type[] bounds = typeVariable.getBounds(); 49 TypeVariable<Method>[] typeParameters = method.getTypeParameters(); 51 TypeVariable<Method> typeVariable = typeParameters[0] [all...] |
BoundedGenericMethodsTests.java | 21 import java.lang.reflect.TypeVariable; 51 TypeVariable<Method> typeParameter = getTypeParameter(method); 69 TypeVariable<Method> typeParameter = getTypeParameter(method); 73 assertTrue(genericParameterType instanceof TypeVariable); 74 TypeVariable<?> typeVariable = (TypeVariable<?>) genericParameterType; 75 assertEquals(method, typeVariable.getGenericDeclaration()); 77 Type[] paramBounds = typeVariable.getBounds(); 87 assertTrue(genericReturnType instanceof TypeVariable); [all...] |
GenericArrayTypeTest.java | 23 import java.lang.reflect.TypeVariable; 41 assertInstanceOf(TypeVariable.class, componentType); 42 TypeVariable<?> componentTypeVariable = (TypeVariable<?>) componentType;
|
GenericSignatureFormatErrorTest.java | 15 import java.lang.reflect.TypeVariable; 80 TypeVariable[] tvs = clazz.getTypeParameters(); 82 // for (TypeVariable tv : tvs) {
|
WildcardTypeTest.java | 23 import java.lang.reflect.TypeVariable; 58 TypeVariable<Method> typeParameter = getTypeParameter(method); 112 assertTrue(genericReturnType instanceof TypeVariable); 114 TypeVariable<Method> returnTypeVariable = (TypeVariable<Method>) genericReturnType;
|
ConstructorTest.java | 28 import java.lang.reflect.TypeVariable; 338 ((TypeVariable)types[0]).getName()); 340 ((TypeVariable)types[1]).getName()); 370 ((TypeVariable)types[0]).getName());
|
MethodTest.java | 29 import java.lang.reflect.TypeVariable; 464 assertTrue(genericExceptionTypes[0] instanceof TypeVariable<?>); 466 TypeVariable<Class<ExceptionTest<?>>> tv = 467 (TypeVariable<Class<ExceptionTest<?>>>) genericExceptionTypes[0]; 479 assertTrue(returnType instanceof TypeVariable<?>); 481 TypeVariable<Class<ExceptionTest<?>>> tv = 482 (TypeVariable<Class<ExceptionTest<?>>>) returnType; [all...] |
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
OldGenericTypesTest.java | 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) [all...] |
GenericExceptionsTest.java | 23 import java.lang.reflect.TypeVariable; 56 TypeVariable typeVariable = getOnlyValue(constructor.getGenericExceptionTypes(), 57 TypeVariable.class); 58 assertEquals("T", typeVariable.getName()); 59 assertEquals(Arrays.<Type>asList(Throwable.class), Arrays.asList(typeVariable.getBounds())); 64 TypeVariable typeVariable = getOnlyValue(method.getGenericExceptionTypes(), 65 TypeVariable.class); 66 assertEquals("T", typeVariable.getName()) [all...] |
OldGenericReflectionCornerCases.java | 22 import java.lang.reflect.TypeVariable; 43 TypeVariable<?>[] typeParameters = clazz.getTypeParameters(); 45 TypeVariable<?> typeParameter = typeParameters[0]; 86 TypeVariable<?>[] typeParameters = clazz.getTypeParameters(); 88 TypeVariable<?> typeParameter = typeParameters[0]; 131 TypeVariable<?>[] typeParameters = clazz.getTypeParameters(); 133 TypeVariable<?> typeParameter = typeParameters[0]; 183 TypeVariable<?>[] typeParameters = clazz.getTypeParameters(); 185 TypeVariable<?> typeParameter = typeParameters[0];
|
ClassLoaderReflectionTest.java | 24 import java.lang.reflect.TypeVariable; 86 TypeVariable<? extends Class<?>>[] typeVariables = cClass.getTypeParameters(); 159 private void assertTypeVariable(TypeVariable actual, String name, Type... bounds) {
|
ReflectionTest.java | 26 import java.lang.reflect.TypeVariable; 147 TypeVariable t = C.class.getDeclaredMethod("methodFour", Set.class).getTypeParameters()[0]; 153 assertEquals("T", ((TypeVariable) comparableT.getActualTypeArguments()[0]).getName());
|
/external/junit/src/org/junit/runners/model/ |
NoGenericTypeParametersValidator.java | 7 import java.lang.reflect.TypeVariable; 24 if (type instanceof TypeVariable<?>) {
|
/external/guava/guava-tests/test/com/google/common/collect/ |
FauxveridesTest.java | 33 import java.lang.reflect.TypeVariable; 209 TypeSignature(TypeVariable<Method>[] parameters) { 212 new Function<TypeVariable<?>, TypeParameterSignature>() { 214 public TypeParameterSignature apply(TypeVariable<?> from) { 244 TypeParameterSignature(TypeVariable<?> typeParameter) {
|
/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/utils/reflect/ |
ReflectionUtils.java | 23 import java.lang.reflect.TypeVariable; 101 // TypeVariable 102 TypeVariable<?> typeVariable = (TypeVariable<?>) type; 103 return typeVariable.getName();
|
/dalvik/tests/031-class-attributes/src/ |
ClassAttrs.java | 9 import java.lang.reflect.TypeVariable; 182 TypeVariable<Class<?>>[] typeParameters = clazz.getTypeParameters();
|