public class ReturnAndJumpCounter extends JavaParserBaseVisitor<Void>
Constructor and Description |
---|
ReturnAndJumpCounter() |
Modifier and Type | Method and Description |
---|---|
int |
getCounter() |
Void |
visitStatement(JavaParser.StatementContext ctx)
Visit a parse tree produced by
JavaParser.statement() . |
visitAnnotation, visitAnnotationConstantRest, visitAnnotationMethodOrConstantRest, visitAnnotationMethodRest, visitAnnotationTypeBody, visitAnnotationTypeDeclaration, visitAnnotationTypeElementDeclaration, visitAnnotationTypeElementRest, visitArguments, visitArrayCreatorRest, visitArrayInitializer, visitBlock, visitBlockStatement, visitCatchClause, visitCatchType, visitClassBody, visitClassBodyDeclaration, visitClassCreatorRest, visitClassDeclaration, visitClassOrInterfaceModifier, visitClassOrInterfaceType, visitClassType, visitCompilationUnit, visitConstantDeclarator, visitConstDeclaration, visitConstructorCall, visitConstructorDeclaration, visitCreatedName, visitCreator, visitDefaultValue, visitElementValue, visitElementValueArrayInitializer, visitElementValuePair, visitElementValuePairs, visitEnhancedForControl, visitEnumBodyDeclarations, visitEnumConstant, visitEnumConstants, visitEnumDeclaration, visitExplicitGenericInvocation, visitExplicitGenericInvocationSuffix, visitExpression, visitExpressionList, visitFieldDeclaration, visitFinallyBlock, visitFloatLiteral, visitForControl, visitForInit, visitFormalParameter, visitFormalParameterList, visitFormalParameters, visitGenericConstructorDeclaration, visitGenericInterfaceMethodDeclaration, visitGenericMethodDeclaration, visitImportDeclaration, visitInnerCreator, visitIntegerLiteral, visitInterfaceBody, visitInterfaceBodyDeclaration, visitInterfaceDeclaration, visitInterfaceMemberDeclaration, visitInterfaceMethodDeclaration, visitInterfaceMethodModifier, visitLambdaBody, visitLambdaExpression, visitLambdaParameters, visitLastFormalParameter, visitLiteral, visitLocalTypeDeclaration, visitLocalVariableDeclaration, visitMemberDeclaration, visitMethodBody, visitMethodCall, visitMethodDeclaration, visitModifier, visitNonWildcardTypeArguments, visitNonWildcardTypeArgumentsOrDiamond, visitPackageDeclaration, visitParExpression, visitPrimary, visitPrimitiveType, visitQualifiedName, visitQualifiedNameList, visitResource, visitResources, visitResourceSpecification, visitSuperSuffix, visitSwitchBlockStatementGroup, visitSwitchLabel, visitTypeArgument, visitTypeArguments, visitTypeArgumentsOrDiamond, visitTypeBound, visitTypeDeclaration, visitTypeList, visitTypeParameter, visitTypeParameters, visitTypeType, visitTypeTypeOrVoid, visitVariableDeclarator, visitVariableDeclaratorId, visitVariableDeclarators, visitVariableInitializer, visitVariableModifier
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminal
public Void visitStatement(JavaParser.StatementContext ctx)
JavaParserBaseVisitor
JavaParser.statement()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitStatement
in interface JavaParserVisitor<Void>
visitStatement
in class JavaParserBaseVisitor<Void>
ctx
- the parse treepublic int getCounter()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.