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 ClassesModifier and TypeInterfaceDescriptionstatic 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 TypeMethodDescriptiontransform
(MethodDescription methodDescription) Transforms a method's name to an alternative name.
-
Method Details
-
transform
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.
-