public static class MethodNameTransformer.Prefixing extends Object implements MethodNameTransformer
MethodNameTransformer.Prefixing, MethodNameTransformer.Suffixing
Constructor and Description |
---|
Prefixing()
Creates a new prefixing method name transformer using a default prefix.
|
Prefixing(String prefix)
Creates a new prefixing method name transformer.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
int |
hashCode() |
String |
toString() |
String |
transform(MethodDescription methodDescription)
Transforms a method's name to an alternative name.
|
public Prefixing()
public Prefixing(String prefix)
prefix
- The prefix being used.public String transform(MethodDescription methodDescription)
MethodNameTransformer
transform
in interface MethodNameTransformer
methodDescription
- The original method.Copyright © 2014–2016. All rights reserved.