protected class BasicRefactoringTool.ResultVariableNameRenamer extends BasicRefactoringTool.AbstractRenamer
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
newVariableName
The new name of the result variable.
|
protected java.lang.String |
oldVariableName
The current result variable name.
|
protected boolean |
renameIdentificationVariable
Makes sure an identification variable is renamed only when it's used by an order by item.
|
textEdits
Constructor and Description |
---|
ResultVariableNameRenamer(java.lang.String oldVariableName,
java.lang.String newVariableName)
Creates a new
ResultVariableNameRenamer . |
Modifier and Type | Method and Description |
---|---|
void |
visit(IdentificationVariable expression)
Visits the
IdentificationVariable expression. |
void |
visit(ResultVariable expression)
Visits the
ResultVariable expression. |
void |
visit(SelectStatement expression)
Visits the
SelectStatement 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
protected final java.lang.String newVariableName
protected final java.lang.String oldVariableName
protected boolean renameIdentificationVariable
public ResultVariableNameRenamer(java.lang.String oldVariableName, java.lang.String newVariableName)
ResultVariableNameRenamer
.oldVariableName
- The current result variable namenewVariableName
- The new name of the result variablepublic void visit(IdentificationVariable expression)
IdentificationVariable
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(ResultVariable expression)
ResultVariable
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(SelectStatement expression)
SelectStatement
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visit