Module NullGuards
Provides classes and predicates for null guards.
Import path
import semmle.code.java.dataflow.NullGuardsImports
Predicates
| alwaysNullExpr | Gets an expression that is always |
| baseNotNullExpr | Gets an expression that is provably not |
| basicNullGuard | Gets an expression that directly tests whether a given expression, |
| basicOrCustomNullGuard | DEPRECATED: Use |
| clearlyNotNull | Holds if |
| clearlyNotNull | Holds if |
| clearlyNotNullExpr | Gets an expression that is provably not |
| clearlyNotNullExpr | Gets an expression that is provably not |
| directNullGuard | Gets an expression that directly tests whether a given SSA variable is null or not. |
| enumConstEquality | Gets an equality test between an expression |
| guardSuggestsExprMaybeNull | Holds if |
| guardSuggestsVarMaybeNull | Holds if |
| instanceofExpr | Gets an instanceof expression of |
| nullCheckMethod | Holds if the evaluation of a call to |
| nullGuard | DEPRECATED: Use |
| nullGuardControls | Holds if there exists a null check on |
| nullGuardControlsBranchEdge | Holds if there exists a null check on |
| varEqualityTestExpr | Gets an expression of the form |