public class ComplexityVisitor extends DoubleDispatchVisitor
| Constructor and Description |
|---|
ComplexityVisitor(boolean mustAnalyseNestedFunctions) |
| Modifier and Type | Method and Description |
|---|---|
List<Tree> |
complexityTrees(Tree tree) |
int |
getComplexity(Tree tree) |
void |
visitArrowFunction(ArrowFunctionTree tree) |
void |
visitBinaryExpression(BinaryExpressionTree tree) |
void |
visitCaseClause(CaseClauseTree tree) |
void |
visitCatchBlock(CatchBlockTree tree) |
void |
visitConditionalExpression(ConditionalExpressionTree tree) |
void |
visitDoWhileStatement(DoWhileStatementTree tree) |
void |
visitForObjectStatement(ForObjectStatementTree tree) |
void |
visitForStatement(ForStatementTree tree) |
void |
visitFunctionDeclaration(FunctionDeclarationTree tree) |
void |
visitFunctionExpression(FunctionExpressionTree tree) |
void |
visitIfStatement(IfStatementTree tree) |
void |
visitMethodDeclaration(MethodDeclarationTree tree) |
void |
visitReturnStatement(ReturnStatementTree tree) |
void |
visitThrowStatement(ThrowStatementTree tree) |
void |
visitWhileStatement(WhileStatementTree tree) |
getContext, scan, scan, scanChildren, scanTree, visitArrayBindingPattern, visitArrayLiteral, visitAssignmentExpression, visitBindingProperty, visitBlock, visitBreakStatement, visitCallExpression, visitClass, visitComment, visitComputedPropertyName, visitContinueStatement, visitDebugger, visitDefaultClause, visitDefaultExportDeclaration, visitElseClause, visitEmptyStatement, visitExportClause, visitExportDefaultBinding, visitExportDefaultBindingWithExportList, visitExportDefaultBindingWithNameSpaceExport, visitExpressionStatement, visitFieldDeclaration, visitFromClause, visitIdentifier, visitImportClause, visitImportDeclaration, visitImportModuleDeclaration, visitInitializedBindingElement, visitJsxClosingElement, visitJsxIdentifier, visitJsxJavaScriptExpression, visitJsxOpeningElement, visitJsxSelfClosingElement, visitJsxSpreadAttribute, visitJsxStandardAttribute, visitJsxStandardElement, visitJsxText, visitLabelledStatement, visitLiteral, visitMemberExpression, visitModule, visitNamedExportDeclaration, visitNameSpaceExportDeclaration, visitNewExpression, visitNewTarget, visitObjectBindingPattern, visitObjectLiteral, visitPairProperty, visitParameterList, visitParenthesisedExpression, visitRestElement, visitScript, visitSpecifier, visitSpecifierList, visitSpreadElement, visitSuper, visitSwitchStatement, visitTaggedTemplate, visitTemplateCharacters, visitTemplateExpression, visitTemplateLiteral, visitToken, visitTryStatement, visitUnaryExpression, visitVariableDeclaration, visitVariableStatement, visitWithStatement, visitYieldExpressionpublic int getComplexity(Tree tree)
public void visitMethodDeclaration(MethodDeclarationTree tree)
visitMethodDeclaration in class DoubleDispatchVisitorpublic void visitFunctionDeclaration(FunctionDeclarationTree tree)
visitFunctionDeclaration in class DoubleDispatchVisitorpublic void visitFunctionExpression(FunctionExpressionTree tree)
visitFunctionExpression in class DoubleDispatchVisitorpublic void visitArrowFunction(ArrowFunctionTree tree)
visitArrowFunction in class DoubleDispatchVisitorpublic void visitIfStatement(IfStatementTree tree)
visitIfStatement in class DoubleDispatchVisitorpublic void visitWhileStatement(WhileStatementTree tree)
visitWhileStatement in class DoubleDispatchVisitorpublic void visitDoWhileStatement(DoWhileStatementTree tree)
visitDoWhileStatement in class DoubleDispatchVisitorpublic void visitForStatement(ForStatementTree tree)
visitForStatement in class DoubleDispatchVisitorpublic void visitForObjectStatement(ForObjectStatementTree tree)
visitForObjectStatement in class DoubleDispatchVisitorpublic void visitCaseClause(CaseClauseTree tree)
visitCaseClause in class DoubleDispatchVisitorpublic void visitCatchBlock(CatchBlockTree tree)
visitCatchBlock in class DoubleDispatchVisitorpublic void visitReturnStatement(ReturnStatementTree tree)
visitReturnStatement in class DoubleDispatchVisitorpublic void visitConditionalExpression(ConditionalExpressionTree tree)
visitConditionalExpression in class DoubleDispatchVisitorpublic void visitThrowStatement(ThrowStatementTree tree)
visitThrowStatement in class DoubleDispatchVisitorpublic void visitBinaryExpression(BinaryExpressionTree tree)
visitBinaryExpression in class DoubleDispatchVisitorCopyright © 2011–2016 SonarSource and Eriks Nukis. All rights reserved.