| Modifier and Type | Method and Description |
|---|---|
<T> java.util.Map<T,DependencyType> |
getSymbolsToKeep(T klass,
ShrinkerGraph<T> graph)
Given a program class and the whole
ShrinkerGraph, decides which symbols should be
kept in the output. |
static ProguardParserKeepRules |
keepRules(Flags flags,
ShrinkerLogger shrinkerLogger) |
static ProguardParserKeepRules |
whyAreYouKeepingRules(Flags flags,
ShrinkerLogger shrinkerLogger) |
@NonNull public static ProguardParserKeepRules keepRules(@NonNull Flags flags, @NonNull ShrinkerLogger shrinkerLogger)
@Nullable public static ProguardParserKeepRules whyAreYouKeepingRules(@NonNull Flags flags, @NonNull ShrinkerLogger shrinkerLogger)
public <T> java.util.Map<T,DependencyType> getSymbolsToKeep(T klass, ShrinkerGraph<T> graph)
KeepRulesShrinkerGraph, decides which symbols should be
kept in the output. The result can contain methods and fields from klass as well as
klass itself (in case of -keep rules).getSymbolsToKeep in interface KeepRules