Home
last modified time | relevance | path

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

12

/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/model/typesystem/
DArrayTypeTest.java137 assertTrue(arrayOfBooleans == arrayOfBooleans.replaceTypeVariables(tpA, OBJECT)); in testReplaceParam()
138 assertTrue(arrayOfStrings == arrayOfStrings.replaceTypeVariables(tpA, OBJECT)); in testReplaceParam()
139 assertEquals(arrayOfListOfStrings, arrayOfListOfStrings.replaceTypeVariables(tpA, OBJECT)); in testReplaceParam()
143 assertEquals(true, arrayOfListOfA.replaceTypeVariables(tpA, OBJECT).isArray()); in testReplaceParam()
145 arrayOfListOfA.replaceTypeVariables(tpA, OBJECT).asArrayType().getComponentType() in testReplaceParam()
148 arrayOfListOfA.replaceTypeVariables(tpA, OBJECT).asArrayType().getComponentType() in testReplaceParam()
153 arrayOfListOfA.replaceTypeVariables(tpA, OBJECT).asArrayType().getComponentType()); in testReplaceParam()
154 assertEquals(arrayOfListOfObjects, arrayOfListOfA.replaceTypeVariables(tpA, OBJECT)); in testReplaceParam()
155 assertEquals(arrayOfListOfStrings, arrayOfListOfA.replaceTypeVariables(tpA, STRING)); in testReplaceParam()
156 assertTrue(arrayOfListOfA != arrayOfListOfA.replaceTypeVariables(tpA, OBJECT)); in testReplaceParam()
DWildcardUsageTest.java189 assertTrue(unbounded == unbounded.replaceTypeVariables(tpA, string)); in testReplaceParam()
190 assertTrue(superFoo == superFoo.replaceTypeVariables(tpA, string)); in testReplaceParam()
191 assertTrue(extendsFoo == extendsFoo.replaceTypeVariables(tpA, string)); in testReplaceParam()
192 assertEquals(superString, superA.replaceTypeVariables(tpA, string)); in testReplaceParam()
193 assertEquals(extendsString, extendsA.replaceTypeVariables(tpA, string)); in testReplaceParam()
194 assertTrue(superA == superA.replaceTypeVariables(tpB, string)); in testReplaceParam()
195 assertTrue(extendsA == extendsA.replaceTypeVariables(tpB, string)); in testReplaceParam()
DReferenceTypeTest.java169 assertTrue(object == object.replaceTypeVariables(tpA, object)); in testReplaceParam()
170 assertTrue(string == string.replaceTypeVariables(tpA, object)); in testReplaceParam()
171 assertEquals(listOfStrings, listOfStrings.replaceTypeVariables(tpA, object)); in testReplaceParam()
172 assertEquals(listOfStrings, listOfA.replaceTypeVariables(tpA, string)); in testReplaceParam()
578 ResolvedType streamReplaced = stream.replaceTypeVariables(tpToReplace, replaced); in testReplaceTypeVariables()
596 ResolvedType streamReplaced = stream.replaceTypeVariables(tpToReplace, replaced); in testReplaceTypeVariablesWithLambdaInBetween()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/model/typesystem/
DLazyType.java106 …public ResolvedType replaceTypeVariables(ResolvedTypeParameterDeclaration tp, ResolvedType replace… in replaceTypeVariables() method in LazyType
108 return getType().replaceTypeVariables(tp, replaced, inferredTypes); in replaceTypeVariables()
112 …public ResolvedType replaceTypeVariables(ResolvedTypeParameterDeclaration tp, ResolvedType replace… in replaceTypeVariables() method in LazyType
113 return getType().replaceTypeVariables(tp, replaced); 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()
DResolvedTypeVariable.java82 …public ResolvedType replaceTypeVariables(ResolvedTypeParameterDeclaration tpToBeReplaced, Resolved… in replaceTypeVariables() method in ResolvedTypeVariable
DResolvedReferenceType.java157 …public ResolvedType replaceTypeVariables(ResolvedTypeParameterDeclaration tpToReplace, ResolvedTyp… in replaceTypeVariables() method in ResolvedReferenceType
166 … ResolvedType transformedTp = tp.replaceTypeVariables(tpToReplace, replaced, inferredTypes); in replaceTypeVariables()
/external/javaparser/javaparser-symbol-solver-testing/src/test/resources/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/resources/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…
Dcom_github_javaparser_symbolsolver_resolution_MethodResolutionLogic.txt192 …WithInference.replaceTypeVariables(tp, entry.getValue()) ==> com.github.javaparser.symbolsolver.mo…
196replaceTypeVariables(tp, Wildcard.extendsBound(new ReferenceTypeImpl(typeSolver.solveType(Object.c…
205 …pe.replaceTypeVariables(tp, Wildcard.extendsBound(bound.getType())) ==> com.github.javaparser.symb…
208 …ype.replaceTypeVariables(tp, Wildcard.superBound(bound.getType())) ==> com.github.javaparser.symbo…
213replaceTypeVariables(tp, new ReferenceTypeImpl(typeSolver.solveType(Object.class.getCanonicalName(…
221 … expectedType2.replaceTypeVariables(tp, bound.getType()) ==> com.github.javaparser.symbolsolver.mo…
223replaceTypeVariables(tp, new ReferenceTypeImpl(typeSolver.solveType(Object.class.getCanonicalName(…
Dcom_github_javaparser_symbolsolver_javaparsermodel_contexts_LambdaExprContext.txt53 …lambdaType.replaceTypeVariables(entry._1, ot, inferredTypes) ==> com.github.javaparser.symbolsolve…
/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-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/
DMethodsResolutionLogicTest.java56 …enceType classOfStringType = (ResolvedReferenceType) rawClassType.replaceTypeVariables(rawClassTyp… in compatibilityShouldConsiderAlsoTypeVariablesNegative()
78 …nceType classOfRuntimeType = (ResolvedReferenceType) rawClassType.replaceTypeVariables(rawClassTyp… in compatibilityShouldConsiderAlsoTypeVariablesPositive()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/
DMethodResolutionLogic.java309 … expectedTypeWithInference = expectedTypeWithInference.replaceTypeVariables(tp, entry.getValue()); in isApplicable()
315 …expectedType = expectedType.replaceTypeVariables(tp, ResolvedWildcard.extendsBound(new ReferenceTy… in isApplicable()
320 …expectedType = expectedType.replaceTypeVariables(tp, ResolvedWildcard.extendsBound(bound.getType()… in isApplicable()
323 …expectedType = expectedType.replaceTypeVariables(tp, ResolvedWildcard.superBound(bound.getType())); in isApplicable()
332 …expectedType2 = expectedType2.replaceTypeVariables(tp, new ReferenceTypeImpl(typeSolver.solveType(… in isApplicable()
336 expectedType2 = expectedType2.replaceTypeVariables(tp, bound.getType()); in isApplicable()
338 …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()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/resolution/types/parametrization/
DResolvedTypeParametersMap.java142 …type = type.replaceTypeVariables(typeParameterDeclaration, getValue(typeParameterDeclaration), inf… in replaceAll()

12