Class SignatureRemapper


  • public class SignatureRemapper
    extends Object
    Remaps class references within generic signatures.
    • Constructor Detail

      • SignatureRemapper

        public SignatureRemapper​(Function<String,​String> classMapper)
        Creates a remapper with the given class name mapping function.
        Parameters:
        classMapper - Function that maps old class names to new ones
    • Method Detail

      • remap

        public String remap​(String signature)
        Remaps all class references in a generic signature.
        Parameters:
        signature - The generic signature
        Returns:
        The remapped signature, or null if signature was null
      • needsRemapping

        public boolean needsRemapping​(String signature)
        Checks if a signature contains any class references that would be remapped.
        Parameters:
        signature - The signature to check
        Returns:
        true if the signature would change after remapping