diff --git a/AlgebraicDataflowArchitectureModel/src/algorithms/TypeInference.java b/AlgebraicDataflowArchitectureModel/src/algorithms/TypeInference.java index fb48b10..4e190bf 100644 --- a/AlgebraicDataflowArchitectureModel/src/algorithms/TypeInference.java +++ b/AlgebraicDataflowArchitectureModel/src/algorithms/TypeInference.java @@ -1516,7 +1516,7 @@ } } - private static Type createNewListType(Type compType, Type parentType) { + public static Type createNewListType(Type compType, Type parentType) { String compTypeName = getInterfaceTypeName(compType); List childrenTypes = getChildrenTypes(parentType, listComponentTypes.keySet()); Type newListType = new Type("List", "ArrayList<>", "List<" + compTypeName + ">", parentType); @@ -1536,7 +1536,7 @@ return newListType; } - private static Type createNewTupleType(List componentTypes, Type parentTupleType) { + public static Type createNewTupleType(List componentTypes, Type parentTupleType) { String implTypeName = "AbstractMap.SimpleEntry<>"; String interfaceTypeName = "Map.Entry<$x>"; if (componentTypes.size() >= 2) { @@ -1571,7 +1571,7 @@ return newTupleType; } - private static Type createNewMapType(List componentTypes, Type parentMapType) { + public static Type createNewMapType(List componentTypes, Type parentMapType) { String implTypeName = "HashMap<>"; String interfaceTypeName = "Map<$x, $y>"; if (componentTypes.size() == 2) {