Class CyclomaticComplexityComputer
java.lang.Object
com.github._1c_syntax.bsl.parser.BSLParserBaseListener
com.github._1c_syntax.bsl.languageserver.context.computer.CyclomaticComplexityComputer
- All Implemented Interfaces:
Computer<ComplexityData>
,BSLParserListener
,ParseTreeListener
@Component
@Scope("prototype")
public class CyclomaticComplexityComputer
extends BSLParserBaseListener
implements Computer<ComplexityData>
-
Constructor Summary
-
Method Summary
Methods inherited from class com.github._1c_syntax.bsl.parser.BSLParserBaseListener
enterAcceptor, enterAccessCall, enterAccessIndex, enterAccessProperty, enterAddHandlerStatement, enterAnnotation, enterAnnotationName, enterAnnotationParam, enterAnnotationParamName, enterAnnotationParams, enterAssignment, enterBoolOperation, enterBreakStatement, enterCallParam, enterCallParamList, enterCallStatement, enterCodeBlock, enterCompareOperation, enterCompilerDirective, enterCompilerDirectiveSymbol, enterComplexIdentifier, enterCompoundStatement, enterConstValue, enterContinueStatement, enterDefaultValue, enterDoCall, enterEvent, enterEveryRule, enterExecuteStatement, enterFile, enterFuncDeclaration, enterFunction, enterHandler, enterIfStatement, enterLabel, enterLabelName, enterLValue, enterMember, enterMethodCall, enterMethodName, enterModifier, enterModuleAnnotations, enterModuleVar, enterModuleVarDeclaration, enterModuleVars, enterModuleVarsList, enterMultilineString, enterNewExpression, enterNumeric, enterOperation, enterParam, enterParamList, enterPreproc_boolOperation, enterPreproc_else, enterPreproc_elsif, enterPreproc_endif, enterPreproc_expression, enterPreproc_if, enterPreproc_logicalExpression, enterPreproc_logicalOperand, enterPreproc_native, enterPreproc_symbol, enterPreproc_unknownSymbol, enterPreprocessor, enterProcDeclaration, enterProcedure, enterRaiseStatement, enterRegionEnd, enterRegionName, enterRegionStart, enterRemoveHandlerStatement, enterReturnStatement, enterShebang, enterStatement, enterString, enterSubCodeBlock, enterSubName, enterSubs, enterSubVar, enterSubVarDeclaration, enterSubVars, enterSubVarsList, enterTryCodeBlock, enterTryStatement, enterTypeName, enterUnaryModifier, enterUse, enterUsedLib, enterVar_name, enterWaitExpression, enterWaitStatement, exitAcceptor, exitAccessCall, exitAccessIndex, exitAccessProperty, exitAddHandlerStatement, exitAnnotation, exitAnnotationName, exitAnnotationParam, exitAnnotationParamName, exitAnnotationParams, exitAssignment, exitBoolOperation, exitBreakStatement, exitCallParam, exitCallParamList, exitCallStatement, exitCodeBlock, exitCompareOperation, exitCompilerDirective, exitCompilerDirectiveSymbol, exitComplexIdentifier, exitCompoundStatement, exitConstValue, exitContinueStatement, exitDefaultValue, exitDoCall, exitElseBranch, exitElsifBranch, exitEvent, exitEveryRule, exitExceptCodeBlock, exitExecuteStatement, exitExpression, exitFile, exitForEachStatement, exitForStatement, exitFuncDeclaration, exitFunction, exitGlobalMethodCall, exitGotoStatement, exitHandler, exitIfBranch, exitIfStatement, exitLabel, exitLabelName, exitLValue, exitMember, exitMethodCall, exitMethodName, exitModifier, exitModuleAnnotations, exitModuleVar, exitModuleVarDeclaration, exitModuleVars, exitModuleVarsList, exitMultilineString, exitNewExpression, exitNumeric, exitOperation, exitParam, exitParamList, exitPreproc_boolOperation, exitPreproc_else, exitPreproc_elsif, exitPreproc_endif, exitPreproc_expression, exitPreproc_if, exitPreproc_logicalExpression, exitPreproc_logicalOperand, exitPreproc_native, exitPreproc_symbol, exitPreproc_unknownSymbol, exitPreprocessor, exitProcDeclaration, exitProcedure, exitRaiseStatement, exitRegionEnd, exitRegionName, exitRegionStart, exitRemoveHandlerStatement, exitReturnStatement, exitShebang, exitStatement, exitString, exitSubCodeBlock, exitSubName, exitSubs, exitSubVar, exitSubVarDeclaration, exitSubVars, exitSubVarsList, exitTernaryOperator, exitTryCodeBlock, exitTryStatement, exitTypeName, exitUnaryModifier, exitUse, exitUsedLib, exitVar_name, exitWaitExpression, exitWaitStatement, exitWhileStatement, visitErrorNode, visitTerminal
-
Constructor Details
-
CyclomaticComplexityComputer
@ConstructorProperties("documentContext") public CyclomaticComplexityComputer(DocumentContext documentContext)
-
-
Method Details
-
init
-
compute
- Specified by:
compute
in interfaceComputer<ComplexityData>
-
enterSub
- Specified by:
enterSub
in interfaceBSLParserListener
- Overrides:
enterSub
in classBSLParserBaseListener
-
exitSub
- Specified by:
exitSub
in interfaceBSLParserListener
- Overrides:
exitSub
in classBSLParserBaseListener
-
enterFileCodeBlockBeforeSub
- Specified by:
enterFileCodeBlockBeforeSub
in interfaceBSLParserListener
- Overrides:
enterFileCodeBlockBeforeSub
in classBSLParserBaseListener
-
exitFileCodeBlockBeforeSub
- Specified by:
exitFileCodeBlockBeforeSub
in interfaceBSLParserListener
- Overrides:
exitFileCodeBlockBeforeSub
in classBSLParserBaseListener
-
enterFileCodeBlock
- Specified by:
enterFileCodeBlock
in interfaceBSLParserListener
- Overrides:
enterFileCodeBlock
in classBSLParserBaseListener
-
exitFileCodeBlock
- Specified by:
exitFileCodeBlock
in interfaceBSLParserListener
- Overrides:
exitFileCodeBlock
in classBSLParserBaseListener
-
enterIfBranch
- Specified by:
enterIfBranch
in interfaceBSLParserListener
- Overrides:
enterIfBranch
in classBSLParserBaseListener
-
enterElsifBranch
- Specified by:
enterElsifBranch
in interfaceBSLParserListener
- Overrides:
enterElsifBranch
in classBSLParserBaseListener
-
enterElseBranch
- Specified by:
enterElseBranch
in interfaceBSLParserListener
- Overrides:
enterElseBranch
in classBSLParserBaseListener
-
enterTernaryOperator
- Specified by:
enterTernaryOperator
in interfaceBSLParserListener
- Overrides:
enterTernaryOperator
in classBSLParserBaseListener
-
enterForEachStatement
- Specified by:
enterForEachStatement
in interfaceBSLParserListener
- Overrides:
enterForEachStatement
in classBSLParserBaseListener
-
enterForStatement
- Specified by:
enterForStatement
in interfaceBSLParserListener
- Overrides:
enterForStatement
in classBSLParserBaseListener
-
enterWhileStatement
- Specified by:
enterWhileStatement
in interfaceBSLParserListener
- Overrides:
enterWhileStatement
in classBSLParserBaseListener
-
enterExceptCodeBlock
- Specified by:
enterExceptCodeBlock
in interfaceBSLParserListener
- Overrides:
enterExceptCodeBlock
in classBSLParserBaseListener
-
enterGlobalMethodCall
- Specified by:
enterGlobalMethodCall
in interfaceBSLParserListener
- Overrides:
enterGlobalMethodCall
in classBSLParserBaseListener
-
enterGotoStatement
- Specified by:
enterGotoStatement
in interfaceBSLParserListener
- Overrides:
enterGotoStatement
in classBSLParserBaseListener
-
enterExpression
- Specified by:
enterExpression
in interfaceBSLParserListener
- Overrides:
enterExpression
in classBSLParserBaseListener
-