HomeSort by relevance Sort by last modified time
    Searched refs:typeVariable (Results 1 - 25 of 135) sorted by null

1 2 3 4 5 6

  /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...]
TypeResolver.java 32 import java.lang.reflect.TypeVariable;
75 * <p>For example, if {@code formal} is a {@code TypeVariable T}, and {@code actual} is {@code
107 @Override void visitTypeVariable(TypeVariable<?> typeVariable) {
108 mappings.put(new TypeVariableKey(typeVariable), to);
159 if (type instanceof TypeVariable) {
160 return typeTable.resolve((TypeVariable<?>) type);
213 /** A TypeTable maintains mapping from {@link TypeVariable} to types. */
238 final Type resolve(final TypeVariable<?> var) {
242 TypeVariable<?> intermediateVar, TypeTable forDependent)
    [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/harmony-tests/src/test/java/org/apache/harmony/tests/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...]
  /external/guava/guava-tests/test/com/google/common/reflect/
TypeParameterTest.java 25 import java.lang.reflect.TypeVariable;
35 TypeVariable<?> variable = new TypeParameter<T>() {}.typeVariable;
36 TypeVariable<?> expected = TypeParameterTest.class
TypeTokenResolutionTest.java 29 import java.lang.reflect.TypeVariable;
450 TypeVariable<?> typeVariable = (TypeVariable<?>)
452 assertEquals(String.class, typeVariable.getBounds()[0]);
456 TypeVariable<?> typeVariable = (TypeVariable<?>)
458 assertEquals(Types.newParameterizedType(Enum.class, typeVariable),
459 typeVariable.getBounds()[0])
    [all...]
TypesTest.java 34 import java.lang.reflect.TypeVariable;
288 static TypeVariable<?> getTypeVariable(String methodName) throws Exception {
293 return (TypeVariable<?>) parameterType.getActualTypeArguments()[0];
298 TypeVariable<?> noBoundJvmType =
300 TypeVariable<?> objectBoundJvmType =
302 TypeVariable<?> upperBoundJvmType =
304 TypeVariable<?> noBound = withBounds(noBoundJvmType);
305 TypeVariable<?> objectBound = withBounds(objectBoundJvmType, Object.class);
306 TypeVariable<?> upperBound = withBounds(
336 private static <D extends GenericDeclaration> TypeVariable<D> withBounds
    [all...]
  /external/dagger2/compiler/src/main/java/dagger/internal/codegen/writer/
InterfaceWriter.java 35 public void addTypeVariable(TypeVariableName typeVariable) {
36 this.typeVariables.add(typeVariable);
  /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();
  /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();
  /prebuilts/tools/common/m2/repository/com/jakewharton/butterknife/7.0.1/
butterknife-7.0.1.jar 
  /external/guice/core/src/com/google/inject/internal/
MoreTypes.java 36 import java.lang.reflect.TypeVariable;
142 } else if (type instanceof TypeVariable){
202 } else if (type instanceof TypeVariable) {
256 } else if (a instanceof TypeVariable) {
257 if (!(b instanceof TypeVariable)) {
260 TypeVariable<?> va = (TypeVariable) a;
261 TypeVariable<?> vb = (TypeVariable) b;
318 public static Type resolveTypeVariable(Type type, Class<?> rawType, TypeVariable unknown)
    [all...]
  /prebuilts/tools/common/m2/repository/nl/jqno/equalsverifier/equalsverifier/2.1.5/
equalsverifier-2.1.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/org/eclipse/jdt/core/compiler/ecj/4.4.2/
ecj-4.4.2.jar 
  /prebuilts/tools/common/offline-m2/org/eclipse/jdt/core/compiler/ecj/4.4.2/
ecj-4.4.2.jar 
  /prebuilts/tools/common/m2/repository/com/squareup/dagger/dagger-compiler/1.2.2/
dagger-compiler-1.2.2.jar 
  /prebuilts/devtools/tools/lib/
ecj-4.4.jar 
  /prebuilts/tools/common/m2/repository/org/eclipse/jdt/core/compiler/ecj/4.4/
ecj-4.4.jar 
  /prebuilts/tools/common/offline-m2/org/eclipse/jdt/core/compiler/ecj/4.4/
ecj-4.4.jar 

Completed in 806 milliseconds

1 2 3 4 5 6