public class AlwaysTrueOrFalseExpressionCollector extends Object
Constructor and Description |
---|
AlwaysTrueOrFalseExpressionCollector() |
Modifier and Type | Method and Description |
---|---|
static List<JavaFileScannerContext.Location> |
addIssueLocation(List<JavaFileScannerContext.Location> flow,
Tree issueTree,
boolean conditionIsAlwaysTrue) |
Set<Tree> |
alwaysFalse() |
Set<Tree> |
alwaysTrue() |
Set<List<JavaFileScannerContext.Location>> |
flowForExpression(Tree expression) |
static boolean |
hasUnreachableCode(Tree booleanExpr,
boolean isTrue) |
public AlwaysTrueOrFalseExpressionCollector()
public Set<List<JavaFileScannerContext.Location>> flowForExpression(Tree expression)
public static List<JavaFileScannerContext.Location> addIssueLocation(List<JavaFileScannerContext.Location> flow, Tree issueTree, boolean conditionIsAlwaysTrue)
public static boolean hasUnreachableCode(Tree booleanExpr, boolean isTrue)
Copyright © 2012–2017 SonarSource. All rights reserved.