Home
last modified time | relevance | path

Searched refs:typeVariable (Results 1 – 25 of 48) 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-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/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/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/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()
/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/writing/
DOptionalFactories.java135 TypeVariableName typeVariable = TypeVariableName.get("T"); in absentOptionalProviderMethod() local
140 .addTypeVariable(typeVariable) in absentOptionalProviderMethod()
141 .returns(providerOf(optionalKind.of(typeVariable))) in absentOptionalProviderMethod()
149 providerOf(optionalKind.of(typeVariable)), in absentOptionalProviderMethod()
194 TypeVariableName typeVariable() {
200 return requestTypeName(valueKind(), typeVariable());
215 return frameworkType().frameworkClassOf(typeVariable());
315 .addTypeVariable(spec.typeVariable())
341 .addTypeVariable(spec.typeVariable())
347 spec.typeVariable(),
[all …]
/external/javapoet/src/main/java/com/squareup/javapoet/
DCodeWriter.java196 typeVariables.forEach(typeVariable -> currentTypeVariables.add(typeVariable.name)); in emitTypeVariables()
200 for (TypeVariableName typeVariable : typeVariables) { in emitTypeVariables()
202 emitAnnotations(typeVariable.annotations, true); in emitTypeVariables()
203 emit("$L", typeVariable.name); in emitTypeVariables()
205 for (TypeName bound : typeVariable.bounds) { in emitTypeVariables()
215 typeVariables.forEach(typeVariable -> currentTypeVariables.remove(typeVariable.name)); in popTypeVariables()
DMethodSpec.java370 for (TypeVariableName typeVariable : typeVariables) { in addTypeVariables()
371 this.typeVariables.add(typeVariable); in addTypeVariables()
376 public Builder addTypeVariable(TypeVariableName typeVariable) { in addTypeVariable() argument
377 typeVariables.add(typeVariable); in addTypeVariable()
DTypeSpec.java477 for (TypeVariableName typeVariable : typeVariables) { in addTypeVariables()
478 this.typeVariables.add(typeVariable); in addTypeVariables()
483 public Builder addTypeVariable(TypeVariableName typeVariable) { in addTypeVariable() argument
484 typeVariables.add(typeVariable); in addTypeVariable()
/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/auto/factory/src/main/java/com/google/auto/factory/processor/
DFactoryWriter.java242 TypeVariableName typeVariable = TypeVariableName.get("T"); in addCheckNotNullMethod() local
246 .addTypeVariable(typeVariable) in addCheckNotNullMethod()
247 .returns(typeVariable) in addCheckNotNullMethod()
248 .addParameter(typeVariable, "reference") in addCheckNotNullMethod()
328 for (TypeVariable typeVariable : TypeVariables.getReferencedTypeVariables(type)) { in getReferencedTypeParameterNames()
329 typeVariableNames.add(TypeVariableName.get(typeVariable)); in getReferencedTypeParameterNames()
/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/dagger2/java/dagger/internal/codegen/langmodel/
DDaggerElements.java351 public String visitTypeVariable(TypeVariable typeVariable, Void v) {
353 return getDescriptor(typeVariable.getUpperBound());
/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()

12