public class IdenticalCasesInSwitchCheck extends IssuableSubscriptionVisitor
| Modifier and Type | Class and Description |
|---|---|
protected static class |
IdenticalCasesInSwitchCheck.IfElseChain |
context| Constructor and Description |
|---|
IdenticalCasesInSwitchCheck() |
| Modifier and Type | Method and Description |
|---|---|
protected static boolean |
allBranchesSame(com.google.common.collect.Multimap<? extends Tree,? extends Tree> identicalBranches,
int size) |
protected static IdenticalCasesInSwitchCheck.IfElseChain |
checkIfStatement(IfStatementTree node) |
protected com.google.common.collect.Multimap<CaseGroupTree,CaseGroupTree> |
checkSwitchStatement(SwitchStatementTree node) |
List<Tree.Kind> |
nodesToVisit() |
void |
visitNode(Tree node) |
addIssue, addIssueOnFile, reportIssue, reportIssue, reportIssuehasSemantic, leaveNode, scanFile, scanTree, visitToken, visitTriviapublic List<Tree.Kind> nodesToVisit()
nodesToVisit in class SubscriptionVisitorpublic void visitNode(Tree node)
visitNode in class SubscriptionVisitorprotected static boolean allBranchesSame(com.google.common.collect.Multimap<? extends Tree,? extends Tree> identicalBranches, int size)
protected com.google.common.collect.Multimap<CaseGroupTree,CaseGroupTree> checkSwitchStatement(SwitchStatementTree node)
protected static IdenticalCasesInSwitchCheck.IfElseChain checkIfStatement(IfStatementTree node)
Copyright © 2012–2017 SonarSource. All rights reserved.