Class MethodNameTransformer.Prefixing
- java.lang.Object
-
- net.bytebuddy.dynamic.scaffold.inline.MethodNameTransformer.Prefixing
-
- All Implemented Interfaces:
MethodNameTransformer
- Enclosing interface:
- MethodNameTransformer
@Enhance public static class MethodNameTransformer.Prefixing extends java.lang.Object implements MethodNameTransformer
A method name transformer that adds a fixed prefix to an original method name.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.scaffold.inline.MethodNameTransformer
MethodNameTransformer.Prefixing, MethodNameTransformer.Suffixing
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
DEFAULT_PREFIX
The default prefix to add to an original method name.private java.lang.String
prefix
The prefix that is appended.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
transform(MethodDescription methodDescription)
Transforms a method's name to an alternative name.
-
-
-
Field Detail
-
DEFAULT_PREFIX
private static final java.lang.String DEFAULT_PREFIX
The default prefix to add to an original method name.- See Also:
- Constant Field Values
-
prefix
private final java.lang.String prefix
The prefix that is appended.
-
-
Method Detail
-
transform
public 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.- Specified by:
transform
in interfaceMethodNameTransformer
- Parameters:
methodDescription
- The original method.- Returns:
- The alternative name.
-
-