EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

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

java.lang.Object
  extended by org.eclipse.persistence.jpa.jpql.model.query.AnonymousStateObjectVisitor
      extended by org.eclipse.persistence.jpa.jpql.model.query.AbstractTraverseChildrenVisitor
          extended by org.eclipse.persistence.jpa.jpql.RefactoringTool.EnumConstantRenamer
All Implemented Interfaces:
StateObjectVisitor
Enclosing class:
RefactoringTool

protected static class RefactoringTool.EnumConstantRenamer
extends AbstractTraverseChildrenVisitor

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.
 
Constructor Summary
RefactoringTool.EnumConstantRenamer(IManagedTypeProvider managedTypeProvider, java.lang.String oldEnumConstant, java.lang.String newEnumConstant)
          Creates a new ClassNameRenamer.
 
Method Summary
protected  void renameEnumConstant(AbstractPathExpressionStateObject stateObject)
           
 void visit(CollectionValuedPathExpressionStateObject stateObject)
          Visits the given CollectionValuedPathExpressionStateObject.
 void visit(StateFieldPathExpressionStateObject stateObject)
          Visits the given StateFieldPathExpressionStateObject.
 
Methods inherited from class org.eclipse.persistence.jpa.jpql.model.query.AbstractTraverseChildrenVisitor
visit
 
Methods inherited from class org.eclipse.persistence.jpa.jpql.model.query.AnonymousStateObjectVisitor
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, 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

RefactoringTool.EnumConstantRenamer

public RefactoringTool.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(AbstractPathExpressionStateObject stateObject)

visit

public void visit(CollectionValuedPathExpressionStateObject stateObject)
Visits the given CollectionValuedPathExpressionStateObject.

Specified by:
visit in interface StateObjectVisitor
Overrides:
visit in class AnonymousStateObjectVisitor
Parameters:
stateObject - The CollectionValuedPathExpressionStateObject to visit

visit

public void visit(StateFieldPathExpressionStateObject stateObject)
Visits the given StateFieldPathExpressionStateObject.

Specified by:
visit in interface StateObjectVisitor
Overrides:
visit in class AnonymousStateObjectVisitor
Parameters:
stateObject - The StateFieldPathExpressionStateObject to visit

EclipseLink 2.4.2, build 'v20130514-5956486' API Reference