Package proguard.util

Class PrefixRemovingStringFunction

java.lang.Object
proguard.util.PrefixRemovingStringFunction
All Implemented Interfaces:
StringFunction

public class PrefixRemovingStringFunction extends Object implements StringFunction
This StringFunction removes a given prefix from each transformed String, if present.
  • Constructor Details

    • PrefixRemovingStringFunction

      public PrefixRemovingStringFunction(String prefix)
      Creates a new PrefixRemovingStringFunction.
      Parameters:
      prefix - the prefix to remove from each string.
    • PrefixRemovingStringFunction

      public PrefixRemovingStringFunction(String prefix, StringFunction stringFunction)
      Creates a new PrefixRemovingStringFunction.
      Parameters:
      prefix - the prefix to remove from each string.
      stringFunction - the function to subsequently apply to all strings.
    • PrefixRemovingStringFunction

      public PrefixRemovingStringFunction(String prefix, StringFunction successStringFunction, StringFunction failStringFunction)
      Creates a new PrefixRemovingStringFunction.
      Parameters:
      prefix - the prefix to remove from each string.
      successStringFunction - the function to subsequently apply to prefixed strings.
      failStringFunction - the function to subsequently apply to other strings.
  • Method Details