Home
last modified time | relevance | path

Searched refs:replaceTypeVariables (Results 1 – 25 of 43) sorted by relevance

12

/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/model/typesystem/
DArrayTypeTest.java136 assertSame(arrayOfBooleans, arrayOfBooleans.replaceTypeVariables(tpA, OBJECT)); in testReplaceParam()
137 assertSame(arrayOfStrings, arrayOfStrings.replaceTypeVariables(tpA, OBJECT)); in testReplaceParam()
138 assertEquals(arrayOfListOfStrings, arrayOfListOfStrings.replaceTypeVariables(tpA, OBJECT)); in testReplaceParam()
142 assertTrue(arrayOfListOfA.replaceTypeVariables(tpA, OBJECT).isArray()); in testReplaceParam()
144 arrayOfListOfA.replaceTypeVariables(tpA, OBJECT).asArrayType().getComponentType() in testReplaceParam()
147 arrayOfListOfA.replaceTypeVariables(tpA, OBJECT).asArrayType().getComponentType() in testReplaceParam()
152 arrayOfListOfA.replaceTypeVariables(tpA, OBJECT).asArrayType().getComponentType()); in testReplaceParam()
153 assertEquals(arrayOfListOfObjects, arrayOfListOfA.replaceTypeVariables(tpA, OBJECT)); in testReplaceParam()
154 assertEquals(arrayOfListOfStrings, arrayOfListOfA.replaceTypeVariables(tpA, STRING)); in testReplaceParam()
155 assertNotSame(arrayOfListOfA, arrayOfListOfA.replaceTypeVariables(tpA, OBJECT)); in testReplaceParam()
DWildcardUsageTest.java190 assertTrue(unbounded == unbounded.replaceTypeVariables(tpA, string)); in testReplaceParam()
191 assertTrue(superFoo == superFoo.replaceTypeVariables(tpA, string)); in testReplaceParam()
192 assertTrue(extendsFoo == extendsFoo.replaceTypeVariables(tpA, string)); in testReplaceParam()
193 assertEquals(superString, superA.replaceTypeVariables(tpA, string)); in testReplaceParam()
194 assertEquals(extendsString, extendsA.replaceTypeVariables(tpA, string)); in testReplaceParam()
195 assertTrue(superA == superA.replaceTypeVariables(tpB, string)); in testReplaceParam()
196 assertTrue(extendsA == extendsA.replaceTypeVariables(tpB, string)); in testReplaceParam()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-core/com/github/javaparser/symbolsolver/model/typesystem/
DLazyType.java104 …public Type replaceTypeVariables(TypeParameterDeclaration tp, Type replaced, Map<TypeParameterDecl… in replaceTypeVariables() method in LazyType
105 return getType().replaceTypeVariables(tp, replaced, inferredTypes); in replaceTypeVariables()
109 public Type replaceTypeVariables(TypeParameterDeclaration tp, Type replaced) { in replaceTypeVariables() method in LazyType
110 return getType().replaceTypeVariables(tp, replaced); in replaceTypeVariables()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/model/typesystem/
DLazyType.java105 …public ResolvedType replaceTypeVariables(ResolvedTypeParameterDeclaration tp, ResolvedType replace… in replaceTypeVariables() method in LazyType
107 return getType().replaceTypeVariables(tp, replaced, inferredTypes); in replaceTypeVariables()
111 …public ResolvedType replaceTypeVariables(ResolvedTypeParameterDeclaration tp, ResolvedType replace… in replaceTypeVariables() method in LazyType
112 return getType().replaceTypeVariables(tp, replaced); in replaceTypeVariables()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-model/com/github/javaparser/symbolsolver/model/typesystem/
DType.java148 …default Type replaceTypeVariables(TypeParameterDeclaration tp, Type replaced, Map<TypeParameterDec… in replaceTypeVariables() method
155 default Type replaceTypeVariables(TypeParameterDeclaration tp, Type replaced) { in replaceTypeVariables() method
156 return replaceTypeVariables(tp, replaced, new HashMap<>()); in replaceTypeVariables()
DArrayType.java99 …public Type replaceTypeVariables(TypeParameterDeclaration tpToReplace, Type replaced, Map<TypePara… in replaceTypeVariables() method in ArrayType
100 Type baseTypeReplaced = baseType.replaceTypeVariables(tpToReplace, replaced, inferredTypes); in replaceTypeVariables()
DWildcard.java141 …public Type replaceTypeVariables(TypeParameterDeclaration tpToReplace, Type replaced, Map<TypePara… in replaceTypeVariables() method in Wildcard
148 … Type boundedTypeReplaced = boundedType.replaceTypeVariables(tpToReplace, replaced, inferredTypes); in replaceTypeVariables()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/resolution/types/
DResolvedType.java165 …default ResolvedType replaceTypeVariables(ResolvedTypeParameterDeclaration tp, ResolvedType replac… in replaceTypeVariables() method
172 …default ResolvedType replaceTypeVariables(ResolvedTypeParameterDeclaration tp, ResolvedType replac… in replaceTypeVariables() method
173 return replaceTypeVariables(tp, replaced, new HashMap<>()); in replaceTypeVariables()
DResolvedArrayType.java104 …public ResolvedType replaceTypeVariables(ResolvedTypeParameterDeclaration tpToReplace, ResolvedTyp… in replaceTypeVariables() method in ResolvedArrayType
105 …ResolvedType baseTypeReplaced = baseType.replaceTypeVariables(tpToReplace, replaced, inferredTypes… in replaceTypeVariables()
DResolvedIntersectionType.java70 …public ResolvedType replaceTypeVariables(ResolvedTypeParameterDeclaration tp, ResolvedType replace… in replaceTypeVariables() method in ResolvedIntersectionType
72 .map(e -> e.replaceTypeVariables(tp, replaced, inferredTypes)) in replaceTypeVariables()
DResolvedWildcard.java147 …public ResolvedType replaceTypeVariables(ResolvedTypeParameterDeclaration tpToReplace, ResolvedTyp… in replaceTypeVariables() method in ResolvedWildcard
154 …ResolvedType boundedTypeReplaced = boundedType.replaceTypeVariables(tpToReplace, replaced, inferre… in replaceTypeVariables()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-model/
Dcom_github_javaparser_symbolsolver_model_methods_MethodUsage.txt19 …amType.replaceTypeVariables(typeParameter, type, inferredTypes) ==> com.github.javaparser.symbolso…
21 …rnType.replaceTypeVariables(typeParameter, type, inferredTypes) ==> com.github.javaparser.symbolso…
Dcom_github_javaparser_symbolsolver_model_typesystem_Wildcard.txt9 …dType.replaceTypeVariables(tpToReplace, replaced, inferredTypes) ==> com.github.javaparser.symbols…
Dcom_github_javaparser_symbolsolver_model_typesystem_ArrayType.txt18 …eType.replaceTypeVariables(tpToReplace, replaced, inferredTypes) ==> com.github.javaparser.symbols…
Dcom_github_javaparser_symbolsolver_model_typesystem_Type.txt17 …Line 156) replaceTypeVariables(tp, replaced, new HashMap<>()) ==> com.github.javaparser.symbolsolv…
Dcom_github_javaparser_symbolsolver_model_typesystem_parametrization_TypeParametersMap.txt23replaceTypeVariables(typeParameterDeclaration, getValue(typeParameterDeclaration), inferredTypes) …
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-core/
Dcom_github_javaparser_symbolsolver_model_typesystem_LazyType.txt34 … getType().replaceTypeVariables(tp, replaced, inferredTypes) ==> com.github.javaparser.symbolsolve…
36 …ne 110) getType().replaceTypeVariables(tp, replaced) ==> com.github.javaparser.symbolsolver.model.…
Dcom_github_javaparser_symbolsolver_reflectionmodel_ReflectionMethodResolutionLogic.txt59 pt = pt.replaceTypeVariables(tp, finalTypeParameterValues.get(i));
67 pt = pt.replaceTypeVariables(tp, finalTypeParameterValues.get(i));
74 …18) pt.replaceTypeVariables(tp, finalTypeParameterValues.get(i)) ==> com.github.javaparser.symbols…
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/resolution/
DMethodUsage.java165 …ResolvedType newParamType = originalParamType.replaceTypeVariables(typeParameter, type, inferredTy… in replaceTypeParameter()
170 … ResolvedType newType = originalType.replaceTypeVariables(typeParameter, type, inferredTypes); in replaceTypeParameter()
174 …ResolvedType newReturnType = oldReturnType.replaceTypeVariables(typeParameter, type, inferredTypes… in replaceTypeParameter()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/
DMethodResolutionLogic.java289 … expectedTypeWithInference = expectedTypeWithInference.replaceTypeVariables(tp, entry.getValue()); in isApplicable()
295 …expectedType = expectedType.replaceTypeVariables(tp, ResolvedWildcard.extendsBound(new ReferenceTy… in isApplicable()
300 …expectedType = expectedType.replaceTypeVariables(tp, ResolvedWildcard.extendsBound(bound.getType()… in isApplicable()
303 …expectedType = expectedType.replaceTypeVariables(tp, ResolvedWildcard.superBound(bound.getType())); in isApplicable()
312 …expectedType2 = expectedType2.replaceTypeVariables(tp, new ReferenceTypeImpl(typeSolver.solveType(… in isApplicable()
316 expectedType2 = expectedType2.replaceTypeVariables(tp, bound.getType()); in isApplicable()
318 …expectedType2 = expectedType2.replaceTypeVariables(tp, new ReferenceTypeImpl(typeSolver.solveType(… in isApplicable()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/
DMethodsResolutionLogicTest.java57 …enceType classOfStringType = (ResolvedReferenceType) rawClassType.replaceTypeVariables(rawClassTyp… in compatibilityShouldConsiderAlsoTypeVariablesNegative()
79 …nceType classOfRuntimeType = (ResolvedReferenceType) rawClassType.replaceTypeVariables(rawClassTyp… in compatibilityShouldConsiderAlsoTypeVariablesPositive()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-model/com/github/javaparser/symbolsolver/model/methods/
DMethodUsage.java130 … Type newParamType = originalParamType.replaceTypeVariables(typeParameter, type, inferredTypes); in replaceTypeParameter()
134 Type newReturnType = oldReturnType.replaceTypeVariables(typeParameter, type, inferredTypes); in replaceTypeParameter()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-core/com/github/javaparser/symbolsolver/resolution/
DMethodResolutionLogic.java297 … expectedTypeWithInference = expectedTypeWithInference.replaceTypeVariables(tp, entry.getValue()); in isApplicable()
303 …expectedType = expectedType.replaceTypeVariables(tp, Wildcard.extendsBound(new ReferenceTypeImpl(t… in isApplicable()
308 … expectedType = expectedType.replaceTypeVariables(tp, Wildcard.extendsBound(bound.getType())); in isApplicable()
311 … expectedType = expectedType.replaceTypeVariables(tp, Wildcard.superBound(bound.getType())); in isApplicable()
320 …expectedType2 = expectedType2.replaceTypeVariables(tp, new ReferenceTypeImpl(typeSolver.solveType(… in isApplicable()
324 expectedType2 = expectedType2.replaceTypeVariables(tp, bound.getType()); in isApplicable()
326 …expectedType2 = expectedType2.replaceTypeVariables(tp, new ReferenceTypeImpl(typeSolver.solveType(… in isApplicable()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/
DSubstitution.java41 result = result.replaceTypeVariables(typeParameterDeclarations.get(i), types.get(i)); in apply()
DInstantiationSet.java64 …type = type.replaceTypeVariables(instantiation.getInferenceVariable().getTypeParameterDeclaration(… in apply()

12