Class RefactoringTool.VariableNameRenamer
java.lang.Object
org.eclipse.persistence.jpa.jpql.tools.model.query.AnonymousStateObjectVisitor
org.eclipse.persistence.jpa.jpql.tools.model.query.AbstractTraverseChildrenVisitor
org.eclipse.persistence.jpa.jpql.tools.RefactoringTool.VariableNameRenamer
- All Implemented Interfaces:
StateObjectVisitor
- Enclosing class:
RefactoringTool
This visitor renames all the identification variables found in the JPQL query.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionVariableNameRenamer
(String oldVariableName, String newVariableName) Creates a newVariableNameRenamer
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
visit
(CollectionValuedPathExpressionStateObject stateObject) Visits the givenCollectionValuedPathExpressionStateObject
.void
visit
(IdentificationVariableStateObject stateObject) Visits the givenIdentificationVariableStateObject
.void
visit
(StateFieldPathExpressionStateObject stateObject) Visits the givenStateFieldPathExpressionStateObject
.Methods inherited from class org.eclipse.persistence.jpa.jpql.tools.model.query.AbstractTraverseChildrenVisitor
visit
Methods inherited from class org.eclipse.persistence.jpa.jpql.tools.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
-
Field Details
-
newVariableName
The new name of the identification variable. -
oldVariableName
The current identification variable name.
-
-
Constructor Details
-
VariableNameRenamer
Creates a newVariableNameRenamer
.- Parameters:
oldVariableName
- The current identification variable namenewVariableName
- The new name of the identification variable
-
-
Method Details
-
visit
Description copied from interface:StateObjectVisitor
Visits the givenCollectionValuedPathExpressionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Overrides:
visit
in classAnonymousStateObjectVisitor
- Parameters:
stateObject
- TheCollectionValuedPathExpressionStateObject
to visit
-
visit
Description copied from interface:StateObjectVisitor
Visits the givenIdentificationVariableStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Overrides:
visit
in classAnonymousStateObjectVisitor
- Parameters:
stateObject
- TheIdentificationVariableStateObject
to visit
-
visit
Description copied from interface:StateObjectVisitor
Visits the givenStateFieldPathExpressionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Overrides:
visit
in classAnonymousStateObjectVisitor
- Parameters:
stateObject
- TheStateFieldPathExpressionStateObject
to visit
-