public static class JavaUnresolvableLocalCollisionDetector.ConflictingLocalVariablesVisitor extends JavaRecursiveElementWalkingVisitor
Modifier and Type | Field and Description |
---|---|
protected JavaUnresolvableLocalCollisionDetector.CollidingVariableVisitor |
myCollidingNameVisitor |
protected java.lang.String |
myName |
EMPTY_VISITOR
Constructor and Description |
---|
ConflictingLocalVariablesVisitor(java.lang.String newName,
JavaUnresolvableLocalCollisionDetector.CollidingVariableVisitor collidingNameVisitor) |
Modifier and Type | Method and Description |
---|---|
void |
visitField(PsiField field) |
void |
visitReferenceExpression(PsiReferenceExpression expression)
PsiReferenceExpression is PsiReferenceElement and PsiExpression at the same time.
|
void |
visitVariable(PsiVariable variable) |
elementFinished, stopWalking, visitElement
visitAnnotation, visitAnnotationArrayInitializer, visitAnnotationMethod, visitAnnotationParameterList, visitAnonymousClass, visitArrayAccessExpression, visitArrayInitializerExpression, visitAssertStatement, visitAssignmentExpression, visitBinaryExpression, visitBlockStatement, visitBreakStatement, visitCallExpression, visitCatchSection, visitClass, visitClassInitializer, visitClassObjectAccessExpression, visitCodeBlock, visitCodeFragment, visitConditionalExpression, visitContinueStatement, visitDeclarationStatement, visitDocComment, visitDocTag, visitDocTagValue, visitDocToken, visitDoWhileStatement, visitEmptyStatement, visitEnumConstant, visitEnumConstantInitializer, visitExpression, visitExpressionList, visitExpressionListStatement, visitExpressionStatement, visitForeachStatement, visitForStatement, visitIdentifier, visitIfStatement, visitImplicitVariable, visitImportList, visitImportStatement, visitImportStaticReferenceElement, visitImportStaticStatement, visitInlineDocTag, visitInstanceOfExpression, visitJavaFile, visitJavaToken, visitKeyword, visitLabeledStatement, visitLambdaExpression, visitLiteralExpression, visitLocalVariable, visitMethod, visitMethodCallExpression, visitMethodReferenceExpression, visitModifierList, visitModule, visitModuleReferenceElement, visitModuleStatement, visitNameValuePair, visitNewExpression, visitPackage, visitPackageAccessibilityStatement, visitPackageStatement, visitParameter, visitParameterList, visitParenthesizedExpression, visitPattern, visitPatternVariable, visitPolyadicExpression, visitPostfixExpression, visitPrefixExpression, visitProvidesStatement, visitReceiverParameter, visitRecordComponent, visitRecordHeader, visitReferenceElement, visitReferenceList, visitReferenceParameterList, visitRequiresStatement, visitResourceExpression, visitResourceList, visitResourceVariable, visitReturnStatement, visitStatement, visitSuperExpression, visitSwitchExpression, visitSwitchLabeledRuleStatement, visitSwitchLabelStatement, visitSwitchStatement, visitSynchronizedStatement, visitThisExpression, visitThrowStatement, visitTryStatement, visitTypeCastExpression, visitTypeElement, visitTypeParameter, visitTypeParameterList, visitTypeTestPattern, visitUnaryExpression, visitUsesStatement, visitWhileStatement, visitYieldStatement
visitBinaryFile, visitComment, visitDirectory, visitErrorElement, visitFile, visitOuterLanguageElement, visitPlainText, visitPlainTextFile, visitWhiteSpace
protected final java.lang.String myName
protected JavaUnresolvableLocalCollisionDetector.CollidingVariableVisitor myCollidingNameVisitor
public ConflictingLocalVariablesVisitor(java.lang.String newName, JavaUnresolvableLocalCollisionDetector.CollidingVariableVisitor collidingNameVisitor)
public void visitReferenceExpression(PsiReferenceExpression expression)
JavaElementVisitor
JavaRecursiveElementVisitor
knows that and implements this method accordingly.
All other visitor must decide themselves what implementation (visitReferenceElement() or visitExpression() or none or LOG.error())
is appropriate for them.visitReferenceExpression
in class JavaRecursiveElementWalkingVisitor
public void visitField(PsiField field)
visitField
in class JavaElementVisitor
public void visitVariable(PsiVariable variable)
visitVariable
in class JavaElementVisitor