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:
MethodRebaseResolver
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
MethodNameTransformer.Prefixing
A method name transformer that adds a fixed prefix to an original method name.static class
MethodNameTransformer.Suffixing
A method name transformer that adds a fixed suffix to an original method name, separated by a$
.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
transform(MethodDescription methodDescription)
Transforms a method's name to an alternative name.
-
-
-
Method Detail
-
transform
java.lang.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.
-
-