예제 #1
0
 @Override
 protected Resolution rebase(MethodDescription.InDefinedShape methodDescription) {
   return methodDescription.isConstructor()
       ? Resolution.ForRebasedConstructor.of(
           methodDescription, placeholderType.getTypeDescription())
       : Resolution.ForRebasedMethod.of(methodDescription, methodNameTransformer);
 }
예제 #2
0
 @Override
 protected Resolution rebase(MethodDescription.InDefinedShape methodDescription) {
   if (methodDescription.isConstructor()) {
     throw new IllegalArgumentException("Cannot rebase constructor without preparation");
   }
   return Resolution.ForRebasedMethod.of(methodDescription, methodNameTransformer);
 }