public abstract class JavaElementVisitor extends PsiElementVisitor
EMPTY_VISITOR
Constructor and Description |
---|
JavaElementVisitor() |
visitBinaryFile, visitComment, visitDirectory, visitElement, visitErrorElement, visitFile, visitOuterLanguageElement, visitPlainText, visitPlainTextFile, visitWhiteSpace
public void visitAnonymousClass(PsiAnonymousClass aClass)
public void visitArrayAccessExpression(PsiArrayAccessExpression expression)
public void visitArrayInitializerExpression(PsiArrayInitializerExpression expression)
public void visitAssertStatement(PsiAssertStatement statement)
public void visitAssignmentExpression(PsiAssignmentExpression expression)
public void visitBinaryExpression(PsiBinaryExpression expression)
public void visitBlockStatement(PsiBlockStatement statement)
public void visitBreakStatement(PsiBreakStatement statement)
public void visitYieldStatement(PsiYieldStatement statement)
public void visitClass(PsiClass aClass)
public void visitClassInitializer(PsiClassInitializer initializer)
public void visitClassObjectAccessExpression(PsiClassObjectAccessExpression expression)
public void visitCodeBlock(PsiCodeBlock block)
public void visitConditionalExpression(PsiConditionalExpression expression)
public void visitContinueStatement(PsiContinueStatement statement)
public void visitDeclarationStatement(PsiDeclarationStatement statement)
public void visitDocComment(PsiDocComment comment)
public void visitDocTag(PsiDocTag tag)
public void visitDocTagValue(PsiDocTagValue value)
public void visitDoWhileStatement(PsiDoWhileStatement statement)
public void visitEmptyStatement(PsiEmptyStatement statement)
public void visitExpression(PsiExpression expression)
public void visitExpressionList(PsiExpressionList list)
public void visitExpressionListStatement(PsiExpressionListStatement statement)
public void visitExpressionStatement(PsiExpressionStatement statement)
public void visitField(PsiField field)
public void visitForStatement(PsiForStatement statement)
public void visitForeachStatement(PsiForeachStatement statement)
public void visitIdentifier(PsiIdentifier identifier)
public void visitIfStatement(PsiIfStatement statement)
public void visitImportList(PsiImportList list)
public void visitImportStatement(PsiImportStatement statement)
public void visitImportStaticStatement(PsiImportStaticStatement statement)
public void visitInlineDocTag(PsiInlineDocTag tag)
public void visitInstanceOfExpression(PsiInstanceOfExpression expression)
public void visitJavaToken(PsiJavaToken token)
public void visitKeyword(PsiKeyword keyword)
public void visitLabeledStatement(PsiLabeledStatement statement)
public void visitLiteralExpression(PsiLiteralExpression expression)
public void visitLocalVariable(PsiLocalVariable variable)
public void visitMethod(PsiMethod method)
public void visitMethodCallExpression(PsiMethodCallExpression expression)
public void visitCallExpression(PsiCallExpression callExpression)
public void visitModifierList(PsiModifierList list)
public void visitNewExpression(PsiNewExpression expression)
public void visitPackage(PsiPackage aPackage)
public void visitPackageStatement(PsiPackageStatement statement)
public void visitParameter(PsiParameter parameter)
public void visitRecordComponent(PsiRecordComponent recordComponent)
public void visitReceiverParameter(PsiReceiverParameter parameter)
public void visitParameterList(PsiParameterList list)
public void visitRecordHeader(PsiRecordHeader recordHeader)
public void visitParenthesizedExpression(PsiParenthesizedExpression expression)
public void visitUnaryExpression(PsiUnaryExpression expression)
public void visitPostfixExpression(PsiPostfixExpression expression)
public void visitPrefixExpression(PsiPrefixExpression expression)
public void visitReferenceElement(PsiJavaCodeReferenceElement reference)
public void visitImportStaticReferenceElement(PsiImportStaticReferenceElement reference)
public void visitReferenceExpression(PsiReferenceExpression expression)
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.public void visitMethodReferenceExpression(PsiMethodReferenceExpression expression)
public void visitReferenceList(PsiReferenceList list)
public void visitReferenceParameterList(PsiReferenceParameterList list)
public void visitTypeParameterList(PsiTypeParameterList list)
public void visitReturnStatement(PsiReturnStatement statement)
public void visitStatement(PsiStatement statement)
public void visitSuperExpression(PsiSuperExpression expression)
public void visitSwitchLabelStatement(PsiSwitchLabelStatement statement)
public void visitSwitchLabeledRuleStatement(PsiSwitchLabeledRuleStatement statement)
public void visitSwitchStatement(PsiSwitchStatement statement)
public void visitSynchronizedStatement(PsiSynchronizedStatement statement)
public void visitThisExpression(PsiThisExpression expression)
public void visitThrowStatement(PsiThrowStatement statement)
public void visitTryStatement(PsiTryStatement statement)
public void visitCatchSection(PsiCatchSection section)
public void visitResourceList(PsiResourceList resourceList)
public void visitResourceVariable(PsiResourceVariable variable)
public void visitResourceExpression(PsiResourceExpression expression)
public void visitTypeElement(PsiTypeElement type)
public void visitTypeCastExpression(PsiTypeCastExpression expression)
public void visitVariable(PsiVariable variable)
public void visitWhileStatement(PsiWhileStatement statement)
public void visitJavaFile(PsiJavaFile file)
public void visitImplicitVariable(ImplicitVariable variable)
public void visitDocToken(PsiDocToken token)
public void visitTypeParameter(PsiTypeParameter classParameter)
public void visitAnnotation(PsiAnnotation annotation)
public void visitAnnotationParameterList(PsiAnnotationParameterList list)
public void visitAnnotationArrayInitializer(PsiArrayInitializerMemberValue initializer)
public void visitNameValuePair(PsiNameValuePair pair)
public void visitAnnotationMethod(PsiAnnotationMethod method)
public void visitEnumConstant(PsiEnumConstant enumConstant)
public void visitEnumConstantInitializer(PsiEnumConstantInitializer enumConstantInitializer)
public void visitCodeFragment(JavaCodeFragment codeFragment)
public void visitPolyadicExpression(PsiPolyadicExpression expression)
public void visitLambdaExpression(PsiLambdaExpression expression)
public void visitSwitchExpression(PsiSwitchExpression expression)
public void visitModule(PsiJavaModule module)
public void visitModuleReferenceElement(PsiJavaModuleReferenceElement refElement)
public void visitModuleStatement(PsiStatement statement)
public void visitRequiresStatement(PsiRequiresStatement statement)
public void visitPackageAccessibilityStatement(PsiPackageAccessibilityStatement statement)
public void visitUsesStatement(PsiUsesStatement statement)
public void visitProvidesStatement(PsiProvidesStatement statement)
public void visitPattern(PsiPattern pattern)
public void visitTypeTestPattern(PsiTypeTestPattern pattern)
public void visitPatternVariable(PsiPatternVariable variable)