Home
last modified time | relevance | path

Searched refs:TypeVariable (Results 1 – 25 of 26) sorted by relevance

12

/external/mockito/src/main/java/org/mockito/internal/util/reflection/
DGenericMetadataSupport.java63 …protected Map<TypeVariable<?>, Type> contextualActualTypeParameters = new HashMap<TypeVariable<?>,…
98 if (type instanceof TypeVariable) { in extractRawTypeOf()
113TypeVariable<?>[] typeParameters = ((Class<?>) parameterizedType.getRawType()).getTypeParameters(); in registerTypeVariablesOn()
116 TypeVariable<?> typeParameter = typeParameters[i]; in registerTypeVariablesOn()
128 protected void registerTypeParametersOn(TypeVariable<?>[] typeParameters) { in registerTypeParametersOn()
129 for (TypeVariable<?> type : typeParameters) { in registerTypeParametersOn()
134 private void registerTypeVariableIfNotPresent(TypeVariable<?> typeVariable) { in registerTypeVariableIfNotPresent()
146 private BoundedType boundsOf(TypeVariable<?> typeParameter) { in boundsOf()
147 if (typeParameter.getBounds()[0] instanceof TypeVariable) { in boundsOf()
148 return boundsOf((TypeVariable<?>) typeParameter.getBounds()[0]); in boundsOf()
[all …]
/external/guava/guava/src/com/google/common/reflect/
DTypeResolver.java32 import java.lang.reflect.TypeVariable;
107 @Override void visitTypeVariable(TypeVariable<?> typeVariable) { in populateTypeMappings()
159 if (type instanceof TypeVariable) { in resolveType()
160 return typeTable.resolve((TypeVariable<?>) type); in resolveType()
238 final Type resolve(final TypeVariable<?> var) { in resolve()
242 TypeVariable<?> intermediateVar, TypeTable forDependent) { in resolve()
260 Type resolveInternal(TypeVariable<?> var, TypeTable forDependants) { in resolveInternal()
332 TypeVariable<?>[] vars = rawClass.getTypeParameters(); in visitParameterizedType()
342 @Override void visitTypeVariable(TypeVariable<?> t) { in visitTypeVariable()
390 if (type instanceof TypeVariable) { in capture()
[all …]
DTypeParameter.java24 import java.lang.reflect.TypeVariable;
44 final TypeVariable<?> typeVariable;
48 checkArgument(type instanceof TypeVariable, "%s should be a type variable.", type); in TypeParameter()
49 this.typeVariable = (TypeVariable<?>) type; in TypeParameter()
DTypeVisitor.java24 import java.lang.reflect.TypeVariable;
77 if (type instanceof TypeVariable) { in visit()
78 visitTypeVariable((TypeVariable<?>) type); in visit()
102 void visitTypeVariable(TypeVariable<?> t) {} in visitTypeVariable()
DInvokable.java33 import java.lang.reflect.TypeVariable;
216 @Override public final TypeVariable<?>[] getTypeParameters() { in getTypeParameters()
251 TypeVariable<?>[] typeParams = declaringClass.getTypeParameters(); in getGenericReturnType()
289 @Override public final TypeVariable<?>[] getTypeParameters() { in getTypeParameters()
290 TypeVariable<?>[] declaredByClass = getDeclaringClass().getTypeParameters(); in getTypeParameters()
291 TypeVariable<?>[] declaredByConstructor = constructor.getTypeParameters(); in getTypeParameters()
292 TypeVariable<?>[] result = in getTypeParameters()
293 new TypeVariable<?>[declaredByClass.length + declaredByConstructor.length]; in getTypeParameters()
DTypeToken.java42 import java.lang.reflect.TypeVariable;
114 checkState(!(runtimeType instanceof TypeVariable), in TypeToken()
287 if (runtimeType instanceof TypeVariable) { in getGenericSuperclass()
289 return boundAsSuperclass(((TypeVariable<?>) runtimeType).getBounds()[0]); in getGenericSuperclass()
327 if (runtimeType instanceof TypeVariable) { in getGenericInterfaces()
328 return boundsAsInterfaces(((TypeVariable<?>) runtimeType).getBounds()); in getGenericInterfaces()
378 if (runtimeType instanceof TypeVariable) { in getSupertype()
379 return getSupertypeFromUpperBounds(superclass, ((TypeVariable<?>) runtimeType).getBounds()); in getSupertype()
399 checkArgument(!(runtimeType instanceof TypeVariable), in getSubtype()
684 return !(type.runtimeType instanceof TypeVariable
[all …]
DTypes.java43 import java.lang.reflect.TypeVariable;
154 static <D extends GenericDeclaration> TypeVariable<D> newArtificialTypeVariable( in newArtificialTypeVariable()
193 @Override void visitTypeVariable(TypeVariable<?> t) { in getComponentType()
324 private static <D extends GenericDeclaration> TypeVariable<D> newTypeVariableImpl( in newTypeVariableImpl()
329 TypeVariable<D> typeVariable = Reflection.newProxy( in newTypeVariableImpl()
330 TypeVariable.class, new TypeVariableInvocationHandler(typeVariableImpl)); in newTypeVariableImpl()
446 if (obj instanceof TypeVariable) { in equals()
447 TypeVariable<?> that = (TypeVariable<?>) obj; in equals()
584 if (AnnotatedElement.class.isAssignableFrom(TypeVariable.class)) {
/external/desugar/java/com/google/devtools/common/options/
DGenericTypeHelper.java23 import java.lang.reflect.TypeVariable;
56 private static Type matchTypeVariable(Type type, TypeVariable<?> variable) { in matchTypeVariable()
59 TypeVariable<?>[] typeParameters = rawInterfaceType.getTypeParameters(); in matchTypeVariable()
88 } else if (returnType instanceof TypeVariable<?>) { in getActualReturnType()
89 TypeVariable<?> variable = (TypeVariable<?>) returnType; in getActualReturnType()
/external/guice/core/test/com/google/inject/
DTypeLiteralTest.java29 import java.lang.reflect.TypeVariable;
150 TypeVariable<Class<HasTypeParameters>>[] typeVariables in testTypeVariableWithNoBound()
156 TypeVariable<?> aTv = (TypeVariable) aTl.getType(); in testTypeVariableWithNoBound()
165 TypeVariable<Class<HasTypeParameters>>[] typeVariables in testTypeVariablesWithSingleBound()
171 TypeVariable<?> cTv = (TypeVariable) cTl.getType(); in testTypeVariablesWithSingleBound()
180 TypeVariable<Class<HasTypeParameters>>[] typeVariables in testTypeVariableWithMultipleBounds()
186 TypeVariable<?> bTv = (TypeVariable) bTl.getType(); in testTypeVariableWithMultipleBounds()
DKeyTest.java40 import java.lang.reflect.TypeVariable;
188 TypeVariable tType = (TypeVariable) listOfTType.getActualTypeArguments()[0]; in testCannotCreateKeysWithTypeVariables()
/external/guava/guava-tests/test/com/google/common/reflect/
DTypesTest.java34 import java.lang.reflect.TypeVariable;
288 static TypeVariable<?> getTypeVariable(String methodName) throws Exception { in getTypeVariable()
293 return (TypeVariable<?>) parameterType.getActualTypeArguments()[0]; in getTypeVariable()
298 TypeVariable<?> noBoundJvmType = in testNewTypeVariable()
300 TypeVariable<?> objectBoundJvmType = in testNewTypeVariable()
302 TypeVariable<?> upperBoundJvmType = in testNewTypeVariable()
304 TypeVariable<?> noBound = withBounds(noBoundJvmType); in testNewTypeVariable()
305 TypeVariable<?> objectBound = withBounds(objectBoundJvmType, Object.class); in testNewTypeVariable()
306 TypeVariable<?> upperBound = withBounds( in testNewTypeVariable()
336 private static <D extends GenericDeclaration> TypeVariable<D> withBounds( in withBounds()
[all …]
DTypeParameterTest.java25 import java.lang.reflect.TypeVariable;
35 TypeVariable<?> variable = new TypeParameter<T>() {}.typeVariable; in testCaptureTypeParameter()
36 TypeVariable<?> expected = TypeParameterTest.class in testCaptureTypeParameter()
DTypeVisitorTest.java24 import java.lang.reflect.TypeVariable;
52 @Override void visitTypeVariable(TypeVariable<?> t) {} in testVisitTypeVariable()
87 @Override void visitTypeVariable(TypeVariable<?> t) { in testVisitRecursiveTypeBounds()
106 @Override void visitTypeVariable(TypeVariable<?> t) { in visitTypeVariable()
DTypeTokenResolutionTest.java29 import java.lang.reflect.TypeVariable;
450 TypeVariable<?> typeVariable = (TypeVariable<?>)
456 TypeVariable<?> typeVariable = (TypeVariable<?>)
466 TypeVariable<?> k = (TypeVariable<?>) paramType.getActualTypeArguments()[0];
467 TypeVariable<?> v = (TypeVariable<?>) paramType.getActualTypeArguments()[1];
DInvokableTest.java31 import java.lang.reflect.TypeVariable;
74 TypeVariable<?>[] variables = in testConstructor_typeParameters()
129 TypeVariable<?>[] variables = delegate.getTypeParameters(); in testStaticMethod_typeParameters()
/external/guice/core/src/com/google/inject/internal/
DMoreTypes.java36 import java.lang.reflect.TypeVariable;
142 } else if (type instanceof TypeVariable){ in isFullySpecified()
202 } else if (type instanceof TypeVariable) { in getRawType()
256 } else if (a instanceof TypeVariable) { in equals()
257 if (!(b instanceof TypeVariable)) { in equals()
260 TypeVariable<?> va = (TypeVariable) a; in equals()
261 TypeVariable<?> vb = (TypeVariable) b; in equals()
318 public static Type resolveTypeVariable(Type type, Class<?> rawType, TypeVariable unknown) { in resolveTypeVariable()
348 private static Class<?> declaringClassOf(TypeVariable typeVariable) { in declaringClassOf()
/external/guava/guava-tests/test/com/google/common/collect/
DFauxveridesTest.java33 import java.lang.reflect.TypeVariable;
211 TypeSignature(TypeVariable<Method>[] parameters) { in TypeSignature()
214 new Function<TypeVariable<?>, TypeParameterSignature>() { in TypeSignature()
216 public TypeParameterSignature apply(TypeVariable<?> from) { in TypeSignature()
246 TypeParameterSignature(TypeVariable<?> typeParameter) { in TypeParameterSignature()
/external/guice/core/src/com/google/inject/
DTypeLiteral.java34 import java.lang.reflect.TypeVariable;
187 if (toResolve instanceof TypeVariable) { in resolveType()
188 TypeVariable original = (TypeVariable) toResolve; in resolveType()
/external/junit/src/main/java/org/junit/runners/model/
DNoGenericTypeParametersValidator.java7 import java.lang.reflect.TypeVariable;
25 if (type instanceof TypeVariable<?>) { in validateNoTypeParameterOnType()
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/writer/
DTypeNames.java27 import javax.lang.model.type.TypeVariable;
59 public TypeName visitTypeVariable(TypeVariable t, Void p) { in forTypeMirror()
DTypeVariableName.java30 import javax.lang.model.type.TypeVariable;
94 public static TypeVariableName fromTypeVariable(TypeVariable variable) { in fromTypeVariable()
/external/guice/extensions/throwingproviders/src/com/google/inject/throwingproviders/
DThrowingProviderBinder.java47 import java.lang.reflect.TypeVariable;
425 if(!checkArgument(returnType instanceof TypeVariable,
430 if(!checkArgument(returnTypeName.equals(((TypeVariable) returnType).getName()),
432 returnTypeName, interfaceType, ((TypeVariable)returnType).getName())) {
/external/mockito/src/test/java/org/mockito/internal/util/reflection/
DGenericMetadataSupportTest.java12 import java.lang.reflect.TypeVariable;
202 …private Type typeVariableValue(Map<TypeVariable<?>, Type> typeVariables, String typeVariableName) { in typeVariableValue() argument
203 for (Map.Entry<TypeVariable<?>, Type> typeVariableTypeEntry : typeVariables.entrySet()) { in typeVariableValue()
/external/icu/icu4j/tools/build/src/com/ibm/icu/dev/tool/docs/
DDeprecatedAPIChecker.java20 import java.lang.reflect.TypeVariable;
425 } else if (t instanceof TypeVariable) { in toTypeNameList()
431 TypeVariable<?> tVar = (TypeVariable<?>) t; in toTypeNameList()
/external/javassist/src/main/javassist/bytecode/
DSignatureAttribute.java584 public static class TypeVariable extends ObjectType { class in SignatureAttribute
587 TypeVariable(String sig, int begin, int end) { in TypeVariable() method in SignatureAttribute.TypeVariable
741 return new TypeVariable(sig, begin + 1, i); in parseObjectType()

12