@HashCodeAndEqualsPlugin.Enhance public static class MethodRebaseResolver.Resolution.ForRebasedConstructor extends Object implements MethodRebaseResolver.Resolution
MethodRebaseResolver.Resolution
of a rebased constructor.Modifier and Type | Class and Description |
---|---|
protected static class |
MethodRebaseResolver.Resolution.ForRebasedConstructor.RebasedConstructor
An description of a rebased constructor.
|
MethodRebaseResolver.Resolution.ForRebasedConstructor, MethodRebaseResolver.Resolution.ForRebasedMethod, MethodRebaseResolver.Resolution.Preserved
Modifier | Constructor and Description |
---|---|
protected |
ForRebasedConstructor(MethodDescription.InDefinedShape methodDescription,
TypeDescription placeholderType)
Creates a new resolution for a rebased constructor.
|
Modifier and Type | Method and Description |
---|---|
TypeList |
getPrependedParameters()
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.
|
static MethodRebaseResolver.Resolution |
of(MethodDescription.InDefinedShape methodDescription,
TypeDescription placeholderType)
Resolves a constructor rebasement.
|
protected ForRebasedConstructor(MethodDescription.InDefinedShape methodDescription, TypeDescription placeholderType)
methodDescription
- The rebased constructor.placeholderType
- The placeholder type that is prepended to the constructor signature.public static MethodRebaseResolver.Resolution of(MethodDescription.InDefinedShape methodDescription, TypeDescription placeholderType)
methodDescription
- The constructor to rebase.placeholderType
- The placeholder type to use to distinguish the constructor's signature.public boolean isRebased()
isRebased
in interface MethodRebaseResolver.Resolution
true
if this resolution requires to rebase a method.public MethodDescription.InDefinedShape getResolvedMethod()
getResolvedMethod
in interface MethodRebaseResolver.Resolution
public TypeList getPrependedParameters()
getPrependedParameters
in interface MethodRebaseResolver.Resolution
Copyright © 2014–2020. All rights reserved.