public class IdenticalOperandOnBinaryExpressionCheck extends SubscriptionBaseVisitor
context| Constructor and Description |
|---|
IdenticalOperandOnBinaryExpressionCheck() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
areOperandEquivalent(ExpressionTree left,
ExpressionTree right,
Tree.Kind binaryKind) |
static boolean |
hasEquivalentOperand(BinaryExpressionTree tree) |
List<Tree.Kind> |
nodesToVisit() |
void |
visitNode(Tree tree) |
getSemanticModel, scanFileaddIssue, addIssue, addIssue, addIssueOnFile, reportIssue, reportIssuehasSemantic, leaveNode, scanTree, visitToken, visitTriviapublic IdenticalOperandOnBinaryExpressionCheck()
public List<Tree.Kind> nodesToVisit()
nodesToVisit in class SubscriptionVisitorpublic void visitNode(Tree tree)
visitNode in class SubscriptionVisitorpublic static boolean hasEquivalentOperand(BinaryExpressionTree tree)
public static boolean areOperandEquivalent(ExpressionTree left, ExpressionTree right, Tree.Kind binaryKind)
Copyright © 2012–2015 SonarSource. All rights reserved.