@HashCodeAndEqualsPlugin.Enhance public static class MethodRebaseResolver.Resolution.Preserved extends java.lang.Object implements MethodRebaseResolver.Resolution
MethodRebaseResolver.Resolution of a non-rebased method.MethodRebaseResolver.Resolution.ForRebasedConstructor, MethodRebaseResolver.Resolution.ForRebasedMethod, MethodRebaseResolver.Resolution.Preserved| Modifier and Type | Field and Description |
|---|---|
private MethodDescription.InDefinedShape |
methodDescription
The preserved method.
|
| Constructor and Description |
|---|
Preserved(MethodDescription.InDefinedShape methodDescription)
Creates a new
MethodRebaseResolver.Resolution for
a non-rebased method. |
| Modifier and Type | Method and Description |
|---|---|
StackManipulation |
getAdditionalArguments()
A rebased method might require additional arguments in order to create a distinct signature.
|
MethodDescription.InDefinedShape |
getResolvedMethod()
Returns the resolved method if this resolution represents a rebased method or the original method.
|
boolean |
isRebased()
Checks if this resolution represents a rebased method.
|
private final MethodDescription.InDefinedShape methodDescription
public Preserved(MethodDescription.InDefinedShape methodDescription)
MethodRebaseResolver.Resolution for
a non-rebased method.methodDescription - The preserved method.public boolean isRebased()
isRebased in interface MethodRebaseResolver.Resolutiontrue if this resolution requires to rebase a method.public MethodDescription.InDefinedShape getResolvedMethod()
getResolvedMethod in interface MethodRebaseResolver.Resolutionpublic StackManipulation getAdditionalArguments()
IllegalArgumentException.getAdditionalArguments in interface MethodRebaseResolver.Resolution