/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...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/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...] |
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...] |
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...] |
/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...] |
/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/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())) {
|
/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...] |
/frameworks/testing/espresso/libs/ |
dagger-compiler-1.2.1.jar | |
/prebuilts/tools/common/m2/repository/org/eclipse/jdt/core/compiler/ecj/4.2.2/ |
ecj-4.2.2.jar | |
/prebuilts/misc/common/ecj/ |
ecj.jar | |
/prebuilts/tools/common/easymock-tools/ |
easymock-3.1.jar | |
/prebuilts/tools/common/m2/repository/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 | |
/prebuilts/tools/common/m2/repository/com/thoughtworks/qdox/qdox/1.12/ |
qdox-1.12.jar | |
/prebuilts/tools/common/m2/repository/com/android/tools/external/propertysheet/1.0/ |
propertysheet-1.0.jar | |
/prebuilts/eclipse/maven/apache-maven-3.2.1/lib/ |
sisu-guice-3.1.3-no_aop.jar | |
/libcore/benchmarks/libs/ |
caliper.jar | |
/prebuilts/eclipse/mavenplugins/tycho/tycho-dependencies-m2repo/org/eclipse/tycho/org.eclipse.jdt.core/3.9.1.v20130905-0837/ |
org.eclipse.jdt.core-3.9.1.v20130905-0837.jar | |
/prebuilts/eclipse/mavenplugins/tycho/tycho-dependencies-m2repo/org/sonatype/sisu/sisu-guice/2.1.7/ |
sisu-guice-2.1.7-noaop.jar | |
/prebuilts/tools/common/lombok-ast/ |
lombok-ast-0.2.2.jar | |
/prebuilts/tools/common/m2/repository/com/android/tools/external/lombok/lombok-ast/0.2.2/ |
lombok-ast-0.2.2.jar | |