public class ReferencedElementsCollector extends JavaRecursiveElementVisitor
EMPTY_VISITOR
Constructor and Description |
---|
ReferencedElementsCollector() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkAddMember(PsiMember member) |
void |
visitNewExpression(PsiNewExpression expression) |
void |
visitReferenceElement(PsiJavaCodeReferenceElement reference) |
void |
visitReferenceExpression(PsiReferenceExpression expression)
PsiReferenceExpression is PsiReferenceElement and PsiExpression at the same time.
|
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, 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, visitPackage, visitPackageAccessibilityStatement, visitPackageStatement, visitParameter, visitParameterList, visitParenthesizedExpression, visitPattern, visitPatternVariable, visitPolyadicExpression, visitPostfixExpression, visitPrefixExpression, visitProvidesStatement, visitReceiverParameter, visitRecordComponent, visitRecordHeader, visitReferenceList, visitReferenceParameterList, visitRequiresStatement, visitResourceExpression, visitResourceList, visitResourceVariable, visitReturnStatement, visitStatement, visitSuperExpression, visitSwitchExpression, visitSwitchLabeledRuleStatement, visitSwitchLabelStatement, visitSwitchStatement, visitSynchronizedStatement, visitThisExpression, visitThrowStatement, visitTryStatement, visitTypeCastExpression, visitTypeElement, visitTypeParameter, visitTypeParameterList, visitTypeTestPattern, visitUnaryExpression, visitUsesStatement, visitVariable, visitWhileStatement, visitYieldStatement
visitBinaryFile, visitComment, visitDirectory, visitErrorElement, visitFile, visitOuterLanguageElement, visitPlainText, visitPlainTextFile, visitWhiteSpace
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 JavaRecursiveElementVisitor
public void visitReferenceElement(PsiJavaCodeReferenceElement reference)
visitReferenceElement
in class JavaElementVisitor
public void visitNewExpression(PsiNewExpression expression)
visitNewExpression
in class JavaElementVisitor
protected void checkAddMember(PsiMember member)