protected static class RefactoringTool.EnumConstantRenamer extends AbstractTraverseChildrenVisitor
Modifier and Type | Field and Description |
---|---|
protected IManagedTypeProvider |
managedTypeProvider
The external form of a provider that gives access to the JPA metadata.
|
protected java.lang.String |
newEnumConstant
The current name of the enum constant to rename.
|
protected java.lang.String |
oldEnumConstant
The new name of the enum constant.
|
Constructor and Description |
---|
EnumConstantRenamer(IManagedTypeProvider managedTypeProvider,
java.lang.String oldEnumConstant,
java.lang.String newEnumConstant)
Creates a new
ClassNameRenamer . |
Modifier and Type | Method and Description |
---|---|
protected void |
renameEnumConstant(AbstractPathExpressionStateObject stateObject) |
void |
visit(CollectionValuedPathExpressionStateObject stateObject)
Visits the given
CollectionValuedPathExpressionStateObject . |
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, visit
protected final IManagedTypeProvider managedTypeProvider
protected final java.lang.String newEnumConstant
protected final java.lang.String oldEnumConstant
public EnumConstantRenamer(IManagedTypeProvider managedTypeProvider, java.lang.String oldEnumConstant, java.lang.String newEnumConstant)
ClassNameRenamer
.managedTypeProvider
- The provider of managed typesoldEnumConstant
- The new name of the enum constantnewEnumConstant
- The current name of the enum constant to renameprotected void renameEnumConstant(AbstractPathExpressionStateObject stateObject)
public void visit(CollectionValuedPathExpressionStateObject stateObject)
CollectionValuedPathExpressionStateObject
.visit
in interface StateObjectVisitor
visit
in class AnonymousStateObjectVisitor
stateObject
- The CollectionValuedPathExpressionStateObject
to visitpublic void visit(StateFieldPathExpressionStateObject stateObject)
StateFieldPathExpressionStateObject
.visit
in interface StateObjectVisitor
visit
in class AnonymousStateObjectVisitor
stateObject
- The StateFieldPathExpressionStateObject
to visit