Class ChangeMethodSignatureArguments.Parameter
java.lang.Object
org.eclipse.jdt.core.refactoring.participants.ChangeMethodSignatureArguments.Parameter
- Enclosing class:
- ChangeMethodSignatureArguments
Instances of
ChangeMethodSignatureArguments.Parameter
are used to describe the new parameters
after a change method signature refactoring.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe default value for new parameters ornull
.getName()
Returns the new name of the parameter.int
Returns the index of the parameter in the original method or-1
if the parameter has been added.getType()
Returns the new type of the parameter in signature notation (SeeSignature
).toString()
-
Constructor Details
-
Parameter
Creates aChangeMethodSignatureArguments.Parameter
.- Parameters:
oldIndex
- the index of the parameter in the original method or-1
if the parameter is a new parameter.newName
- the new name of the parameter.newSignature
- the new type of the parameter in signature notation (SeeSignature
).defaultValue
- the default value for new parameters ornull
.
-
-
Method Details
-
getOldIndex
public int getOldIndex()Returns the index of the parameter in the original method or-1
if the parameter has been added.- Returns:
- the index of the parameter in the original method or
-1
if the parameter has been added
-
getName
Returns the new name of the parameter. If the name has not been changed by the refactoring, the original parameter name is returned.- Returns:
- the new parameter name
-
getType
Returns the new type of the parameter in signature notation (SeeSignature
). If the type has not been changed by the refactoring, the original type signature is returned.- Returns:
- the the new type
-
getDefaultValue
The default value for new parameters ornull
.- Returns:
- returns the default value for new parameters or
null
.
-
toString
-