MethodRebaseResolver
| Modifier and Type | Class and Description |
|---|---|
| public static class | MethodNameTransformer.
A method name transformer that adds a fixed prefix to an original method name. |
| public static class | MethodNameTransformer.
A method name transformer that adds a fixed suffix to an original method name, separated by a |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: The alternative name.The original method. methodDescription)Transforms a method's name to an alternative name. |
| transform | back to summary |
|---|---|
| public 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.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | DEFAULT_PREFIX
The default prefix to add to an original method name. |
| private final String | prefix
The prefix that is appended. |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | transform(MethodDescription
The original method. methodDescription)Implements org. |
| DEFAULT_PREFIX | back to summary |
|---|---|
| private static final String DEFAULT_PREFIX The default prefix to add to an original method name. | |
| prefix | back to summary |
|---|---|
| private final String prefix The prefix that is appended. | |
| Prefixing | back to summary |
|---|---|
| public Prefixing() Creates a new prefixing method name transformer using a default prefix. | |
| Prefixing | back to summary |
|---|---|
| public Prefixing(String prefix) Creates a new prefixing method name transformer.
| |
| transform | back to summary |
|---|---|
| public String transform(MethodDescription methodDescription) Implements org. Doc from org. Transforms a method's name to an alternative name. This name must not be equal to any existing method of the created class.
| |
$.
| Modifier and Type | Field and Description |
|---|---|
| private static final String | DEFAULT_SUFFIX
The default suffix to add to an original method name. |
| private final String | suffix
The suffix to append to a method name. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | transform(MethodDescription
The original method. methodDescription)Implements org. |
| public static MethodNameTransformer | Returns: A method name transformer that adds a randomized suffix to the original method name.Creates a new suffixing method name transformer which adds a default suffix with a random name component. |
| DEFAULT_SUFFIX | back to summary |
|---|---|
| private static final String DEFAULT_SUFFIX The default suffix to add to an original method name. | |
| suffix | back to summary |
|---|---|
| private final String suffix The suffix to append to a method name. | |
| Suffixing | back to summary |
|---|---|
| public Suffixing(String suffix) Creates a new suffixing method name transformer.
| |
| transform | back to summary |
|---|---|
| public String transform(MethodDescription methodDescription) Implements org. Doc from org. Transforms a method's name to an alternative name. This name must not be equal to any existing method of the created class.
| |
| withRandomSuffix | back to summary |
|---|---|
| public static MethodNameTransformer withRandomSuffix() Creates a new suffixing method name transformer which adds a default suffix with a random name component.
| |