Interface MethodRebaseResolver.Resolution
- All Known Implementing Classes:
MethodRebaseResolver.Resolution.ForRebasedConstructor, MethodRebaseResolver.Resolution.ForRebasedMethod, MethodRebaseResolver.Resolution.Preserved
- Enclosing interface:
MethodRebaseResolver
public static interface MethodRebaseResolver.Resolution
A resolution for a method that was checked by a
MethodRebaseResolver.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classAMethodRebaseResolver.Resolutionof a rebased constructor.static classAMethodRebaseResolver.Resolutionof a rebased method.static classAMethodRebaseResolver.Resolutionof a non-rebased method. -
Method Summary
Modifier and TypeMethodDescriptionA rebased method might require additional arguments in order to create a distinct signature.Returns the resolved method if this resolution represents a rebased method or the original method.booleanChecks if this resolution represents a rebased method.
-
Method Details
-
isRebased
boolean isRebased()Checks if this resolution represents a rebased method.- Returns:
trueif this resolution requires to rebase a method.
-
getResolvedMethod
MethodDescription.InDefinedShape getResolvedMethod()Returns the resolved method if this resolution represents a rebased method or the original method.- Returns:
- The resolved method if this resolution represents a rebased method or the original method.
-
getAppendedParameters
TypeList getAppendedParameters()A rebased method might require additional arguments in order to create a distinct signature.- Returns:
- A list of parameters that were appended to the rebased method or constructor.
-