public class HighlightVisitorImpl extends JavaElementVisitor implements HighlightVisitor
EMPTY_VISITOR
EP_HIGHLIGHT_VISITOR
Modifier | Constructor and Description |
---|---|
protected |
HighlightVisitorImpl() |
protected |
HighlightVisitorImpl(PsiResolveHelper psiResolveHelper)
Deprecated.
|
visitAnnotationParameterList, visitAnonymousClass, visitArrayAccessExpression, visitAssertStatement, visitBinaryExpression, visitBlockStatement, visitCallExpression, visitCatchSection, visitCodeBlock, visitCodeFragment, visitDeclarationStatement, visitDocTag, visitDocToken, visitDoWhileStatement, visitEmptyStatement, visitExpressionListStatement, visitExpressionStatement, visitIfStatement, visitImplicitVariable, visitImportList, visitInlineDocTag, visitJavaFile, visitLocalVariable, visitModuleReferenceElement, visitModuleStatement, visitPackage, visitParenthesizedExpression, visitPattern, visitPatternVariable, visitPostfixExpression, visitPrefixExpression, visitRecordHeader, visitSynchronizedStatement, visitTypeParameter, visitTypeTestPattern, visitWhileStatement
visitBinaryFile, visitDirectory, visitErrorElement, visitFile, visitOuterLanguageElement, visitPlainText, visitPlainTextFile, visitWhiteSpace
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
order
protected HighlightVisitorImpl()
@Deprecated protected HighlightVisitorImpl(PsiResolveHelper psiResolveHelper)
HighlightVisitorImpl()
and getResolveHelper(Project)
protected PsiResolveHelper getResolveHelper(Project project)
public HighlightVisitorImpl clone()
clone
in interface HighlightVisitor
clone
in class java.lang.Object
public boolean suitableForFile(PsiFile file)
suitableForFile
in interface HighlightVisitor
public void visit(PsiElement element)
visit
in interface HighlightVisitor
public boolean analyze(PsiFile file, boolean updateWholeFile, HighlightInfoHolder holder, java.lang.Runnable highlight)
analyze
in interface HighlightVisitor
protected void prepareToRunAsInspection(HighlightInfoHolder holder)
public void visitElement(PsiElement element)
visitElement
in class PsiElementVisitor
public static JavaResolveResult resolveJavaReference(PsiReference reference)
public void visitAnnotation(PsiAnnotation annotation)
visitAnnotation
in class JavaElementVisitor
public void visitAnnotationArrayInitializer(PsiArrayInitializerMemberValue initializer)
visitAnnotationArrayInitializer
in class JavaElementVisitor
public void visitAnnotationMethod(PsiAnnotationMethod method)
visitAnnotationMethod
in class JavaElementVisitor
public void visitArrayInitializerExpression(PsiArrayInitializerExpression expression)
visitArrayInitializerExpression
in class JavaElementVisitor
public void visitAssignmentExpression(PsiAssignmentExpression assignment)
visitAssignmentExpression
in class JavaElementVisitor
public void visitPolyadicExpression(PsiPolyadicExpression expression)
visitPolyadicExpression
in class JavaElementVisitor
public void visitLambdaExpression(PsiLambdaExpression expression)
visitLambdaExpression
in class JavaElementVisitor
public void visitBreakStatement(PsiBreakStatement statement)
visitBreakStatement
in class JavaElementVisitor
public void visitYieldStatement(PsiYieldStatement statement)
visitYieldStatement
in class JavaElementVisitor
public void visitClass(PsiClass aClass)
visitClass
in class JavaElementVisitor
public void visitClassInitializer(PsiClassInitializer initializer)
visitClassInitializer
in class JavaElementVisitor
public void visitClassObjectAccessExpression(PsiClassObjectAccessExpression expression)
visitClassObjectAccessExpression
in class JavaElementVisitor
public void visitComment(PsiComment comment)
visitComment
in class PsiElementVisitor
public void visitContinueStatement(PsiContinueStatement statement)
visitContinueStatement
in class JavaElementVisitor
public void visitJavaToken(PsiJavaToken token)
visitJavaToken
in class JavaElementVisitor
public void visitDocComment(PsiDocComment comment)
visitDocComment
in class JavaElementVisitor
public void visitDocTagValue(PsiDocTagValue value)
visitDocTagValue
in class JavaElementVisitor
public void visitEnumConstant(PsiEnumConstant enumConstant)
visitEnumConstant
in class JavaElementVisitor
public void visitEnumConstantInitializer(PsiEnumConstantInitializer enumConstantInitializer)
visitEnumConstantInitializer
in class JavaElementVisitor
public void visitExpression(PsiExpression expression)
visitExpression
in class JavaElementVisitor
public void visitExpressionList(PsiExpressionList list)
visitExpressionList
in class JavaElementVisitor
public void visitField(PsiField field)
visitField
in class JavaElementVisitor
public void visitForStatement(PsiForStatement statement)
visitForStatement
in class JavaElementVisitor
public void visitForeachStatement(PsiForeachStatement statement)
visitForeachStatement
in class JavaElementVisitor
public void visitImportStaticStatement(PsiImportStaticStatement statement)
visitImportStaticStatement
in class JavaElementVisitor
public void visitIdentifier(PsiIdentifier identifier)
visitIdentifier
in class JavaElementVisitor
public void visitImportStatement(PsiImportStatement statement)
visitImportStatement
in class JavaElementVisitor
public void visitImportStaticReferenceElement(PsiImportStaticReferenceElement ref)
visitImportStaticReferenceElement
in class JavaElementVisitor
public void visitInstanceOfExpression(PsiInstanceOfExpression expression)
visitInstanceOfExpression
in class JavaElementVisitor
public void visitKeyword(PsiKeyword keyword)
visitKeyword
in class JavaElementVisitor
public void visitLabeledStatement(PsiLabeledStatement statement)
visitLabeledStatement
in class JavaElementVisitor
public void visitLiteralExpression(PsiLiteralExpression expression)
visitLiteralExpression
in class JavaElementVisitor
public void visitMethod(PsiMethod method)
visitMethod
in class JavaElementVisitor
public void visitMethodCallExpression(PsiMethodCallExpression expression)
visitMethodCallExpression
in class JavaElementVisitor
public void visitModifierList(PsiModifierList list)
visitModifierList
in class JavaElementVisitor
public void visitNameValuePair(PsiNameValuePair pair)
visitNameValuePair
in class JavaElementVisitor
public void visitNewExpression(PsiNewExpression expression)
visitNewExpression
in class JavaElementVisitor
public void visitPackageStatement(PsiPackageStatement statement)
visitPackageStatement
in class JavaElementVisitor
public void visitRecordComponent(PsiRecordComponent recordComponent)
visitRecordComponent
in class JavaElementVisitor
public void visitParameter(PsiParameter parameter)
visitParameter
in class JavaElementVisitor
public void visitParameterList(PsiParameterList list)
visitParameterList
in class JavaElementVisitor
public void visitUnaryExpression(PsiUnaryExpression expression)
visitUnaryExpression
in class JavaElementVisitor
public void visitReferenceElement(PsiJavaCodeReferenceElement ref)
visitReferenceElement
in class JavaElementVisitor
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 JavaElementVisitor
public void visitMethodReferenceExpression(PsiMethodReferenceExpression expression)
visitMethodReferenceExpression
in class JavaElementVisitor
public void visitReferenceList(PsiReferenceList list)
visitReferenceList
in class JavaElementVisitor
public void visitReferenceParameterList(PsiReferenceParameterList list)
visitReferenceParameterList
in class JavaElementVisitor
public void visitReturnStatement(PsiReturnStatement statement)
visitReturnStatement
in class JavaElementVisitor
public void visitStatement(PsiStatement statement)
visitStatement
in class JavaElementVisitor
public void visitSuperExpression(PsiSuperExpression expr)
visitSuperExpression
in class JavaElementVisitor
public void visitSwitchLabelStatement(PsiSwitchLabelStatement statement)
visitSwitchLabelStatement
in class JavaElementVisitor
public void visitSwitchLabeledRuleStatement(PsiSwitchLabeledRuleStatement statement)
visitSwitchLabeledRuleStatement
in class JavaElementVisitor
public void visitSwitchStatement(PsiSwitchStatement statement)
visitSwitchStatement
in class JavaElementVisitor
public void visitSwitchExpression(PsiSwitchExpression expression)
visitSwitchExpression
in class JavaElementVisitor
public void visitThisExpression(PsiThisExpression expr)
visitThisExpression
in class JavaElementVisitor
public void visitThrowStatement(PsiThrowStatement statement)
visitThrowStatement
in class JavaElementVisitor
public void visitTryStatement(PsiTryStatement statement)
visitTryStatement
in class JavaElementVisitor
public void visitResourceList(PsiResourceList resourceList)
visitResourceList
in class JavaElementVisitor
public void visitResourceVariable(PsiResourceVariable resource)
visitResourceVariable
in class JavaElementVisitor
public void visitResourceExpression(PsiResourceExpression resource)
visitResourceExpression
in class JavaElementVisitor
public void visitTypeElement(PsiTypeElement type)
visitTypeElement
in class JavaElementVisitor
public void visitTypeCastExpression(PsiTypeCastExpression typeCast)
visitTypeCastExpression
in class JavaElementVisitor
public void visitTypeParameterList(PsiTypeParameterList list)
visitTypeParameterList
in class JavaElementVisitor
public void visitVariable(PsiVariable variable)
visitVariable
in class JavaElementVisitor
public void visitConditionalExpression(PsiConditionalExpression expression)
visitConditionalExpression
in class JavaElementVisitor
public void visitReceiverParameter(PsiReceiverParameter parameter)
visitReceiverParameter
in class JavaElementVisitor
public void visitModule(PsiJavaModule module)
visitModule
in class JavaElementVisitor
public void visitRequiresStatement(PsiRequiresStatement statement)
visitRequiresStatement
in class JavaElementVisitor
public void visitPackageAccessibilityStatement(PsiPackageAccessibilityStatement statement)
visitPackageAccessibilityStatement
in class JavaElementVisitor
public void visitUsesStatement(PsiUsesStatement statement)
visitUsesStatement
in class JavaElementVisitor
public void visitProvidesStatement(PsiProvidesStatement statement)
visitProvidesStatement
in class JavaElementVisitor