|
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.model.query.AnonymousStateObjectVisitor org.eclipse.persistence.jpa.jpql.model.query.AbstractTraverseChildrenVisitor org.eclipse.persistence.jpa.jpql.RefactoringTool.ClassNameRenamer
protected static class RefactoringTool.ClassNameRenamer
This visitor renames a fully qualified class name.
Field Summary | |
---|---|
protected RefactoringTool.StateObjectUpdater<ConstructorExpressionStateObject> |
constructorUpdater
The RefactoringTool.StateObjectUpdater that updates the class name when notified. |
protected java.lang.String |
newClassName
The current name of the class to rename. |
protected java.lang.String |
oldClassName
The new name of the class. |
protected RefactoringTool.StateObjectUpdater<StateFieldPathExpressionStateObject> |
pathExpressionUpdater
The RefactoringTool.StateObjectUpdater that updates the state field path expression when notified. |
Constructor Summary | |
---|---|
RefactoringTool.ClassNameRenamer(java.lang.String oldClassName,
java.lang.String newClassName)
Creates a new ClassNameRenamer . |
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 |
---|
protected RefactoringTool.StateObjectUpdater<ConstructorExpressionStateObject> constructorUpdater
RefactoringTool.StateObjectUpdater
that updates the class name when notified.
protected final java.lang.String newClassName
protected final java.lang.String oldClassName
protected RefactoringTool.StateObjectUpdater<StateFieldPathExpressionStateObject> pathExpressionUpdater
RefactoringTool.StateObjectUpdater
that updates the state field path expression when notified.
Constructor Detail |
---|
public RefactoringTool.ClassNameRenamer(java.lang.String oldClassName, java.lang.String newClassName)
ClassNameRenamer
.
oldClassName
- The current name of the class to renamenewClassName
- The new name of the classMethod Detail |
---|
protected RefactoringTool.StateObjectUpdater<ConstructorExpressionStateObject> buildConstructorUpdater()
protected RefactoringTool.StateObjectUpdater<StateFieldPathExpressionStateObject> buildPathExpressionStateObjectUpdater()
protected RefactoringTool.StateObjectUpdater<ConstructorExpressionStateObject> constructorUpdater()
protected RefactoringTool.StateObjectUpdater<StateFieldPathExpressionStateObject> pathExpressionUpdater()
public void visit(ConstructorExpressionStateObject stateObject)
ConstructorExpressionStateObject
.
visit
in interface StateObjectVisitor
visit
in class AnonymousStateObjectVisitor
stateObject
- The ConstructorExpressionStateObject
to visitpublic void visit(StateFieldPathExpressionStateObject stateObject)
StateFieldPathExpressionStateObject
.
visit
in interface StateObjectVisitor
visit
in class AnonymousStateObjectVisitor
stateObject
- The StateFieldPathExpressionStateObject
to visitprotected <T extends StateObject> void visit(T stateObject, java.lang.String value, RefactoringTool.StateObjectUpdater<T> updater)
StateObject
and if its value is the same as the old class name or
if the value represents an inner class of that old class name, then the given RefactoringTool.StateObjectUpdater
will be notified to replace the value.
stateObject
- The StateObject
that is being visitedvalue
- The value to check if it's the old class nameupdater
- The RefactoringTool.StateObjectUpdater
is notified when to replace the value
|
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 |