Interface MethodNameTransformer
-
- All Known Implementing Classes:
MethodNameTransformer.Prefixing,MethodNameTransformer.Suffixing
public interface MethodNameTransformerA 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 classMethodNameTransformer.PrefixingA method name transformer that adds a fixed prefix to an original method name.static classMethodNameTransformer.SuffixingA 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.Stringtransform(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.
-
-