Class MethodRebaseResolver.Resolution.ForRebasedConstructor

    • Constructor Detail

      • ForRebasedConstructor

        protected ForRebasedConstructor​(MethodDescription.InDefinedShape methodDescription)
        Creates a new resolution for a rebased constructor.
        Parameters:
        methodDescription - The rebased constructor.
    • Method Detail

      • isRebased

        public boolean isRebased()
        Checks if this resolution represents a rebased method.
        Specified by:
        isRebased in interface MethodRebaseResolver.Resolution
        Returns:
        true if this resolution requires to rebase a method.
      • getAdditionalArguments

        public 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 an IllegalArgumentException.
        Specified by:
        getAdditionalArguments in interface MethodRebaseResolver.Resolution
        Returns:
        A stack manipulation that loaded the additional arguments onto the stack, if any.