EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

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

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

protected class BasicRefactoringTool.VariableNameRenamer
extends BasicRefactoringTool.AbstractRenamer

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.
 
Fields inherited from class org.eclipse.persistence.jpa.jpql.BasicRefactoringTool.AbstractRenamer
textEdits
 
Constructor Summary
BasicRefactoringTool.VariableNameRenamer(java.lang.String oldVariableName, java.lang.String newVariableName)
          Creates a new VariableNameRenamer.
 
Method Summary
 void visit(IdentificationVariable expression)
          Visits the IdentificationVariable 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, 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

BasicRefactoringTool.VariableNameRenamer

public BasicRefactoringTool.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(IdentificationVariable expression)
Visits the IdentificationVariable 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