protected class BasicRefactoringTool.EnumConstantRenamer extends BasicRefactoringTool.AbstractRenamer
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.
|
textEdits
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(AbstractPathExpression expression) |
void |
visit(CollectionValuedPathExpression expression)
Visits the
CollectionValuedPathExpression expression. |
void |
visit(StateFieldPathExpression expression)
Visits the
StateFieldPathExpression 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, 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(AbstractPathExpression expression)
public void visit(CollectionValuedPathExpression expression)
CollectionValuedPathExpression
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(StateFieldPathExpression expression)
StateFieldPathExpression
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visit