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 aMethodRebaseResolver
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
MethodRebaseResolver.Resolution.ForRebasedConstructor
AMethodRebaseResolver.Resolution
of a rebased constructor.static class
MethodRebaseResolver.Resolution.ForRebasedMethod
AMethodRebaseResolver.Resolution
of a rebased method.static class
MethodRebaseResolver.Resolution.Preserved
AMethodRebaseResolver.Resolution
of a non-rebased method.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
isRebased
boolean isRebased()
Checks if this resolution represents a rebased method.- Returns:
true
if 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.
-
getAdditionalArguments
StackManipulation getAdditionalArguments()
A rebased method might require additional arguments in order to create a distinct signature. The stack manipulation that is returned from this method loads these arguments onto the operand stack. For a non-rebased method, this method throws anIllegalArgumentException
.- Returns:
- A stack manipulation that loaded the additional arguments onto the stack, if any.
-
-