protected class BasicRefactoringTool.VariableNameRenamer extends BasicRefactoringTool.AbstractRenamer
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
newVariableName
The new name of the identification variable.
|
protected java.lang.String |
oldVariableName
The current identification variable name.
|
textEdits
Constructor and Description |
---|
VariableNameRenamer(java.lang.String oldVariableName,
java.lang.String newVariableName)
Creates a new
VariableNameRenamer . |
Modifier and Type | Method and Description |
---|---|
void |
visit(IdentificationVariable expression)
Visits the
IdentificationVariable expression. |
addTextEdit, addTextEdit, buildTextEdit, reposition
visit
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
protected final java.lang.String newVariableName
protected final java.lang.String oldVariableName
public VariableNameRenamer(java.lang.String oldVariableName, java.lang.String newVariableName)
VariableNameRenamer
.oldVariableName
- The current identification variable namenewVariableName
- The new name of the identification variablepublic void visit(IdentificationVariable expression)
IdentificationVariable
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visit