public class JavaMatchingVisitor extends JavaElementVisitor
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
MODIFIERS |
EMPTY_VISITOR
Constructor and Description |
---|
JavaMatchingVisitor(GlobalMatchingVisitor matchingVisitor) |
visitAnnotationMethod, visitAnnotationParameterList, visitBinaryExpression, visitCallExpression, visitCodeFragment, visitDocTagValue, visitDocToken, visitEmptyStatement, visitEnumConstantInitializer, visitExpression, visitExpressionList, visitExpressionListStatement, visitIdentifier, visitImplicitVariable, visitImportList, visitImportStatement, visitImportStaticReferenceElement, visitImportStaticStatement, visitInlineDocTag, visitJavaFile, visitLocalVariable, visitModule, visitModuleReferenceElement, visitModuleStatement, visitPackage, visitPackageAccessibilityStatement, visitPackageStatement, visitParameter, visitParameterList, visitPattern, visitPatternVariable, visitProvidesStatement, visitReceiverParameter, visitRecordComponent, visitRecordHeader, visitReferenceList, visitReferenceParameterList, visitRequiresStatement, visitResourceList, visitResourceVariable, visitStatement, visitTypeTestPattern, visitUnaryExpression, visitUsesStatement
visitBinaryFile, visitDirectory, visitErrorElement, visitFile, visitOuterLanguageElement, visitPlainText, visitPlainTextFile, visitWhiteSpace
public JavaMatchingVisitor(GlobalMatchingVisitor matchingVisitor)
public void visitComment(PsiComment comment)
visitComment
in class PsiElementVisitor
public final void visitModifierList(PsiModifierList list)
visitModifierList
in class JavaElementVisitor
public void visitDocTag(PsiDocTag tag)
visitDocTag
in class JavaElementVisitor
public void visitDocComment(PsiDocComment comment)
visitDocComment
in class JavaElementVisitor
public void visitElement(PsiElement element)
visitElement
in class PsiElementVisitor
public void visitArrayInitializerExpression(PsiArrayInitializerExpression expression)
visitArrayInitializerExpression
in class JavaElementVisitor
public void visitClassInitializer(PsiClassInitializer initializer)
visitClassInitializer
in class JavaElementVisitor
public void visitCodeBlock(PsiCodeBlock block)
visitCodeBlock
in class JavaElementVisitor
public void visitJavaToken(PsiJavaToken token)
visitJavaToken
in class JavaElementVisitor
public void visitAnnotation(PsiAnnotation annotation)
visitAnnotation
in class JavaElementVisitor
public void visitNameValuePair(PsiNameValuePair pair)
visitNameValuePair
in class JavaElementVisitor
public void visitAnnotationArrayInitializer(PsiArrayInitializerMemberValue initializer)
visitAnnotationArrayInitializer
in class JavaElementVisitor
public void visitField(PsiField field)
visitField
in class JavaElementVisitor
public void visitEnumConstant(PsiEnumConstant enumConstant)
visitEnumConstant
in class JavaElementVisitor
public void visitAnonymousClass(PsiAnonymousClass clazz)
visitAnonymousClass
in class JavaElementVisitor
public void visitLambdaExpression(PsiLambdaExpression expression)
visitLambdaExpression
in class JavaElementVisitor
public void visitArrayAccessExpression(PsiArrayAccessExpression expression)
visitArrayAccessExpression
in class JavaElementVisitor
public void visitMethodReferenceExpression(PsiMethodReferenceExpression expression)
visitMethodReferenceExpression
in class JavaElementVisitor
public void visitReferenceExpression(PsiReferenceExpression reference)
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 visitConditionalExpression(PsiConditionalExpression expression)
visitConditionalExpression
in class JavaElementVisitor
public void visitPolyadicExpression(PsiPolyadicExpression expression)
visitPolyadicExpression
in class JavaElementVisitor
public void visitVariable(PsiVariable var)
visitVariable
in class JavaElementVisitor
public void visitMethodCallExpression(PsiMethodCallExpression expression)
visitMethodCallExpression
in class JavaElementVisitor
public void visitExpressionStatement(PsiExpressionStatement statement)
visitExpressionStatement
in class JavaElementVisitor
public void visitLiteralExpression(PsiLiteralExpression expression)
visitLiteralExpression
in class JavaElementVisitor
public void visitAssignmentExpression(PsiAssignmentExpression expression)
visitAssignmentExpression
in class JavaElementVisitor
public void visitIfStatement(PsiIfStatement statement)
visitIfStatement
in class JavaElementVisitor
public void visitSwitchStatement(PsiSwitchStatement statement)
visitSwitchStatement
in class JavaElementVisitor
public void visitSwitchExpression(PsiSwitchExpression expression)
visitSwitchExpression
in class JavaElementVisitor
public void visitSwitchLabelStatement(PsiSwitchLabelStatement statement)
visitSwitchLabelStatement
in class JavaElementVisitor
public void visitSwitchLabeledRuleStatement(PsiSwitchLabeledRuleStatement statement)
visitSwitchLabeledRuleStatement
in class JavaElementVisitor
public void visitYieldStatement(PsiYieldStatement statement)
visitYieldStatement
in class JavaElementVisitor
public void visitForStatement(PsiForStatement statement)
visitForStatement
in class JavaElementVisitor
public void visitForeachStatement(PsiForeachStatement statement)
visitForeachStatement
in class JavaElementVisitor
public void visitWhileStatement(PsiWhileStatement statement)
visitWhileStatement
in class JavaElementVisitor
public void visitBlockStatement(PsiBlockStatement statement)
visitBlockStatement
in class JavaElementVisitor
public void visitDeclarationStatement(PsiDeclarationStatement statement)
visitDeclarationStatement
in class JavaElementVisitor
public void visitDoWhileStatement(PsiDoWhileStatement statement)
visitDoWhileStatement
in class JavaElementVisitor
public void visitReturnStatement(PsiReturnStatement statement)
visitReturnStatement
in class JavaElementVisitor
public void visitPostfixExpression(PsiPostfixExpression expression)
visitPostfixExpression
in class JavaElementVisitor
public void visitPrefixExpression(PsiPrefixExpression expression)
visitPrefixExpression
in class JavaElementVisitor
public void visitAssertStatement(PsiAssertStatement statement)
visitAssertStatement
in class JavaElementVisitor
public void visitBreakStatement(PsiBreakStatement statement)
visitBreakStatement
in class JavaElementVisitor
public void visitContinueStatement(PsiContinueStatement statement)
visitContinueStatement
in class JavaElementVisitor
public void visitSuperExpression(PsiSuperExpression expression)
visitSuperExpression
in class JavaElementVisitor
public void visitThisExpression(PsiThisExpression expression)
visitThisExpression
in class JavaElementVisitor
public void visitSynchronizedStatement(PsiSynchronizedStatement statement)
visitSynchronizedStatement
in class JavaElementVisitor
public void visitThrowStatement(PsiThrowStatement statement)
visitThrowStatement
in class JavaElementVisitor
public void visitParenthesizedExpression(PsiParenthesizedExpression expression)
visitParenthesizedExpression
in class JavaElementVisitor
public void visitCatchSection(PsiCatchSection section)
visitCatchSection
in class JavaElementVisitor
public void visitTryStatement(PsiTryStatement statement)
visitTryStatement
in class JavaElementVisitor
public void visitResourceExpression(PsiResourceExpression expression)
visitResourceExpression
in class JavaElementVisitor
public void visitLabeledStatement(PsiLabeledStatement statement)
visitLabeledStatement
in class JavaElementVisitor
public void visitInstanceOfExpression(PsiInstanceOfExpression expression)
visitInstanceOfExpression
in class JavaElementVisitor
public void visitNewExpression(PsiNewExpression expression)
visitNewExpression
in class JavaElementVisitor
public void visitKeyword(PsiKeyword keyword)
visitKeyword
in class JavaElementVisitor
public void visitTypeCastExpression(PsiTypeCastExpression expression)
visitTypeCastExpression
in class JavaElementVisitor
public void visitClassObjectAccessExpression(PsiClassObjectAccessExpression expression)
visitClassObjectAccessExpression
in class JavaElementVisitor
public void visitReferenceElement(PsiJavaCodeReferenceElement ref)
visitReferenceElement
in class JavaElementVisitor
public void visitTypeElement(PsiTypeElement typeElement)
visitTypeElement
in class JavaElementVisitor
public void visitTypeParameter(PsiTypeParameter parameter)
visitTypeParameter
in class JavaElementVisitor
public void visitClass(PsiClass clazz)
visitClass
in class JavaElementVisitor
public void visitTypeParameterList(PsiTypeParameterList psiTypeParameterList)
visitTypeParameterList
in class JavaElementVisitor
public void visitMethod(PsiMethod method)
visitMethod
in class JavaElementVisitor