public static final class ChangeMethodSignatureArguments.Parameter extends Object
ChangeMethodSignatureArguments.Parameter
are used to describe the new parameters
after a change method signature refactoring.Constructor and Description |
---|
Parameter(int oldIndex,
String newName,
String newSignature,
String defaultValue)
Creates a
ChangeMethodSignatureArguments.Parameter . |
Modifier and Type | Method and Description |
---|---|
String |
getDefaultValue()
The default value for new parameters or
null . |
String |
getName()
Returns the new name of the parameter.
|
int |
getOldIndex()
Returns the index of the parameter in the original method or
-1 if the parameter
has been added. |
String |
getType()
Returns the new type of the parameter in signature notation (See
Signature ). |
String |
toString() |
public Parameter(int oldIndex, String newName, String newSignature, String defaultValue)
ChangeMethodSignatureArguments.Parameter
.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 (See Signature
).defaultValue
- the default value for new parameters or null
.public int getOldIndex()
-1
if the parameter
has been added.-1
if the parameter
has been addedpublic String getName()
public String getType()
Signature
).
If the type has not been changed by the refactoring, the original type signature is returned.public String getDefaultValue()
null
.null
.
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.