Interface ClassReferenceFixer.NameGenerationStrategy

  • Enclosing class:
    ClassReferenceFixer

    public static interface ClassReferenceFixer.NameGenerationStrategy
    This interface provides an abstraction on how a Member should be renamed when its descriptor need to be updated.
    • Method Detail

      • getNewName

        java.lang.String getNewName​(ProgramClass programClass,
                                    ProgramMember programMember,
                                    java.lang.String originalName,
                                    java.lang.String originalDescriptor)
        A method for generating a new name for a program member.
        Parameters:
        programClass - The program class that the ClassReferenceFixer is visiting.
        programMember - The program member that the ClassReferenceFixer is visiting.
        originalName - The original name of the program member.
        originalDescriptor - The original descriptor of the program member.
        Returns:
        The new name of the program member.