protected static class RefactoringTool.VariableNameRenamer extends AbstractTraverseChildrenVisitor
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.
|
Constructor and Description |
---|
RefactoringTool.VariableNameRenamer(java.lang.String oldVariableName,
java.lang.String newVariableName)
Creates a new
VariableNameRenamer . |
Modifier and Type | Method and Description |
---|---|
void |
visit(CollectionValuedPathExpressionStateObject stateObject)
Visits the given
CollectionValuedPathExpressionStateObject . |
void |
visit(IdentificationVariableStateObject stateObject)
Visits the given
IdentificationVariableStateObject . |
void |
visit(StateFieldPathExpressionStateObject stateObject)
Visits the given
StateFieldPathExpressionStateObject . |
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 RefactoringTool.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(CollectionValuedPathExpressionStateObject stateObject)
CollectionValuedPathExpressionStateObject
.visit
in interface StateObjectVisitor
visit
in class AnonymousStateObjectVisitor
stateObject
- The CollectionValuedPathExpressionStateObject
to visitpublic void visit(IdentificationVariableStateObject stateObject)
IdentificationVariableStateObject
.visit
in interface StateObjectVisitor
visit
in class AnonymousStateObjectVisitor
stateObject
- The IdentificationVariableStateObject
to visitpublic void visit(StateFieldPathExpressionStateObject stateObject)
StateFieldPathExpressionStateObject
.visit
in interface StateObjectVisitor
visit
in class AnonymousStateObjectVisitor
stateObject
- The StateFieldPathExpressionStateObject
to visit