/libcore/luni/src/test/java/tests/api/java/lang/reflect/ |
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...] |
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...] |
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...] |
/external/mockito/src/org/mockito/internal/util/reflection/ |
GenericMetadataSupport.java | 65 protected Map<TypeVariable, Type> contextualActualTypeParameters = new HashMap<TypeVariable, Type>();
73 TypeVariable[] typeParameters = ((Class<?>) parameterizedType.getRawType()).getTypeParameters();
76 TypeVariable typeParameter = typeParameters[i];
88 protected void registerTypeParametersOn(TypeVariable[] typeParameters) {
89 for (TypeVariable typeParameter : typeParameters) {
96 * @param typeParameter The TypeVariable parameter
97 * @return A {@link BoundedType} for easy bound information, if first bound is a TypeVariable
98 * then retrieve BoundedType of this TypeVariable
100 private BoundedType boundsOf(TypeVariable typeParameter) { [all...] |
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
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...] |
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...] |
/cts/tools/signature-tools/src/signature/converter/dex/ |
GenericSignatureParser.java | 304 SigTypeVariableDefinition typeVariable = factory.getTypeVariable(name, 320 typeVariable.setUpperBounds(bounds); 321 return typeVariable; 344 for (ITypeVariableDefinition typeVariable : declaration 346 if (variableName.equals(typeVariable.getName())) {
|
/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();
|
/cts/tools/signature-tools/src/signature/converter/doclet/ |
DocletToSigConverter.java | 81 import com.sun.javadoc.TypeVariable;
205 for (TypeVariable typeVariable : classDoc.typeParameters()) {
208 typeVariable)).getTypeVariableDefinition());
367 TypeVariable tv = type.asTypeVariable();
389 SigTypeVariableDefinition typeVariable = pool.getTypeVariable(name,
398 currentTypeVariableDefinition = typeVariable;
406 typeVariable.setUpperBounds(upperBounds);
408 return new SigTypeVariableReference(typeVariable);
462 for (TypeVariable typeParameter : member.typeParameters()) { [all...] |
/cts/tools/signature-tools/test/signature/converter/ |
ConvertClassTest.java | 573 ITypeVariableDefinition typeVariable = typeParameters.get(0); 574 List<ITypeReference> upperBounds = typeVariable.getUpperBounds(); 587 assertSame(typeVariable, variable.getTypeVariableDefinition()); [all...] |
/prebuilts/misc/common/ecj/ |
ecj.jar | |
/prebuilts/tools/common/easymock-tools/ |
easymock-3.1.jar | |
/prebuilts/tools/common/m2/internal/org/easymock/easymock/3.1/ |
easymock-3.1.jar | |
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/ |
org.apache.jasper_5.5.17.v201004212143.jar | |
org.eclipse.jdt.core_3.6.2.v_A76_R36x.jar | |
/libcore/benchmarks/libs/ |
caliper.jar | |
/prebuilts/sdk/tools/lib/ |
lombok-ast-0.2.jar | |
/prebuilts/tools/common/lombok-ast/ |
lombok-ast-0.2.1.jar | |
lombok-ast-0.2.jar | |
/prebuilts/tools/common/m2/repository/com/android/tools/external/lombok/lombok-ast/0.2.1/ |
lombok-ast-0.2.1.jar | |
/external/droiddriver/libs/ |
guava-13.0.jar | |
/prebuilts/devtools/tools/lib/ |
guava-13.0.1.jar | |
/prebuilts/tools/common/guava-tools/ |
guava-13.0.1.jar | |
/prebuilts/tools/common/m2/repository/com/google/guava/guava/13.0.1/ |
guava-13.0.1.jar | |
/prebuilts/tools/common/gradle-plugins/repository/com/google/guava/guava/14.0/ |
guava-14.0.jar | |