public enum DfaNullability extends java.lang.Enum<DfaNullability>
Nullability
may have more fine-grained
values useful during the DFA. If you have a DfaNullability value (e.g. from CommonDataflow
),
and want to check if it's nullable, or not, it's advised to convert it to Nullability
first,
as more values could be introduced to this enum in future.Enum Constant and Description |
---|
FLUSHED
Means: non-stable variable declared as Nullable was checked for nullity and flushed afterwards (e.g.
|
NOT_NULL |
NULL
Means: exactly null
|
NULLABLE |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
DfReferenceType |
asDfType() |
static DfaNullability |
fromDfType(DfType type) |
static DfaNullability |
fromNullability(Nullability nullability) |
java.lang.String |
getInternalName() |
java.lang.String |
getPresentationName() |
DfaNullability |
intersect(DfaNullability right) |
static Nullability |
toNullability(DfaNullability dfaNullability) |
DfaNullability |
unite(DfaNullability other) |
static DfaNullability |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DfaNullability[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DfaNullability NULL
public static final DfaNullability NULLABLE
public static final DfaNullability NOT_NULL
public static final DfaNullability UNKNOWN
public static final DfaNullability FLUSHED
public static DfaNullability[] values()
for (DfaNullability c : DfaNullability.values()) System.out.println(c);
public static DfaNullability valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getInternalName()
public java.lang.String getPresentationName()
public DfaNullability unite(DfaNullability other)
public DfaNullability intersect(DfaNullability right)
public static Nullability toNullability(DfaNullability dfaNullability)
public static DfaNullability fromNullability(Nullability nullability)
public DfReferenceType asDfType()
public static DfaNullability fromDfType(DfType type)