public class JavaCompilingVisitor extends JavaRecursiveElementWalkingVisitor
EMPTY_VISITOR
Constructor and Description |
---|
JavaCompilingVisitor(GlobalCompilingVisitor compilingVisitor) |
elementFinished, stopWalking
visitAnnotation, visitAnnotationArrayInitializer, visitAnnotationMethod, visitAnnotationParameterList, visitAnonymousClass, visitArrayAccessExpression, visitArrayInitializerExpression, visitAssertStatement, visitAssignmentExpression, visitBinaryExpression, visitBreakStatement, visitCallExpression, visitCatchSection, visitClassInitializer, visitClassObjectAccessExpression, visitCodeFragment, visitConditionalExpression, visitContinueStatement, visitDocTagValue, visitDocToken, visitDoWhileStatement, visitEmptyStatement, visitEnumConstant, visitEnumConstantInitializer, visitExpressionList, visitExpressionListStatement, visitForeachStatement, visitForStatement, visitIdentifier, visitIfStatement, visitImplicitVariable, visitImportList, visitImportStatement, visitImportStaticReferenceElement, visitImportStaticStatement, visitInlineDocTag, visitInstanceOfExpression, visitJavaFile, visitJavaToken, visitKeyword, visitLabeledStatement, visitLambdaExpression, visitLocalVariable, visitMethodCallExpression, visitMethodReferenceExpression, visitModifierList, visitModule, visitModuleReferenceElement, visitModuleStatement, visitNameValuePair, visitNewExpression, visitPackage, visitPackageAccessibilityStatement, visitPackageStatement, visitParameterList, visitParenthesizedExpression, visitPattern, visitPatternVariable, visitPolyadicExpression, visitPostfixExpression, visitPrefixExpression, visitProvidesStatement, visitReceiverParameter, visitRecordComponent, visitRecordHeader, visitReferenceList, visitReferenceParameterList, visitRequiresStatement, visitResourceExpression, visitResourceList, visitResourceVariable, visitReturnStatement, visitStatement, visitSuperExpression, visitSwitchExpression, visitSynchronizedStatement, visitThisExpression, visitThrowStatement, visitTryStatement, visitTypeCastExpression, visitTypeParameter, visitTypeParameterList, visitTypeTestPattern, visitUnaryExpression, visitUsesStatement, visitWhileStatement, visitYieldStatement
visitBinaryFile, visitDirectory, visitErrorElement, visitFile, visitOuterLanguageElement, visitPlainText, visitPlainTextFile, visitWhiteSpace
public JavaCompilingVisitor(GlobalCompilingVisitor compilingVisitor)
public void compile(PsiElement[] topLevelElements)
public void visitDocTag(PsiDocTag psiDocTag)
visitDocTag
in class JavaElementVisitor
public void visitComment(PsiComment comment)
visitComment
in class PsiElementVisitor
public void visitExpression(PsiExpression expression)
visitExpression
in class JavaElementVisitor
public void visitLiteralExpression(PsiLiteralExpression expression)
visitLiteralExpression
in class JavaElementVisitor
public void visitField(PsiField psiField)
visitField
in class JavaElementVisitor
public void visitMethod(PsiMethod psiMethod)
visitMethod
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 JavaRecursiveElementWalkingVisitor
public void visitBlockStatement(PsiBlockStatement statement)
visitBlockStatement
in class JavaElementVisitor
public void visitSwitchStatement(PsiSwitchStatement statement)
visitSwitchStatement
in class JavaElementVisitor
public void visitSwitchLabelStatement(PsiSwitchLabelStatement statement)
visitSwitchLabelStatement
in class JavaElementVisitor
public void visitSwitchLabeledRuleStatement(PsiSwitchLabeledRuleStatement statement)
visitSwitchLabeledRuleStatement
in class JavaElementVisitor
public void visitVariable(PsiVariable variable)
visitVariable
in class JavaElementVisitor
public void visitParameter(PsiParameter parameter)
visitParameter
in class JavaElementVisitor
public void visitDeclarationStatement(PsiDeclarationStatement psiDeclarationStatement)
visitDeclarationStatement
in class JavaElementVisitor
public void visitDocComment(PsiDocComment psiDocComment)
visitDocComment
in class JavaElementVisitor
public void visitReferenceElement(PsiJavaCodeReferenceElement reference)
visitReferenceElement
in class JavaElementVisitor
public void visitTypeElement(PsiTypeElement type)
visitTypeElement
in class JavaElementVisitor
public void visitClass(PsiClass psiClass)
visitClass
in class JavaElementVisitor
public void visitExpressionStatement(PsiExpressionStatement expressionStatement)
visitExpressionStatement
in class JavaElementVisitor
public void visitElement(PsiElement element)
visitElement
in class JavaRecursiveElementWalkingVisitor
public void visitCodeBlock(PsiCodeBlock block)
visitCodeBlock
in class JavaElementVisitor