public class CognitiveComplexityVisitor extends BaseTreeVisitor
| Modifier and Type | Class and Description |
|---|---|
static class |
CognitiveComplexityVisitor.Result
Cognitive complexity and associated locations
|
| Modifier and Type | Method and Description |
|---|---|
static int |
compilationUnitComplexity(CompilationUnitTree cut) |
static CognitiveComplexityVisitor.Result |
methodComplexity(MethodTree methodTree) |
void |
visitBinaryExpression(BinaryExpressionTree tree) |
void |
visitBreakStatement(BreakStatementTree tree) |
void |
visitClass(ClassTree tree) |
void |
visitConditionalExpression(ConditionalExpressionTree tree) |
void |
visitContinueStatement(ContinueStatementTree tree) |
void |
visitDoWhileStatement(DoWhileStatementTree tree) |
void |
visitForEachStatement(ForEachStatement tree) |
void |
visitForStatement(ForStatementTree tree) |
void |
visitIfStatement(IfStatementTree tree) |
void |
visitLambdaExpression(LambdaExpressionTree lambdaExpressionTree) |
void |
visitSwitchStatement(SwitchStatementTree tree) |
void |
visitTryStatement(TryStatementTree tree) |
void |
visitWhileStatement(WhileStatementTree tree) |
scan, scan, scan, visitAnnotation, visitArrayAccessExpression, visitArrayDimension, visitArrayType, visitAssertStatement, visitAssignmentExpression, visitBlock, visitCaseGroup, visitCaseLabel, visitCatch, visitCompilationUnit, visitEmptyStatement, visitEnumConstant, visitExportsDirectiveTree, visitExpressionStatement, visitIdentifier, visitImport, visitInstanceOf, visitLabeledStatement, visitLiteral, visitMemberSelectExpression, visitMethod, visitMethodInvocation, visitMethodReference, visitModifier, visitModule, visitNewArray, visitNewClass, visitOpensDirective, visitOther, visitPackage, visitParameterizedType, visitParenthesized, visitPrimitiveType, visitProvidesDirective, visitRequiresDirectiveTree, visitReturnStatement, visitSynchronizedStatement, visitThrowStatement, visitTypeArguments, visitTypeCast, visitTypeParameter, visitTypeParameters, visitUnaryExpression, visitUnionType, visitUsesDirective, visitVariable, visitWildcardpublic static CognitiveComplexityVisitor.Result methodComplexity(MethodTree methodTree)
public static int compilationUnitComplexity(CompilationUnitTree cut)
public void visitIfStatement(IfStatementTree tree)
visitIfStatement in interface TreeVisitorvisitIfStatement in class BaseTreeVisitorpublic void visitTryStatement(TryStatementTree tree)
visitTryStatement in interface TreeVisitorvisitTryStatement in class BaseTreeVisitorpublic void visitForStatement(ForStatementTree tree)
visitForStatement in interface TreeVisitorvisitForStatement in class BaseTreeVisitorpublic void visitForEachStatement(ForEachStatement tree)
visitForEachStatement in interface TreeVisitorvisitForEachStatement in class BaseTreeVisitorpublic void visitWhileStatement(WhileStatementTree tree)
visitWhileStatement in interface TreeVisitorvisitWhileStatement in class BaseTreeVisitorpublic void visitDoWhileStatement(DoWhileStatementTree tree)
visitDoWhileStatement in interface TreeVisitorvisitDoWhileStatement in class BaseTreeVisitorpublic void visitConditionalExpression(ConditionalExpressionTree tree)
visitConditionalExpression in interface TreeVisitorvisitConditionalExpression in class BaseTreeVisitorpublic void visitSwitchStatement(SwitchStatementTree tree)
visitSwitchStatement in interface TreeVisitorvisitSwitchStatement in class BaseTreeVisitorpublic void visitBreakStatement(BreakStatementTree tree)
visitBreakStatement in interface TreeVisitorvisitBreakStatement in class BaseTreeVisitorpublic void visitContinueStatement(ContinueStatementTree tree)
visitContinueStatement in interface TreeVisitorvisitContinueStatement in class BaseTreeVisitorpublic void visitClass(ClassTree tree)
visitClass in interface TreeVisitorvisitClass in class BaseTreeVisitorpublic void visitLambdaExpression(LambdaExpressionTree lambdaExpressionTree)
visitLambdaExpression in interface TreeVisitorvisitLambdaExpression in class BaseTreeVisitorpublic void visitBinaryExpression(BinaryExpressionTree tree)
visitBinaryExpression in interface TreeVisitorvisitBinaryExpression in class BaseTreeVisitorCopyright © 2012–2017 SonarSource. All rights reserved.