Class ChangeMethodSignatureArguments.ThrownException
java.lang.Object
org.eclipse.jdt.core.refactoring.participants.ChangeMethodSignatureArguments.ThrownException
- Enclosing class:
ChangeMethodSignatureArguments
Instances of
ChangeMethodSignatureArguments.ThrownException are used to describe the new thrown
exceptions after a change method signature refactoring.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ThrownException
- Parameters:
oldIndex- the index of the thrown exception in the original method or-1if the thrown exception is a new thrown exception.newSignature- the new type of the thrown exception in signature notation (SeeSignature).
-
-
Method Details
-
getOldIndex
public int getOldIndex()Returns the index of the thrown exception in the original method or-1if the thrown exception has been added.- Returns:
- the index of the parameter in the original method or
-1if the thrown exception has been added.
-
getType
Returns the new type of the thrown exception in signature notation (SeeSignature).- Returns:
- the the new type
-
toString
-