Enum Class VariableMode
- All Implemented Interfaces:
Serializable
,Comparable<VariableMode>
,Constable
Modes for evaluating stochastic expressions.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAn exception is thrown if the evaluation encounters a variable unknown in the current stackframeA default value is returned for variables which do not exist in the stackframe.NULL is returned for variables which do not exist in the stackframe. -
Method Summary
Modifier and TypeMethodDescriptionstatic VariableMode
Returns the enum constant of this class with the specified name.static VariableMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EXCEPTION_ON_NOT_FOUND
An exception is thrown if the evaluation encounters a variable unknown in the current stackframe -
RETURN_DEFAULT_ON_NOT_FOUND
A default value is returned for variables which do not exist in the stackframe. It is 0 for numeric types and "" for enum types. Useful for determining bytesizes of the stack contents in cases where not for all variables characterisations exist -
RETURN_NULL_ON_NOT_FOUND
NULL is returned for variables which do not exist in the stackframe. Useful for copying stackframes
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-