public class DfaUtil
extends java.lang.Object
Constructor and Description |
---|
DfaUtil() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<? extends MethodContract> |
addRangeContracts(PsiMethod method,
java.util.List<? extends MethodContract> contracts) |
static DfaValue |
boxUnbox(DfaValue value,
PsiType type) |
static Nullability |
checkNullability(PsiVariable variable,
PsiElement context)
Deprecated.
use
NullabilityUtil.getExpressionNullability(PsiExpression, boolean)
Note that variable parameter is not used at all now. |
static java.lang.Boolean |
evaluateCondition(PsiExpression condition)
Tries to evaluate boolean condition using dataflow analysis.
|
static java.util.Collection<PsiExpression> |
getCachedVariableValues(PsiVariable variable,
PsiElement context) |
static java.util.Collection<PsiExpression> |
getPossibleInitializationElements(PsiElement qualifierExpression) |
static boolean |
hasImplicitImpureSuperCall(PsiClass aClass,
PsiMethod constructor) |
static boolean |
hasInitializationHacks(PsiField field) |
static boolean |
ignoreInitializer(PsiVariable variable) |
static Nullability |
inferLambdaNullability(PsiLambdaExpression lambda) |
static Nullability |
inferMethodNullability(PsiMethod method) |
static boolean |
isEmptyCollectionConstantField(PsiVariable var) |
static boolean |
isNaN(java.lang.Object value) |
public static java.util.Collection<PsiExpression> getCachedVariableValues(PsiVariable variable, PsiElement context)
@Deprecated public static Nullability checkNullability(PsiVariable variable, PsiElement context)
NullabilityUtil.getExpressionNullability(PsiExpression, boolean)
Note that variable parameter is not used at all now.public static java.util.Collection<PsiExpression> getPossibleInitializationElements(PsiElement qualifierExpression)
public static Nullability inferMethodNullability(PsiMethod method)
public static Nullability inferLambdaNullability(PsiLambdaExpression lambda)
public static boolean hasInitializationHacks(PsiField field)
public static boolean ignoreInitializer(PsiVariable variable)
public static boolean hasImplicitImpureSuperCall(PsiClass aClass, PsiMethod constructor)
public static java.lang.Boolean evaluateCondition(PsiExpression condition)
a > b
and constant expressions.condition
- condition to evaluatepublic static java.util.List<? extends MethodContract> addRangeContracts(PsiMethod method, java.util.List<? extends MethodContract> contracts)
public static boolean isEmptyCollectionConstantField(PsiVariable var)
public static boolean isNaN(java.lang.Object value)