protected String processListType( String typeName, boolean exceptUtil, String listPkg, String listName) { final String listBegin = listName + "<"; final String listEnd = ">"; if (typeName.startsWith(listBegin) && typeName.endsWith(listEnd)) { final ScopeInfo scope = Srl.extractScopeWide(typeName, listBegin, listEnd); final String content = scope.getContent(); final String resolvedContent = doResolvePackageName(content, exceptUtil); return listPkg + "." + listBegin + resolvedContent + listEnd; } else { return null; } }
protected String processMapType( String typeName, boolean exceptUtil, String mapPkg, String mapName) { final String mapBegin = mapName + "<"; final String mapEnd = ">"; if (typeName.startsWith(mapBegin) && typeName.endsWith(mapEnd)) { final ScopeInfo scope = Srl.extractScopeWide(typeName, mapBegin, mapEnd); final String content = scope.getContent(); final String keyType = Srl.substringFirstFront(content, ",").trim(); final String valueType = Srl.substringFirstRear(content, ",").trim(); final String resolvedValueType = doResolvePackageName(valueType, exceptUtil); return mapPkg + "." + mapBegin + keyType + ", " + resolvedValueType + mapEnd; } else { return null; } }