|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.jpa.jpql.parser.AnonymousExpressionVisitor org.eclipse.persistence.jpa.jpql.parser.AbstractTraverseChildrenVisitor org.eclipse.persistence.jpa.jpql.BasicRefactoringTool.AbstractRenamer org.eclipse.persistence.jpa.jpql.BasicRefactoringTool.EnumConstantRenamer
protected class BasicRefactoringTool.EnumConstantRenamer
This visitor renames an enum constant. An enum constant is represented by a path expression.
Field Summary | |
---|---|
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. |
Fields inherited from class org.eclipse.persistence.jpa.jpql.BasicRefactoringTool.AbstractRenamer |
---|
textEdits |
Constructor Summary | |
---|---|
BasicRefactoringTool.EnumConstantRenamer(IManagedTypeProvider managedTypeProvider,
java.lang.String oldEnumConstant,
java.lang.String newEnumConstant)
Creates a new ClassNameRenamer . |
Method Summary | |
---|---|
protected void |
renameEnumConstant(AbstractPathExpression expression)
|
void |
visit(CollectionValuedPathExpression expression)
Visits the CollectionValuedPathExpression expression. |
void |
visit(StateFieldPathExpression expression)
Visits the StateFieldPathExpression expression. |
Methods inherited from class org.eclipse.persistence.jpa.jpql.BasicRefactoringTool.AbstractRenamer |
---|
addTextEdit, addTextEdit, buildTextEdit, reposition |
Methods inherited from class org.eclipse.persistence.jpa.jpql.parser.AbstractTraverseChildrenVisitor |
---|
visit |
Methods inherited from class org.eclipse.persistence.jpa.jpql.parser.AnonymousExpressionVisitor |
---|
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final IManagedTypeProvider managedTypeProvider
protected final java.lang.String newEnumConstant
protected final java.lang.String oldEnumConstant
Constructor Detail |
---|
public BasicRefactoringTool.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 renameMethod Detail |
---|
protected 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
|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |