Class BasicRefactoringTool.ClassNameRenamer
- java.lang.Object
- 
- org.eclipse.persistence.jpa.jpql.parser.AnonymousExpressionVisitor
- 
- org.eclipse.persistence.jpa.jpql.parser.AbstractTraverseChildrenVisitor
- 
- org.eclipse.persistence.jpa.jpql.tools.BasicRefactoringTool.AbstractRenamer
- 
- org.eclipse.persistence.jpa.jpql.tools.BasicRefactoringTool.ClassNameRenamer
 
 
 
 
- 
- All Implemented Interfaces:
- ExpressionVisitor
 - Enclosing class:
- BasicRefactoringTool
 
 protected class BasicRefactoringTool.ClassNameRenamer extends BasicRefactoringTool.AbstractRenamer This visitor renames a fully qualified class name.
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.lang.StringnewClassNameThe current name of the class to rename.protected java.lang.StringoldClassNameThe new name of the class.- 
Fields inherited from class org.eclipse.persistence.jpa.jpql.tools.BasicRefactoringTool.AbstractRenamertextEdits
 
- 
 - 
Constructor SummaryConstructors Constructor Description ClassNameRenamer(java.lang.String oldClassName, java.lang.String newClassName)Creates a newClassNameRenamer.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvisit(CollectionValuedPathExpression expression)Visits theCollectionValuedPathExpressionexpression.voidvisit(ConstructorExpression expression)Visits theConstructorExpressionexpression.protected voidvisit(Expression expression, java.lang.String value, int extraOffset)Visits the given 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 givenStateObjectUpdaterwill be notified to replace the value.voidvisit(StateFieldPathExpression expression)Visits theStateFieldPathExpressionexpression.- 
Methods inherited from class org.eclipse.persistence.jpa.jpql.tools.BasicRefactoringTool.AbstractRenameraddTextEdit, addTextEdit, buildTextEdit, reposition
 - 
Methods inherited from class org.eclipse.persistence.jpa.jpql.parser.AbstractTraverseChildrenVisitorvisit
 - 
Methods inherited from class org.eclipse.persistence.jpa.jpql.parser.AnonymousExpressionVisitorvisit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
 
- 
 
- 
- 
- 
Method Detail- 
visitpublic void visit(CollectionValuedPathExpression expression) Visits theCollectionValuedPathExpressionexpression.- Specified by:
- visitin interface- ExpressionVisitor
- Overrides:
- visitin class- AnonymousExpressionVisitor
- Parameters:
- expression- The- Expressionto visit
 
 - 
visitpublic void visit(ConstructorExpression expression) Visits theConstructorExpressionexpression.- Specified by:
- visitin interface- ExpressionVisitor
- Overrides:
- visitin class- AnonymousExpressionVisitor
- Parameters:
- expression- The- Expressionto visit
 
 - 
visitprotected void visit(Expression expression, java.lang.String value, int extraOffset) Visits the given 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 givenStateObjectUpdaterwill be notified to replace the value.- Parameters:
- expression- The that is being visited
- extraOffset- Additional offset that will be added to the given- Expression's offset, which is the length of the string representation of what is before it
- value- The value to check if it's the old class name
 
 - 
visitpublic void visit(StateFieldPathExpression expression) Visits theStateFieldPathExpressionexpression.- Specified by:
- visitin interface- ExpressionVisitor
- Overrides:
- visitin class- AnonymousExpressionVisitor
- Parameters:
- expression- The- Expressionto visit
 
 
- 
 
-