public static final class ChangeParametersRefactoring.ParameterInfo extends Object
Constructor and Description |
---|
ParameterInfo(int origIndex)
Creates a new instance of ParameterInfo.
|
ParameterInfo(int origIndex,
String name,
String type,
String defaultVal)
Creates a new instanceof of ParameterInfo.
|
Modifier and Type | Method and Description |
---|---|
String |
getDefaultValue()
Returns value of the default value in case of the new parameter.
|
String |
getName()
Returns value of the name of parameter.
|
int |
getOriginalIndex()
Returns value of original parameter index.
|
String |
getType()
Returns value of the type of parameter.
|
public ParameterInfo(int origIndex, String name, String type, String defaultVal)
origIndex
- for newly added parameters, use -1, otherwise
use index in original parameters listname
- parameter nametype
- parameter typedefaultVal
- should be provided for the all new parameters.
For changed parameters, it is ignored.public ParameterInfo(int origIndex)
origIndex
- position index in original parameters listpublic int getOriginalIndex()
public String getName()
public String getType()
public String getDefaultValue()