protected class BasicRefactoringTool.AttributeNameRenamer extends BasicRefactoringTool.AbstractRenamer
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
newAttributeName
The new name of the attribute.
|
protected java.lang.String |
oldAttributeName
The current name of the attribute to rename.
|
protected java.lang.String |
typeName
The fully qualified name of the type that got one of its attributes renamed.
|
textEdits
Constructor and Description |
---|
BasicRefactoringTool.AttributeNameRenamer(JPQLQueryContext queryContext,
java.lang.String typeName,
java.lang.String oldAttributeName,
java.lang.String newAttributeName)
Creates a new
AttributeNameRenamer . |
Modifier and Type | Method and Description |
---|---|
protected void |
rename(AbstractPathExpression expression)
Performs the rename on the path expression.
|
void |
visit(CollectionValuedPathExpression expression)
Visits the
CollectionValuedPathExpression expression. |
void |
visit(StateFieldPathExpression expression)
Visits the
StateFieldPathExpression expression. |
addTextEdit, addTextEdit, buildTextEdit, reposition
visit
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
protected final java.lang.String newAttributeName
protected final java.lang.String oldAttributeName
protected final java.lang.String typeName
public BasicRefactoringTool.AttributeNameRenamer(JPQLQueryContext queryContext, java.lang.String typeName, java.lang.String oldAttributeName, java.lang.String newAttributeName)
AttributeNameRenamer
.queryContext
- The context used to query information about the JPQL querytypeName
- The fully qualified name of the type that got one of its attributes renamedoldAttributeName
- The current name of the attribute to renamenewAttributeName
- The new name of the attributeprotected void rename(AbstractPathExpression expression)
expression
- The AbstractPathExpression
being visited, which may have to have
its path renamedpublic void visit(CollectionValuedPathExpression expression)
CollectionValuedPathExpression
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(StateFieldPathExpression expression)
StateFieldPathExpression
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visit