public class NullabilityUtil
extends java.lang.Object
Constructor and Description |
---|
NullabilityUtil() |
Modifier and Type | Method and Description |
---|---|
static DfaNullability |
calcCanBeNull(DfaVariableValue value) |
static Nullability |
getExpressionNullability(PsiExpression expression) |
static Nullability |
getExpressionNullability(PsiExpression expression,
boolean useDataflow)
Tries to determine an expression nullability
|
public static DfaNullability calcCanBeNull(DfaVariableValue value)
public static Nullability getExpressionNullability(PsiExpression expression)
public static Nullability getExpressionNullability(PsiExpression expression, boolean useDataflow)
expression
- an expression to checkuseDataflow
- whether to use dataflow (more expensive, but may produce more precise result)