|
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.ResultVariableNameRenamer
protected class BasicRefactoringTool.ResultVariableNameRenamer
This visitor renames all the result variables found in the JPQL query.
Field Summary | |
---|---|
protected java.lang.String |
newVariableName
The new name of the result variable. |
protected java.lang.String |
oldVariableName
The current result variable name. |
protected boolean |
renameIdentificationVariable
Makes sure an identification variable is renamed only when it's used by an order by item. |
Fields inherited from class org.eclipse.persistence.jpa.jpql.BasicRefactoringTool.AbstractRenamer |
---|
textEdits |
Constructor Summary | |
---|---|
BasicRefactoringTool.ResultVariableNameRenamer(java.lang.String oldVariableName,
java.lang.String newVariableName)
Creates a new ResultVariableNameRenamer . |
Method Summary | |
---|---|
void |
visit(IdentificationVariable expression)
Visits the IdentificationVariable expression. |
void |
visit(ResultVariable expression)
Visits the ResultVariable expression. |
void |
visit(SelectStatement expression)
Visits the SelectStatement 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 |
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 newVariableName
protected final java.lang.String oldVariableName
protected boolean renameIdentificationVariable
Constructor Detail |
---|
public BasicRefactoringTool.ResultVariableNameRenamer(java.lang.String oldVariableName, java.lang.String newVariableName)
ResultVariableNameRenamer
.
oldVariableName
- The current result variable namenewVariableName
- The new name of the result variableMethod Detail |
---|
public void visit(IdentificationVariable expression)
IdentificationVariable
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(ResultVariable expression)
ResultVariable
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(SelectStatement expression)
SelectStatement
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 |