Interface MethodNameTransformer

All Known Implementing Classes:
MethodNameTransformer.Prefixing, MethodNameTransformer.Suffixing

public interface MethodNameTransformer
A method name transformer provides a unique mapping of a method's name to an alternative name.
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    A method name transformer that adds a fixed prefix to an original method name.
    static class 
    A method name transformer that adds a fixed suffix to an original method name, separated by a $.
  • Method Summary

    Modifier and Type
    Method
    Description
    transform(MethodDescription methodDescription)
    Transforms a method's name to an alternative name.
  • Method Details

    • transform

      String transform(MethodDescription methodDescription)
      Transforms a method's name to an alternative name. This name must not be equal to any existing method of the created class.
      Parameters:
      methodDescription - The original method.
      Returns:
      The alternative name.