Home
last modified time | relevance | path

Searched refs:typeVariable (Results 1 – 25 of 29) sorted by relevance

12

/external/mockito/src/main/java/org/mockito/internal/util/reflection/
DGenericMetadataSupport.java134 private void registerTypeVariableIfNotPresent(TypeVariable<?> typeVariable) { in registerTypeVariableIfNotPresent() argument
135 if (!contextualActualTypeParameters.containsKey(typeVariable)) { in registerTypeVariableIfNotPresent()
136 contextualActualTypeParameters.put(typeVariable, boundsOf(typeVariable)); in registerTypeVariableIfNotPresent()
220 TypeVariable<?> typeVariable = (TypeVariable<?>) type; in getActualTypeArgumentFor() local
221 return getActualTypeArgumentFor(typeVariable); in getActualTypeArgumentFor()
381 private final TypeVariable<?> typeVariable; field in GenericMetadataSupport.TypeVariableReturnType
385 …pe(GenericMetadataSupport source, TypeVariable<?>[] typeParameters, TypeVariable<?> typeVariable) { in TypeVariableReturnType() argument
387 this.typeVariable = typeVariable; in TypeVariableReturnType()
399 for (Type type : typeVariable.getBounds()) { in readTypeVariables()
402 registerTypeParametersOn(new TypeVariable[] { typeVariable }); in readTypeVariables()
[all …]
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/
DReflectionTypeParameter.java39 private TypeVariable typeVariable; field in ReflectionTypeParameter
43 …public ReflectionTypeParameter(TypeVariable typeVariable, boolean declaredOnClass, TypeSolver type… in ReflectionTypeParameter() argument
44 GenericDeclaration genericDeclaration = typeVariable.getGenericDeclaration(); in ReflectionTypeParameter()
52 this.typeVariable = typeVariable; in ReflectionTypeParameter()
78 int result = typeVariable.hashCode(); in hashCode()
85 return typeVariable.getName(); in getName()
113 …return Arrays.stream(typeVariable.getBounds()).map((refB) -> Bound.extendsBound(ReflectionFactory.… in getBounds()
119 "typeVariable=" + typeVariable + in toString()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-core/com/github/javaparser/symbolsolver/reflectionmodel/
DReflectionTypeParameter.java39 private TypeVariable typeVariable; field in ReflectionTypeParameter
43 …public ReflectionTypeParameter(TypeVariable typeVariable, boolean declaredOnClass, TypeSolver type… in ReflectionTypeParameter() argument
44 GenericDeclaration genericDeclaration = typeVariable.getGenericDeclaration(); in ReflectionTypeParameter()
52 this.typeVariable = typeVariable; in ReflectionTypeParameter()
78 int result = typeVariable.hashCode(); in hashCode()
85 return typeVariable.getName(); in getName()
113 …return Arrays.stream(typeVariable.getBounds()).map((refB) -> Bound.extendsBound(ReflectionFactory.… in getBounds()
119 "typeVariable=" + typeVariable + in toString()
/external/guava/guava/src/com/google/common/reflect/
DTypeParameter.java40 final TypeVariable<?> typeVariable; field in TypeParameter
45 this.typeVariable = (TypeVariable<?>) type; in TypeParameter()
50 return typeVariable.hashCode(); in hashCode()
57 return typeVariable.equals(that.typeVariable); in equals()
64 return typeVariable.toString(); in toString()
DTypeResolver.java131 void visitTypeVariable(TypeVariable<?> typeVariable) { in populateTypeMappings() argument
132 mappings.put(new TypeVariableKey(typeVariable), to); in populateTypeMappings()
DTypes.java328 TypeVariable<D> typeVariable = in newTypeVariableImpl() local
331 return typeVariable; in newTypeVariableImpl()
/external/guava/android/guava/src/com/google/common/reflect/
DTypeParameter.java40 final TypeVariable<?> typeVariable; field in TypeParameter
45 this.typeVariable = (TypeVariable<?>) type; in TypeParameter()
50 return typeVariable.hashCode(); in hashCode()
57 return typeVariable.equals(that.typeVariable); in equals()
64 return typeVariable.toString(); in toString()
DTypeResolver.java131 void visitTypeVariable(TypeVariable<?> typeVariable) { in populateTypeMappings() argument
132 mappings.put(new TypeVariableKey(typeVariable), to); in populateTypeMappings()
DTypes.java331 TypeVariable<D> typeVariable = in newTypeVariableImpl() local
334 return typeVariable; in newTypeVariableImpl()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-core/
Dcom_github_javaparser_symbolsolver_reflectionmodel_ReflectionTypeParameter.txt1 …Line 44) typeVariable.getGenericDeclaration() ==> java.lang.reflect.TypeVariable.getGenericDeclara…
10 Line 78) typeVariable.hashCode() ==> java.lang.Object.hashCode()
12 Line 85) typeVariable.getName() ==> java.lang.reflect.TypeVariable.getName()
17 …Line 113) Arrays.stream(typeVariable.getBounds()).map((refB) -> Bound.extendsBound(ReflectionFacto…
18 …Line 113) Arrays.stream(typeVariable.getBounds()).map((refB) -> Bound.extendsBound(ReflectionFacto…
19 Line 113) Arrays.stream(typeVariable.getBounds()) ==> java.util.Arrays.stream(T[])
20 Line 113) typeVariable.getBounds() ==> java.lang.reflect.TypeVariable.getBounds()
/external/dagger2/java/dagger/internal/codegen/
DOptionalFactories.java131 TypeVariableName typeVariable = TypeVariableName.get("T"); in absentOptionalProviderMethod() local
136 .addTypeVariable(typeVariable) in absentOptionalProviderMethod()
137 .returns(providerOf(optionalKind.of(typeVariable))) in absentOptionalProviderMethod()
145 providerOf(optionalKind.of(typeVariable)), in absentOptionalProviderMethod()
190 TypeVariableName typeVariable() {
196 return requestTypeName(valueKind(), typeVariable());
211 return frameworkType().frameworkClassOf(typeVariable());
311 .addTypeVariable(spec.typeVariable())
337 .addTypeVariable(spec.typeVariable())
343 spec.typeVariable(),
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/reflectionmodel/
DReflectionInterfaceDeclarationTest.java76 … ResolvedTypeVariable typeVariable = new ResolvedTypeVariable(list.getTypeParameters().get(0)); in testAllAncestors() local
77 …nterfaceDeclaration(Collection.class, typeResolver), ImmutableList.of(typeVariable), typeResolver)… in testAllAncestors()
79 …nInterfaceDeclaration(Iterable.class, typeResolver), ImmutableList.of(typeVariable), typeResolver)… in testAllAncestors()
DReflectionClassDeclarationTest.java305 …ResolvedTypeVariable typeVariable = new ResolvedTypeVariable(arraylist.getTypeParameters().get(0)); in testAllAncestors() local
307 …Declaration(AbstractCollection.class, typeResolver), ImmutableList.of(typeVariable), typeResolver)… in testAllAncestors()
308 …ctionInterfaceDeclaration(List.class, typeResolver), ImmutableList.of(typeVariable), typeResolver)… in testAllAncestors()
310 …nterfaceDeclaration(Collection.class, typeResolver), ImmutableList.of(typeVariable), typeResolver)… in testAllAncestors()
311 …nClassDeclaration(AbstractList.class, typeResolver), ImmutableList.of(typeVariable), typeResolver)… in testAllAncestors()
313 …nInterfaceDeclaration(Iterable.class, typeResolver), ImmutableList.of(typeVariable), typeResolver)… in testAllAncestors()
/external/javapoet/src/main/java/com/squareup/javapoet/
DCodeWriter.java192 for (TypeVariableName typeVariable : typeVariables) { in emitTypeVariables()
194 emitAnnotations(typeVariable.annotations, true); in emitTypeVariables()
195 emit("$L", typeVariable.name); in emitTypeVariables()
197 for (TypeName bound : typeVariable.bounds) { in emitTypeVariables()
DMethodSpec.java349 for (TypeVariableName typeVariable : typeVariables) { in addTypeVariables()
350 this.typeVariables.add(typeVariable); in addTypeVariables()
355 public Builder addTypeVariable(TypeVariableName typeVariable) { in addTypeVariable() argument
356 typeVariables.add(typeVariable); in addTypeVariable()
DTypeSpec.java463 for (TypeVariableName typeVariable : typeVariables) { in addTypeVariables()
464 this.typeVariables.add(typeVariable); in addTypeVariables()
469 public Builder addTypeVariable(TypeVariableName typeVariable) { in addTypeVariable() argument
471 typeVariables.add(typeVariable); in addTypeVariable()
/external/guava/android/guava-tests/test/com/google/common/reflect/
DTypeTokenResolutionTest.java448 TypeVariable<?> typeVariable =
450 assertEquals(String.class, typeVariable.getBounds()[0]);
454 TypeVariable<?> typeVariable =
456 assertEquals(Types.newParameterizedType(Enum.class, typeVariable), typeVariable.getBounds()[0]);
DTypeParameterTest.java33 TypeVariable<?> variable = new TypeParameter<T>() {}.typeVariable; in testCaptureTypeParameter()
DTypesTest.java320 TypeVariable<D> typeVariable, Type... bounds) { in withBounds() argument
322 typeVariable.getGenericDeclaration(), typeVariable.getName(), bounds); in withBounds()
/external/guava/guava-tests/test/com/google/common/reflect/
DTypeTokenResolutionTest.java448 TypeVariable<?> typeVariable =
450 assertEquals(String.class, typeVariable.getBounds()[0]);
454 TypeVariable<?> typeVariable =
456 assertEquals(Types.newParameterizedType(Enum.class, typeVariable), typeVariable.getBounds()[0]);
DTypeParameterTest.java33 TypeVariable<?> variable = new TypeParameter<T>() {}.typeVariable; in testCaptureTypeParameter()
DTypesTest.java320 TypeVariable<D> typeVariable, Type... bounds) { in withBounds() argument
322 typeVariable.getGenericDeclaration(), typeVariable.getName(), bounds); in withBounds()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/model/typesystem/
DReferenceTypeTest.java580 ResolvedTypeVariable typeVariable = new ResolvedTypeVariable(streamMapR); in testReplaceTypeVariables() local
581 …oBuilder().setValue(stream.getTypeDeclaration().getTypeParameters().get(0), typeVariable).build()); in testReplaceTypeVariables()
598 ResolvedTypeVariable typeVariable = new ResolvedTypeVariable(streamMapR); in testReplaceTypeVariablesWithLambdaInBetween() local
599 …oBuilder().setValue(stream.getTypeDeclaration().getTypeParameters().get(0), typeVariable).build()); in testReplaceTypeVariablesWithLambdaInBetween()
/external/guice/core/src/com/google/inject/internal/
DMoreTypes.java346 private static Class<?> declaringClassOf(TypeVariable typeVariable) { in declaringClassOf() argument
347 GenericDeclaration genericDeclaration = typeVariable.getGenericDeclaration(); in declaringClassOf()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/
DMethodResolutionLogic.java212 …private static boolean matchTypeVariable(ResolvedTypeVariable typeVariable, ResolvedType type, Map… in matchTypeVariable() argument
213 String typeParameterName = typeVariable.asTypeParameter().getName(); in matchTypeVariable()

12