Class ChangeMethodSignatureArguments.ThrownException

    • Constructor Detail

      • ThrownException

        public ThrownException​(int oldIndex,
                               String newSignature)
        Parameters:
        oldIndex - the index of the thrown exception in the original method or -1 if the thrown exception is a new thrown exception.
        newSignature - the new type of the thrown exception in signature notation (See Signature).
    • Method Detail

      • getOldIndex

        public int getOldIndex()
        Returns the index of the thrown exception in the original method or -1 if the thrown exception has been added.
        Returns:
        the index of the parameter in the original method or -1 if the thrown exception has been added.
      • getType

        public String getType()
        Returns the new type of the thrown exception in signature notation (See Signature).
        Returns:
        the the new type