EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

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

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.VariableNameRenamer
All Implemented Interfaces:
StateObjectVisitor
Enclosing class:
RefactoringTool

protected static class RefactoringTool.VariableNameRenamer
extends AbstractTraverseChildrenVisitor

This visitor renames all the identification variables found in the JPQL query.


Field Summary
protected  java.lang.String newVariableName
          The new name of the identification variable.
protected  java.lang.String oldVariableName
          The current identification variable name.
 
Constructor Summary
RefactoringTool.VariableNameRenamer(java.lang.String oldVariableName, java.lang.String newVariableName)
          Creates a new VariableNameRenamer.
 
Method Summary
 void visit(CollectionValuedPathExpressionStateObject stateObject)
          Visits the given CollectionValuedPathExpressionStateObject.
 void visit(IdentificationVariableStateObject stateObject)
          Visits the given IdentificationVariableStateObject.
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

newVariableName

protected final java.lang.String newVariableName
The new name of the identification variable.


oldVariableName

protected final java.lang.String oldVariableName
The current identification variable name.

Constructor Detail

RefactoringTool.VariableNameRenamer

public RefactoringTool.VariableNameRenamer(java.lang.String oldVariableName,
                                           java.lang.String newVariableName)
Creates a new VariableNameRenamer.

Parameters:
oldVariableName - The current identification variable name
newVariableName - The new name of the identification variable
Method Detail

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(IdentificationVariableStateObject stateObject)
Visits the given IdentificationVariableStateObject.

Specified by:
visit in interface StateObjectVisitor
Overrides:
visit in class AnonymousStateObjectVisitor
Parameters:
stateObject - The IdentificationVariableStateObject 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