| Modifier and Type | Field and Description |
|---|---|
| private static final Pattern | |
| pack-priv static final String | |
| pack-priv static final String | |
| private static final Joiner | |
| private static final Splitter | |
| private static final ImmutableSet | |
| private static final Pattern |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static String | |
| pack-priv static String | compressPackagesInMessage(String input)
Compresses an error message by stripping the packages out of class names and adding them to a legend at the bottom of the error. |
| private static ImmutableSet | replaceFullNames(String input, Map<String, String> replacementMap, StringBuilder output)
Replaces full class names in |
| private static Map | shortenNames(Collection<String> names)
Returns a map from short name to full name after resolving conflicts. |
| CLASSNAME_PATTERN | back to summary |
|---|---|
| private static final Pattern CLASSNAME_PATTERN | |
| LEGEND_FOOTER | back to summary |
|---|---|
| pack-priv static final String LEGEND_FOOTER | |
| LEGEND_HEADER | back to summary |
|---|---|
| pack-priv static final String LEGEND_HEADER | |
| PACKAGE_JOINER | back to summary |
|---|---|
| private static final Joiner PACKAGE_JOINER | |
| PACKAGE_SPLITTER | back to summary |
|---|---|
| private static final Splitter PACKAGE_SPLITTER | |
| PACKAGES_SKIPPED_IN_LEGEND | back to summary |
|---|---|
| private static final ImmutableSet<String> PACKAGES_SKIPPED_IN_LEGEND | |
| QUOTED_PATTERN | back to summary |
|---|---|
| private static final Pattern QUOTED_PATTERN | |
| PackageNameCompressor | back to summary |
|---|---|
| private PackageNameCompressor() | |
| buildClassNameLegend | back to summary |
|---|---|
| private static String buildClassNameLegend(Map<String, String> replacementMap) | |
| compressPackagesInMessage | back to summary |
|---|---|
| pack-priv static String compressPackagesInMessage(String input) Compresses an error message by stripping the packages out of class names and adding them to a legend at the bottom of the error. | |
| replaceFullNames | back to summary |
|---|---|
| private static ImmutableSet Replaces full class names in String literals that are quoted in the | |
| shortenNames | back to summary |
|---|---|
| private static Map Returns a map from short name to full name after resolving conflicts. This resolves conflicts by adding on segments of the package name until they are unique. For example, com.foo.Baz and com.bar.Baz will conflict on Baz and then resolve with foo.Baz and bar.Baz as replacements. | |