|
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.Objectorg.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.FieldNameRenamer
protected class BasicRefactoringTool.FieldNameRenamer
This visitor renames any segment of a path expression.
| Field Summary | |
|---|---|
protected java.lang.String |
newFieldName
The new name of the attribute. |
protected java.lang.String |
oldFieldName
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. |
| Fields inherited from class org.eclipse.persistence.jpa.jpql.BasicRefactoringTool.AbstractRenamer |
|---|
textEdits |
| Constructor Summary | |
|---|---|
BasicRefactoringTool.FieldNameRenamer(JPQLQueryContext queryContext,
java.lang.String typeName,
java.lang.String oldFieldName,
java.lang.String newFieldName)
Creates a new FieldNameRenamer. |
|
| Method Summary | |
|---|---|
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. |
| 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 newFieldName
protected final java.lang.String oldFieldName
protected final java.lang.String typeName
| Constructor Detail |
|---|
public BasicRefactoringTool.FieldNameRenamer(JPQLQueryContext queryContext,
java.lang.String typeName,
java.lang.String oldFieldName,
java.lang.String newFieldName)
FieldNameRenamer.
queryContext - The context used to query information about the JPQL querytypeName - The fully qualified name of the type that got one of its attributes renamedoldFieldName - The current name of the attribute to renamenewFieldName - The new name of the attribute| Method Detail |
|---|
protected 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 ExpressionVisitorvisit in class AnonymousExpressionVisitorexpression - The Expression to visitpublic void visit(StateFieldPathExpression expression)
StateFieldPathExpression expression.
visit in interface ExpressionVisitorvisit in class AnonymousExpressionVisitorexpression - 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 | ||||||||