public class IdenticalOperandOnBinaryExpressionCheck extends IssuableSubscriptionVisitor
context| Constructor and Description |
|---|
IdenticalOperandOnBinaryExpressionCheck() |
| Modifier and Type | Method and Description |
|---|---|
static ExpressionTree |
equivalentOperand(BinaryExpressionTree tree,
ExpressionTree rightOperand) |
static ExpressionTree |
equivalentOperand(ExpressionTree left,
ExpressionTree right,
Tree.Kind binaryKind) |
List<Tree.Kind> |
nodesToVisit() |
void |
visitNode(Tree tree) |
addIssue, addIssueOnFile, reportIssue, reportIssue, reportIssuehasSemantic, leaveNode, scanFile, scanTree, visitToken, visitTriviapublic IdenticalOperandOnBinaryExpressionCheck()
public List<Tree.Kind> nodesToVisit()
nodesToVisit in class SubscriptionVisitorpublic void visitNode(Tree tree)
visitNode in class SubscriptionVisitor@CheckForNull public static ExpressionTree equivalentOperand(BinaryExpressionTree tree, ExpressionTree rightOperand)
public static ExpressionTree equivalentOperand(ExpressionTree left, ExpressionTree right, Tree.Kind binaryKind)
Copyright © 2012–2016 SonarSource. All rights reserved.