Enum SimValue.NullState
- java.lang.Object
-
- java.lang.Enum<SimValue.NullState>
-
- com.tonic.analysis.simulation.state.SimValue.NullState
-
- All Implemented Interfaces:
Serializable,Comparable<SimValue.NullState>
- Enclosing class:
- SimValue
public static enum SimValue.NullState extends Enum<SimValue.NullState>
What is known about a reference value's nullness.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEFINITELY_NOT_NULLThe value is non-null on every path, as for a fresh allocation.DEFINITELY_NULLThe value is null on every path reaching this point, as for a simulated null constant.MAYBE_NULLNullness is unknown; also the result of merging two values whose states disagree, and the default for a value with no null information.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SimValue.NullStatevalueOf(String name)Returns the enum constant of this type with the specified name.static SimValue.NullState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFINITELY_NULL
public static final SimValue.NullState DEFINITELY_NULL
The value is null on every path reaching this point, as for a simulated null constant.
-
DEFINITELY_NOT_NULL
public static final SimValue.NullState DEFINITELY_NOT_NULL
The value is non-null on every path, as for a fresh allocation.
-
MAYBE_NULL
public static final SimValue.NullState MAYBE_NULL
Nullness is unknown; also the result of merging two values whose states disagree, and the default for a value with no null information.
-
-
Method Detail
-
values
public static SimValue.NullState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SimValue.NullState c : SimValue.NullState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SimValue.NullState valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-