Package org.sonarsource.slang.parser
Interface SLangVisitor<T>
- Type Parameters:
T- The return type of the visit operation. UseVoidfor operations with no return type.
- All Superinterfaces:
org.antlr.v4.runtime.tree.ParseTreeVisitor<T>
- All Known Implementing Classes:
SLangBaseVisitor
public interface SLangVisitor<T>
extends org.antlr.v4.runtime.tree.ParseTreeVisitor<T>
This interface defines a complete generic visitor for a parse tree produced
by
SLangParser.-
Method Summary
Modifier and TypeMethodDescriptionVisit a parse tree produced bySLangParser.additiveExpression().Visit a parse tree produced bySLangParser.additiveOperator().Visit a parse tree produced bySLangParser.annotation().Visit a parse tree produced bySLangParser.annotationParameter().Visit a parse tree produced bySLangParser.annotationParameterList().Visit a parse tree produced bySLangParser.annotationParameters().Visit a parse tree produced bySLangParser.argumentList().Visit a parse tree produced bySLangParser.assignment().Visit a parse tree produced bySLangParser.assignmentOperator().Visit a parse tree produced bySLangParser.atomicExpression().Visit a parse tree produced bySLangParser.block().Visit a parse tree produced bySLangParser.breakExpression().Visit a parse tree produced bySLangParser.catchBlock().Visit a parse tree produced bySLangParser.classDeclaration().Visit a parse tree produced bySLangParser.comparison().Visit a parse tree produced bySLangParser.comparisonOperator().Visit a parse tree produced bySLangParser.conditional().Visit a parse tree produced bySLangParser.conjunction().Visit a parse tree produced bySLangParser.conjunctionOperator().Visit a parse tree produced bySLangParser.continueExpression().Visit a parse tree produced bySLangParser.controlBlock().Visit a parse tree produced bySLangParser.declaration().Visit a parse tree produced bySLangParser.declarationModifier().Visit a parse tree produced bySLangParser.disjunction().Visit a parse tree produced bySLangParser.disjunctionOperator().Visit a parse tree produced bySLangParser.doWhileLoop().Visit a parse tree produced bySLangParser.equalityComparison().Visit a parse tree produced bySLangParser.equalityOperator().Visit a parse tree produced bySLangParser.expression().Visit a parse tree produced bySLangParser.expressionName().Visit a parse tree produced bySLangParser.finallyBlock().Visit a parse tree produced bySLangParser.forLoop().Visit a parse tree produced bySLangParser.formalParameter().Visit a parse tree produced bySLangParser.formalParameterList().Visit a parse tree produced bySLangParser.formalParameters().Visit a parse tree produced bySLangParser.identifier().Visit a parse tree produced bySLangParser.ifExpression().Visit a parse tree produced bySLangParser.importDeclaration().Visit a parse tree produced bySLangParser.jumpExpression().Visit a parse tree produced bySLangParser.label().Visit a parse tree produced bySLangParser.lastFormalParameter().Visit a parse tree produced bySLangParser.literal().Visit a parse tree produced bySLangParser.loopExpression().Visit a parse tree produced bySLangParser.matchCase().Visit a parse tree produced bySLangParser.matchExpression().Visit a parse tree produced bySLangParser.memberSelect().Visit a parse tree produced bySLangParser.methodBody().Visit a parse tree produced bySLangParser.methodDeclaration().Visit a parse tree produced bySLangParser.methodDeclarator().Visit a parse tree produced bySLangParser.methodHeader().Visit a parse tree produced bySLangParser.methodInvocation().Visit a parse tree produced bySLangParser.methodModifier().Visit a parse tree produced bySLangParser.multiplicativeExpression().Visit a parse tree produced bySLangParser.multiplicativeOperator().Visit a parse tree produced bySLangParser.nativeBlock().Visit a parse tree produced bySLangParser.nativeExpression().Visit a parse tree produced bySLangParser.packageDeclaration().Visit a parse tree produced bySLangParser.parameterModifier().Visit a parse tree produced bySLangParser.parenthesizedExpression().Visit a parse tree produced bySLangParser.receiverParameter().Visit a parse tree produced bySLangParser.returnExpression().Visit a parse tree produced bySLangParser.semi().Visit a parse tree produced bySLangParser.simpleType().Visit a parse tree produced bySLangParser.slangFile().Visit a parse tree produced bySLangParser.statement().Visit a parse tree produced bySLangParser.throwExpression().Visit a parse tree produced bySLangParser.tryExpression().Visit a parse tree produced bySLangParser.typeDeclaration().Visit a parse tree produced bySLangParser.unaryExpression().Visit a parse tree produced bySLangParser.unaryOperator().Visit a parse tree produced bySLangParser.variableDeclaratorId().Visit a parse tree produced bySLangParser.whileLoop().Methods inherited from interface org.antlr.v4.runtime.tree.ParseTreeVisitor
visit, visitChildren, visitErrorNode, visitTerminal
-
Method Details
-
visitSlangFile
Visit a parse tree produced bySLangParser.slangFile().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPackageDeclaration
Visit a parse tree produced bySLangParser.packageDeclaration().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitImportDeclaration
Visit a parse tree produced bySLangParser.importDeclaration().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeDeclaration
Visit a parse tree produced bySLangParser.typeDeclaration().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassDeclaration
Visit a parse tree produced bySLangParser.classDeclaration().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMethodDeclaration
Visit a parse tree produced bySLangParser.methodDeclaration().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAnnotation
Visit a parse tree produced bySLangParser.annotation().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAnnotationParameters
Visit a parse tree produced bySLangParser.annotationParameters().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAnnotationParameter
Visit a parse tree produced bySLangParser.annotationParameter().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAnnotationParameterList
Visit a parse tree produced bySLangParser.annotationParameterList().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMethodModifier
Visit a parse tree produced bySLangParser.methodModifier().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMethodHeader
Visit a parse tree produced bySLangParser.methodHeader().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMethodDeclarator
Visit a parse tree produced bySLangParser.methodDeclarator().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFormalParameterList
Visit a parse tree produced bySLangParser.formalParameterList().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFormalParameters
Visit a parse tree produced bySLangParser.formalParameters().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFormalParameter
Visit a parse tree produced bySLangParser.formalParameter().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitParameterModifier
Visit a parse tree produced bySLangParser.parameterModifier().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLastFormalParameter
Visit a parse tree produced bySLangParser.lastFormalParameter().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitReceiverParameter
Visit a parse tree produced bySLangParser.receiverParameter().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVariableDeclaratorId
Visit a parse tree produced bySLangParser.variableDeclaratorId().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMethodBody
Visit a parse tree produced bySLangParser.methodBody().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBlock
Visit a parse tree produced bySLangParser.block().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStatement
Visit a parse tree produced bySLangParser.statement().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDeclaration
Visit a parse tree produced bySLangParser.declaration().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDeclarationModifier
Visit a parse tree produced bySLangParser.declarationModifier().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAssignment
Visit a parse tree produced bySLangParser.assignment().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExpression
Visit a parse tree produced bySLangParser.expression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDisjunction
Visit a parse tree produced bySLangParser.disjunction().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitConjunction
Visit a parse tree produced bySLangParser.conjunction().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEqualityComparison
Visit a parse tree produced bySLangParser.equalityComparison().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitComparison
Visit a parse tree produced bySLangParser.comparison().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAdditiveExpression
Visit a parse tree produced bySLangParser.additiveExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMultiplicativeExpression
Visit a parse tree produced bySLangParser.multiplicativeExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitUnaryExpression
Visit a parse tree produced bySLangParser.unaryExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAtomicExpression
Visit a parse tree produced bySLangParser.atomicExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitParenthesizedExpression
Visit a parse tree produced bySLangParser.parenthesizedExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMethodInvocation
Visit a parse tree produced bySLangParser.methodInvocation().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMemberSelect
Visit a parse tree produced bySLangParser.memberSelect().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitArgumentList
Visit a parse tree produced bySLangParser.argumentList().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExpressionName
Visit a parse tree produced bySLangParser.expressionName().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitConditional
Visit a parse tree produced bySLangParser.conditional().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIfExpression
Visit a parse tree produced bySLangParser.ifExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMatchExpression
Visit a parse tree produced bySLangParser.matchExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMatchCase
Visit a parse tree produced bySLangParser.matchCase().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLoopExpression
Visit a parse tree produced bySLangParser.loopExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitForLoop
Visit a parse tree produced bySLangParser.forLoop().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitWhileLoop
Visit a parse tree produced bySLangParser.whileLoop().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDoWhileLoop
Visit a parse tree produced bySLangParser.doWhileLoop().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitControlBlock
Visit a parse tree produced bySLangParser.controlBlock().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTryExpression
Visit a parse tree produced bySLangParser.tryExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCatchBlock
Visit a parse tree produced bySLangParser.catchBlock().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFinallyBlock
Visit a parse tree produced bySLangParser.finallyBlock().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNativeExpression
Visit a parse tree produced bySLangParser.nativeExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNativeBlock
Visit a parse tree produced bySLangParser.nativeBlock().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitReturnExpression
Visit a parse tree produced bySLangParser.returnExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitThrowExpression
Visit a parse tree produced bySLangParser.throwExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitJumpExpression
Visit a parse tree produced bySLangParser.jumpExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBreakExpression
Visit a parse tree produced bySLangParser.breakExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitContinueExpression
Visit a parse tree produced bySLangParser.continueExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLabel
Visit a parse tree produced bySLangParser.label().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMultiplicativeOperator
Visit a parse tree produced bySLangParser.multiplicativeOperator().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAdditiveOperator
Visit a parse tree produced bySLangParser.additiveOperator().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitComparisonOperator
Visit a parse tree produced bySLangParser.comparisonOperator().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEqualityOperator
Visit a parse tree produced bySLangParser.equalityOperator().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAssignmentOperator
Visit a parse tree produced bySLangParser.assignmentOperator().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitUnaryOperator
Visit a parse tree produced bySLangParser.unaryOperator().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDisjunctionOperator
Visit a parse tree produced bySLangParser.disjunctionOperator().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitConjunctionOperator
Visit a parse tree produced bySLangParser.conjunctionOperator().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSimpleType
Visit a parse tree produced bySLangParser.simpleType().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLiteral
Visit a parse tree produced bySLangParser.literal().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSemi
Visit a parse tree produced bySLangParser.semi().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIdentifier
Visit a parse tree produced bySLangParser.identifier().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-