|
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.parser.AnonymousExpressionVisitor org.eclipse.persistence.jpa.jpql.parser.AbstractTraverseChildrenVisitor org.eclipse.persistence.jpa.jpql.BasicRefactoringTool.AbstractRenamer org.eclipse.persistence.jpa.jpql.BasicRefactoringTool.ClassNameRenamer
protected class BasicRefactoringTool.ClassNameRenamer
This visitor renames a fully qualified class name.
Field Summary | |
---|---|
protected java.lang.String |
newClassName
The current name of the class to rename. |
protected java.lang.String |
oldClassName
The new name of the class. |
Fields inherited from class org.eclipse.persistence.jpa.jpql.BasicRefactoringTool.AbstractRenamer |
---|
textEdits |
Constructor Summary | |
---|---|
BasicRefactoringTool.ClassNameRenamer(java.lang.String oldClassName,
java.lang.String newClassName)
Creates a new ClassNameRenamer . |
Method Summary | |
---|---|
void |
visit(ConstructorExpression expression)
Visits the ConstructorExpression expression. |
protected 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 given StateObjectUpdater will be notified to replace the value. |
void |
visit(StateFieldPathExpression expression)
Visits the StateFieldPathExpression 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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final java.lang.String newClassName
protected final java.lang.String oldClassName
Constructor Detail |
---|
public BasicRefactoringTool.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 |
---|
public void visit(ConstructorExpression expression)
ConstructorExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitprotected void visit(Expression expression, java.lang.String value, int extraOffset)
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 StateObjectUpdater
will be notified to replace the value.
expression
- The
that is being visitedextraOffset
- Additional offset that will be added to the given Expression
's
offset, which is the length of the string representation of what is before itvalue
- The value to check if it's the old class nameupdater
- The StateObjectUpdater
is notified when to replace the valuepublic void visit(StateFieldPathExpression expression)
StateFieldPathExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visit
|
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 |