EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

org.eclipse.persistence.jpa.jpql
Class BasicRefactoringTool.EnumConstantRenamer

java.lang.Object
  extended by org.eclipse.persistence.jpa.jpql.parser.AnonymousExpressionVisitor
      extended by org.eclipse.persistence.jpa.jpql.parser.AbstractTraverseChildrenVisitor
          extended by org.eclipse.persistence.jpa.jpql.BasicRefactoringTool.AbstractRenamer
              extended by org.eclipse.persistence.jpa.jpql.BasicRefactoringTool.EnumConstantRenamer
All Implemented Interfaces:
ExpressionVisitor
Enclosing class:
BasicRefactoringTool

protected class BasicRefactoringTool.EnumConstantRenamer
extends BasicRefactoringTool.AbstractRenamer

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

managedTypeProvider

protected final IManagedTypeProvider managedTypeProvider
The external form of a provider that gives access to the JPA metadata.


newEnumConstant

protected final java.lang.String newEnumConstant
The current name of the enum constant to rename.


oldEnumConstant

protected final java.lang.String oldEnumConstant
The new name of the enum constant.

Constructor Detail

BasicRefactoringTool.EnumConstantRenamer

public BasicRefactoringTool.EnumConstantRenamer(IManagedTypeProvider managedTypeProvider,
                                                java.lang.String oldEnumConstant,
                                                java.lang.String newEnumConstant)
Creates a new ClassNameRenamer.

Parameters:
managedTypeProvider - The provider of managed types
oldEnumConstant - The new name of the enum constant
newEnumConstant - The current name of the enum constant to rename
Method Detail

renameEnumConstant

protected void renameEnumConstant(AbstractPathExpression expression)

visit

public void visit(CollectionValuedPathExpression expression)
Visits the CollectionValuedPathExpression expression.

Specified by:
visit in interface ExpressionVisitor
Overrides:
visit in class AnonymousExpressionVisitor
Parameters:
expression - The Expression to visit

visit

public void visit(StateFieldPathExpression expression)
Visits the StateFieldPathExpression expression.

Specified by:
visit in interface ExpressionVisitor
Overrides:
visit in class AnonymousExpressionVisitor
Parameters:
expression - The Expression to visit

EclipseLink 2.4.2, build 'v20130514-5956486' API Reference