public class ElementNeedsThis extends ClassThisReferencesVisitor
EMPTY_VISITOR
Constructor and Description |
---|
ElementNeedsThis(PsiClass aClass) |
ElementNeedsThis(PsiClass aClass,
PsiElement member) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
ignoreUsedTypeParams() |
boolean |
usesMembers() |
protected void |
visitClassMemberReferenceElement(PsiMember classMember,
PsiJavaCodeReferenceElement classMemberReference) |
void |
visitElement(PsiElement element) |
protected void |
visitExplicitSuper(PsiClass referencedClass,
PsiSuperExpression reference) |
protected void |
visitExplicitThis(PsiClass referencedClass,
PsiThisExpression reference) |
void |
visitReferenceExpression(PsiReferenceExpression expression)
PsiReferenceExpression is PsiReferenceElement and PsiExpression at the same time.
|
visitSuperExpression, visitThisExpression
getPsiClass, visitClassMemberReferenceExpression, visitReferenceElement
elementFinished, stopWalking
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, visitField, 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, visitReferenceList, visitReferenceParameterList, visitRequiresStatement, visitResourceExpression, visitResourceList, visitResourceVariable, visitReturnStatement, visitStatement, visitSwitchExpression, visitSwitchLabeledRuleStatement, visitSwitchLabelStatement, visitSwitchStatement, visitSynchronizedStatement, visitThrowStatement, visitTryStatement, visitTypeCastExpression, visitTypeElement, visitTypeParameter, visitTypeParameterList, visitTypeTestPattern, visitUnaryExpression, visitUsesStatement, visitVariable, visitWhileStatement, visitYieldStatement
visitBinaryFile, visitComment, visitDirectory, visitErrorElement, visitFile, visitOuterLanguageElement, visitPlainText, visitPlainTextFile, visitWhiteSpace
public ElementNeedsThis(PsiClass aClass, PsiElement member)
public ElementNeedsThis(PsiClass aClass)
public boolean usesMembers()
protected void visitClassMemberReferenceElement(PsiMember classMember, PsiJavaCodeReferenceElement classMemberReference)
visitClassMemberReferenceElement
in class ClassMemberReferencesVisitor
protected boolean ignoreUsedTypeParams()
protected void visitExplicitThis(PsiClass referencedClass, PsiThisExpression reference)
visitExplicitThis
in class ClassThisReferencesVisitor
protected void visitExplicitSuper(PsiClass referencedClass, PsiSuperExpression reference)
visitExplicitSuper
in class ClassThisReferencesVisitor
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 ClassMemberReferencesVisitor
public void visitElement(PsiElement element)
visitElement
in class JavaRecursiveElementWalkingVisitor