/external/mockito/src/main/java/org/mockito/internal/util/reflection/ |
D | GenericMetadataSupport.java | 134 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/ |
D | ReflectionTypeParameter.java | 39 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/ |
D | TypeParameter.java | 44 final TypeVariable<?> typeVariable; field in TypeParameter 49 this.typeVariable = (TypeVariable<?>) type; in TypeParameter() 53 return typeVariable.hashCode(); in hashCode() 59 return typeVariable.equals(that.typeVariable); in equals() 65 return typeVariable.toString(); in toString()
|
D | TypeResolver.java | 107 @Override void visitTypeVariable(TypeVariable<?> typeVariable) { in populateTypeMappings() argument 108 mappings.put(new TypeVariableKey(typeVariable), to); in populateTypeMappings()
|
D | Types.java | 329 TypeVariable<D> typeVariable = Reflection.newProxy( in newTypeVariableImpl() local 331 return typeVariable; in newTypeVariableImpl()
|
D | TypeToken.java | 217 new TypeResolver.TypeVariableKey(typeParam.typeVariable), in where()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/resources/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-core/ |
D | com_github_javaparser_symbolsolver_reflectionmodel_ReflectionTypeParameter.txt | 1 …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/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/reflectionmodel/ |
D | ReflectionInterfaceDeclarationTest.java | 79 … ResolvedTypeVariable typeVariable = new ResolvedTypeVariable(list.getTypeParameters().get(0)); in testAllAncestors() local 80 …nterfaceDeclaration(Collection.class, typeResolver), ImmutableList.of(typeVariable), typeResolver)… in testAllAncestors() 82 …nInterfaceDeclaration(Iterable.class, typeResolver), ImmutableList.of(typeVariable), typeResolver)… in testAllAncestors()
|
D | ReflectionClassDeclarationTest.java | 293 …ResolvedTypeVariable typeVariable = new ResolvedTypeVariable(arraylist.getTypeParameters().get(0)); in testAllAncestors() local 295 …Declaration(AbstractCollection.class, typeResolver), ImmutableList.of(typeVariable), typeResolver)… in testAllAncestors() 296 …ctionInterfaceDeclaration(List.class, typeResolver), ImmutableList.of(typeVariable), typeResolver)… in testAllAncestors() 298 …nterfaceDeclaration(Collection.class, typeResolver), ImmutableList.of(typeVariable), typeResolver)… in testAllAncestors() 299 …nClassDeclaration(AbstractList.class, typeResolver), ImmutableList.of(typeVariable), typeResolver)… in testAllAncestors() 301 …nInterfaceDeclaration(Iterable.class, typeResolver), ImmutableList.of(typeVariable), typeResolver)… in testAllAncestors()
|
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/writer/ |
D | InterfaceWriter.java | 35 public void addTypeVariable(TypeVariableName typeVariable) { in addTypeVariable() argument 36 this.typeVariables.add(typeVariable); in addTypeVariable()
|
/external/javapoet/src/main/java/com/squareup/javapoet/ |
D | CodeWriter.java | 192 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()
|
D | MethodSpec.java | 349 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()
|
D | TypeSpec.java | 463 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/guava-tests/test/com/google/common/reflect/ |
D | TypeTokenResolutionTest.java | 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]);
|
D | TypeParameterTest.java | 35 TypeVariable<?> variable = new TypeParameter<T>() {}.typeVariable; in testCaptureTypeParameter()
|
D | TypesTest.java | 337 TypeVariable<D> typeVariable, Type... bounds) { in withBounds() argument 339 typeVariable.getGenericDeclaration(), typeVariable.getName(), bounds); in withBounds()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/model/typesystem/ |
D | ReferenceTypeTest.java | 572 ResolvedTypeVariable typeVariable = new ResolvedTypeVariable(streamMapR); in testReplaceTypeVariables() local 573 …oBuilder().setValue(stream.getTypeDeclaration().getTypeParameters().get(0), typeVariable).build()); in testReplaceTypeVariables() 590 ResolvedTypeVariable typeVariable = new ResolvedTypeVariable(streamMapR); in testReplaceTypeVariablesWithLambdaInBetween() local 591 …oBuilder().setValue(stream.getTypeDeclaration().getTypeParameters().get(0), typeVariable).build()); in testReplaceTypeVariablesWithLambdaInBetween()
|
/external/guice/core/src/com/google/inject/internal/ |
D | MoreTypes.java | 346 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/ |
D | MethodResolutionLogic.java | 220 …private static boolean matchTypeVariable(ResolvedTypeVariable typeVariable, ResolvedType type, Map… in matchTypeVariable() argument 221 String typeParameterName = typeVariable.asTypeParameter().getName(); in matchTypeVariable()
|
/external/javapoet/src/test/java/com/squareup/javapoet/ |
D | AbstractTypesTest.java | 255 @Test public void typeVariable() throws Exception { in typeVariable() method in AbstractTypesTest
|
D | TypeSpecTest.java | 1001 TypeVariableName typeVariable = TypeVariableName.get("T", Comparator.class, Serializable.class); in intersectionType() local 1004 .addTypeVariable(typeVariable) in intersectionType() 1005 .returns(typeVariable) in intersectionType()
|