/external/guava/guava/src/com/google/common/reflect/ |
TypeParameter.java | 24 import java.lang.reflect.TypeVariable; 44 final TypeVariable<?> typeVariable; 48 checkArgument(type instanceof TypeVariable, "%s should be a type variable.", type); 49 this.typeVariable = (TypeVariable<?>) type; 53 return typeVariable.hashCode(); 59 return typeVariable.equals(that.typeVariable); 65 return typeVariable.toString() [all...] |
Types.java | 43 import java.lang.reflect.TypeVariable; 151 * Returns a new {@link TypeVariable} that belongs to {@code declaration} with 154 static <D extends GenericDeclaration> TypeVariable<D> newArtificialTypeVariable( 193 @Override void visitTypeVariable(TypeVariable<?> t) { 324 private static <D extends GenericDeclaration> TypeVariable<D> newTypeVariableImpl( 329 TypeVariable<D> typeVariable = Reflection.newProxy( 330 TypeVariable.class, new TypeVariableInvocationHandler(typeVariableImpl)); 331 return typeVariable; 337 * <p>Java 8 introduced a new method {@code getAnnotatedBounds()} in the {@link TypeVariable} [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...] |
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ |
ReflectionTypeParameter.java | 28 import java.lang.reflect.TypeVariable; 39 private TypeVariable typeVariable; 43 public ReflectionTypeParameter(TypeVariable typeVariable, boolean declaredOnClass, TypeSolver typeSolver) { 44 GenericDeclaration genericDeclaration = typeVariable.getGenericDeclaration(); 52 this.typeVariable = typeVariable; 78 int result = typeVariable.hashCode(); 85 return typeVariable.getName() [all...] |
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/reflectionmodel/ |
ReflectionInterfaceDeclarationTest.java | 79 ResolvedTypeVariable typeVariable = new ResolvedTypeVariable(list.getTypeParameters().get(0)); 80 assertEquals(new ReferenceTypeImpl(new ReflectionInterfaceDeclaration(Collection.class, typeResolver), ImmutableList.of(typeVariable), typeResolver), ancestors.get("java.util.Collection")); 82 assertEquals(new ReferenceTypeImpl(new ReflectionInterfaceDeclaration(Iterable.class, typeResolver), ImmutableList.of(typeVariable), typeResolver), ancestors.get("java.lang.Iterable"));
|
ReflectionClassDeclarationTest.java | 293 ResolvedTypeVariable typeVariable = new ResolvedTypeVariable(arraylist.getTypeParameters().get(0)); 295 assertEquals(new ReferenceTypeImpl(new ReflectionClassDeclaration(AbstractCollection.class, typeResolver), ImmutableList.of(typeVariable), typeResolver), ancestors.get("java.util.AbstractCollection")); 296 assertEquals(new ReferenceTypeImpl(new ReflectionInterfaceDeclaration(List.class, typeResolver), ImmutableList.of(typeVariable), typeResolver), ancestors.get("java.util.List")); 298 assertEquals(new ReferenceTypeImpl(new ReflectionInterfaceDeclaration(Collection.class, typeResolver), ImmutableList.of(typeVariable), typeResolver), ancestors.get("java.util.Collection")); 299 assertEquals(new ReferenceTypeImpl(new ReflectionClassDeclaration(AbstractList.class, typeResolver), ImmutableList.of(typeVariable), typeResolver), ancestors.get("java.util.AbstractList")); 301 assertEquals(new ReferenceTypeImpl(new ReflectionInterfaceDeclaration(Iterable.class, typeResolver), ImmutableList.of(typeVariable), typeResolver), ancestors.get("java.lang.Iterable")); [all...] |
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/reflection/annotation/ |
AnnotationTypeUtil.java | 28 import javax.lang.model.type.TypeVariable; 81 final TypeVariable typeVariable = (TypeVariable) typeMirror; 82 final String name = typeVariable.toString();
|
/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 assertEquals("T", typeVariable.toString()); 39 assertEquals("T", typeVariable.getTypeName()); 40 Type[] bounds = typeVariable.getBounds(); 51 TypeVariable<Method>[] typeParameters = method.getTypeParameters() [all...] |
/external/mockito/src/main/java/org/mockito/internal/util/reflection/ |
GenericMetadataSupport.java | 63 protected Map<TypeVariable<?>, Type> contextualActualTypeParameters = new HashMap<TypeVariable<?>, Type>(); 98 if (type instanceof TypeVariable) { 100 * If type is a TypeVariable, then it is needed to gather data elsewhere. Usually TypeVariables are declared 113 TypeVariable<?>[] typeParameters = ((Class<?>) parameterizedType.getRawType()).getTypeParameters(); 116 TypeVariable<?> typeParameter = typeParameters[i]; 128 protected void registerTypeParametersOn(TypeVariable<?>[] typeParameters) { 129 for (TypeVariable<?> type : typeParameters) { 134 private void registerTypeVariableIfNotPresent(TypeVariable<?> typeVariable) { [all...] |
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/model/typesystem/ |
ReferenceTypeTest.java | [all...] |
/prebuilts/tools/common/m2/repository/com/jakewharton/butterknife/7.0.1/ |
butterknife-7.0.1.jar | |
/prebuilts/tools/common/m2/repository/com/jakewharton/butterknife-compiler/8.4.0/ |
butterknife-compiler-8.4.0.jar | |
/prebuilts/tools/common/m2/repository/com/squareup/javapoet/1.2.0/ |
javapoet-1.2.0.jar | |
/prebuilts/tools/common/m2/repository/com/squareup/javapoet/1.7.0/ |
javapoet-1.7.0.jar | |
/prebuilts/tools/common/m2/repository/com/squareup/javapoet/1.8.0/ |
javapoet-1.8.0.jar | |
/external/mockito/lib/ |
byte-buddy-1.7.9.jar | |
/prebuilts/tools/common/m2/repository/net/bytebuddy/byte-buddy/1.6.5/ |
byte-buddy-1.6.5.jar | |
/prebuilts/tools/common/m2/repository/net/bytebuddy/byte-buddy/1.4.33/ |
byte-buddy-1.4.33.jar | |
/prebuilts/tools/common/m2/repository/net/bytebuddy/byte-buddy/1.5.5/ |
byte-buddy-1.5.5.jar | |
/prebuilts/tools/common/m2/repository/nl/jqno/equalsverifier/equalsverifier/2.1.5/ |
equalsverifier-2.1.5.jar | |
/prebuilts/tools/common/m2/repository/com/squareup/retrofit2/retrofit/2.1.0/ |
retrofit-2.1.0.jar | |
/prebuilts/tools/common/m2/repository/com/squareup/dagger/dagger-compiler/1.2.2/ |
dagger-compiler-1.2.2.jar | |