public interface ParameterInfo
Modifier and Type | Field and Description |
---|---|
static int |
NEW_PARAMETER |
Modifier and Type | Method and Description |
---|---|
default PsiElement |
getActualValue(PsiElement callExpression,
java.lang.Object substitutor)
For added parameters, returns expression which should be created at the call site.
|
java.lang.String |
getDefaultValue()
For added parameters, returns the string representation of the default parameter value.
|
java.lang.String |
getName()
Returns the name of the parameter after the refactoring.
|
int |
getOldIndex()
Returns the index of the parameter in the old parameter list, or
NEW_PARAMETER if the parameter
was added by the refactoring. |
java.lang.String |
getTypeText()
Returns parameter type text
|
default boolean |
isNew()
Returns
true if the parameter was added by the refactoring. |
boolean |
isUseAnySingleVariable()
Flag whether refactoring should use any appropriate nearby variable as the default value
|
void |
setName(java.lang.String name)
Set parameter new name (to be changed to during refactoring)
|
void |
setUseAnySingleVariable(boolean b)
Flag whether refactoring should use any appropriate nearby variable as the default value
|
static final int NEW_PARAMETER
java.lang.String getName()
int getOldIndex()
NEW_PARAMETER
if the parameter
was added by the refactoring.NEW_PARAMETER
.default boolean isNew()
true
if the parameter was added by the refactoring.true
if the parameter was added by the refactoringjava.lang.String getDefaultValue()
default PsiElement getActualValue(PsiElement callExpression, java.lang.Object substitutor)
getDefaultValue()
string representation or default value for a type
Could be overridden to provide values which depend on the call sitevoid setName(java.lang.String name)
name
- new namejava.lang.String getTypeText()
boolean isUseAnySingleVariable()
void setUseAnySingleVariable(boolean b)
b
- new value