Closed gzvincen closed 6 days ago
Do you really need to change the method? I would change the modifier to private
if so using ModifierTransformation
and add another method with your desired name that invokes the now private method using MethodCall
.
There are the following classes and code
The generated class file is as follows:
But I expect the generated class to look like this, where the bar method name is changed to barTest,Just by changing the method name, the body of the method remains the same. I have tried the method transform, there is no suitable method. Is there a proper way for me to just change the name of the method in the class?