|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataFlowInfo
This interface is intended to provide and edit information about value nullabilities and possible types. Data flow info is immutable so functions never change it.
Field Summary | |
---|---|
static DataFlowInfo |
EMPTY
|
Method Summary | |
---|---|
DataFlowInfo |
and(DataFlowInfo other)
Call this function to add data flow information from other to this and return sum as the result |
DataFlowInfo |
assign(DataFlowValue a,
DataFlowValue b)
Call this function when b is assigned to a |
DataFlowInfo |
clearValueInfo(DataFlowValue value)
Call this function to clear all data flow information about the given data flow value. |
DataFlowInfo |
disequate(DataFlowValue a,
DataFlowValue b)
Call this function when it's known than a != b |
DataFlowInfo |
equate(DataFlowValue a,
DataFlowValue b)
Call this function when it's known than a == b |
DataFlowInfo |
establishSubtyping(DataFlowValue value,
KotlinType type)
|
java.util.Map<DataFlowValue,Nullability> |
getCompleteNullabilityInfo()
|
com.google.common.collect.SetMultimap<DataFlowValue,KotlinType> |
getCompleteTypeInfo()
|
Nullability |
getNullability(DataFlowValue key)
Returns collected nullability for the given value, NOT taking its predictability into account. |
java.util.Set<KotlinType> |
getPossibleTypes(DataFlowValue key)
IMPORTANT: by default, the original (native) type for this value are NOT included. |
Nullability |
getPredictableNullability(DataFlowValue key)
Returns collected nullability for the given value if it's predictable. |
DataFlowInfo |
or(DataFlowInfo other)
Call this function to choose data flow information common for this and other and return it as the result |
Field Detail |
---|
static final DataFlowInfo EMPTY
Method Detail |
---|
@NotNull java.util.Map<DataFlowValue,Nullability> getCompleteNullabilityInfo()
@NotNull com.google.common.collect.SetMultimap<DataFlowValue,KotlinType> getCompleteTypeInfo()
@NotNull Nullability getNullability(@NotNull DataFlowValue key)
@NotNull Nullability getPredictableNullability(@NotNull DataFlowValue key)
@NotNull java.util.Set<KotlinType> getPossibleTypes(@NotNull DataFlowValue key)
@NotNull DataFlowInfo clearValueInfo(@NotNull DataFlowValue value)
@NotNull DataFlowInfo assign(@NotNull DataFlowValue a, @NotNull DataFlowValue b)
@NotNull DataFlowInfo equate(@NotNull DataFlowValue a, @NotNull DataFlowValue b)
@NotNull DataFlowInfo disequate(@NotNull DataFlowValue a, @NotNull DataFlowValue b)
@NotNull DataFlowInfo establishSubtyping(@NotNull DataFlowValue value, @NotNull KotlinType type)
@NotNull DataFlowInfo and(@NotNull DataFlowInfo other)
@NotNull DataFlowInfo or(@NotNull DataFlowInfo other)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |