Enum VariableMode
- java.lang.Object
-
- java.lang.Enum<VariableMode>
-
- de.uka.ipd.sdq.simucomframework.variables.stoexvisitor.VariableMode
-
- All Implemented Interfaces:
Serializable
,Comparable<VariableMode>
public enum VariableMode extends Enum<VariableMode>
Modes for evaluating stochastic expressions.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EXCEPTION_ON_NOT_FOUND
An exception is thrown if the evaluation encounters a variable unknown in the current stackframeRETURN_DEFAULT_ON_NOT_FOUND
A default value is returned for variables which do not exist in the stackframe.RETURN_NULL_ON_NOT_FOUND
NULL is returned for variables which do not exist in the stackframe.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static VariableMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static VariableMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EXCEPTION_ON_NOT_FOUND
public static final VariableMode EXCEPTION_ON_NOT_FOUND
An exception is thrown if the evaluation encounters a variable unknown in the current stackframe
-
RETURN_DEFAULT_ON_NOT_FOUND
public static final VariableMode 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
public static final VariableMode RETURN_NULL_ON_NOT_FOUND
NULL is returned for variables which do not exist in the stackframe. Useful for copying stackframes
-
-
Method Detail
-
values
public static VariableMode[] 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 (VariableMode c : VariableMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VariableMode 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
-
-