protected class BasicRefactoringTool.EntityNameRenamer extends BasicRefactoringTool.AbstractRenamer
StateObjects
that can represent an entity name:
AbstractSchemaNameStateObject
:
Employee inSELECT e
FROM Employee e
EntityTypeLiteralStateObject
:
Exempt in SELECT CASE TYPE(e) WHEN Exempt THEN 'Exempt'
ELSE 'NONE'
END
FROM Employee e
IdentificationVariableStateObject
:
Exempt in SELECT e
FROM Employee e
WHERE TYPE(e) <> Exempt
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
newEntityName
The current name of the entity to rename.
|
protected java.lang.String |
oldEntityName
The new name of the entity.
|
textEdits
Constructor and Description |
---|
BasicRefactoringTool.EntityNameRenamer(java.lang.String oldEntityName,
java.lang.String newEntityName)
Creates a new
EntityNameRenamer . |
Modifier and Type | Method and Description |
---|---|
void |
visit(AbstractSchemaName expression)
Visits the
AbstractSchemaName expression. |
void |
visit(EntityTypeLiteral expression)
Visits the
EntityTypeLiteral expression. |
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
protected final java.lang.String newEntityName
protected final java.lang.String oldEntityName
public BasicRefactoringTool.EntityNameRenamer(java.lang.String oldEntityName, java.lang.String newEntityName)
EntityNameRenamer
.oldEntityName
- The current name of the entity to renamenewEntityName
- The new name of the entitypublic void visit(AbstractSchemaName expression)
AbstractSchemaName
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(EntityTypeLiteral expression)
EntityTypeLiteral
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(IdentificationVariable expression)
IdentificationVariable
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visit