protected static class RefactoringTool.EntityNameRenamer extends AbstractTraverseChildrenVisitor
StateObjects
that can represent an entity name:
AbstractSchemaNameStateObject
:
Employee inSELECT e
FROM Employee e
EntityTypeLiteralStateObject
:
Exempt inSELECT CASE TYPE(e) WHEN Exempt THEN 'Exempt'
ELSE 'NONE'
END
FROM Employee e
IdentificationVariableStateObject
:
Exempt inSELECT e
FROM Employee e
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.
|
Constructor and Description |
---|
RefactoringTool.EntityNameRenamer(java.lang.String oldEntityName,
java.lang.String newEntityName)
Creates a new
EntityNameRenamer . |
Modifier and Type | Method and Description |
---|---|
void |
visit(AbstractSchemaNameStateObject stateObject)
Visits the given
AbstractSchemaNameStateObject . |
void |
visit(EntityTypeLiteralStateObject stateObject)
Visits the given
EntityTypeLiteralStateObject . |
void |
visit(IdentificationVariableStateObject stateObject)
Visits the given
IdentificationVariableStateObject . |
void |
visit(TreatExpressionStateObject stateObject)
Visits the given
TreatExpressionStateObject . |
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 RefactoringTool.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(AbstractSchemaNameStateObject stateObject)
AbstractSchemaNameStateObject
.visit
in interface StateObjectVisitor
visit
in class AnonymousStateObjectVisitor
stateObject
- The AbstractSchemaNameStateObject
to visitpublic void visit(EntityTypeLiteralStateObject stateObject)
EntityTypeLiteralStateObject
.visit
in interface StateObjectVisitor
visit
in class AnonymousStateObjectVisitor
stateObject
- The EntityTypeLiteralStateObject
to visitpublic void visit(IdentificationVariableStateObject stateObject)
IdentificationVariableStateObject
.visit
in interface StateObjectVisitor
visit
in class AnonymousStateObjectVisitor
stateObject
- The IdentificationVariableStateObject
to visitpublic void visit(TreatExpressionStateObject stateObject)
TreatExpressionStateObject
.visit
in interface StateObjectVisitor
visit
in class AnonymousStateObjectVisitor
stateObject
- The TreatExpressionStateObject
to visit