Package com.google.javascript.jscomp
Class IdMappingUtil
java.lang.Object
com.google.javascript.jscomp.IdMappingUtil
A utility class for generating and parsing id mappings held by
ReplaceIdGenerators
.-
Method Summary
-
Method Details
-
parseSerializedIdMappings
public static Map<String,com.google.common.collect.BiMap<String, parseSerializedIdMappingsString>> (String idMappings) The expected format looks like this:[generatorName1] someId1:someFile:theLine:theColumn ...
[[generatorName2] someId2:someFile:theLine:theColumn] ...
The returned data is grouped by generator name (the map key). The inner map provides mappings from id to content (file, line and column info). In a glimpse, the structure is
Map<generator name, BiMap<id, value>>
.@throws IllegalArgumentException malformed input where there it 1) has duplicate generator name, or 2) the line has no ':' for id and its content.
-