Enum BytecodeResult.Status
- java.lang.Object
-
- java.lang.Enum<BytecodeResult.Status>
-
- com.tonic.analysis.execution.core.BytecodeResult.Status
-
- All Implemented Interfaces:
Serializable,Comparable<BytecodeResult.Status>
- Enclosing class:
- BytecodeResult
public static enum BytecodeResult.Status extends Enum<BytecodeResult.Status>
Terminal condition of an execution.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMPLETEDThe method returned normally; the return value is the only payload.DEPTH_LIMITThe run exceeded the maximum call depth, meaning recursion or nesting ran away.EXCEPTIONAn exception escaped the method unhandled, and is carried along with a stack trace.INSTRUCTION_LIMITThe run exhausted its instruction budget; the executed count is carried.INTERRUPTEDThe run was stopped by an interrupt request rather than by the code itself.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BytecodeResult.StatusvalueOf(String name)Returns the enum constant of this type with the specified name.static BytecodeResult.Status[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
COMPLETED
public static final BytecodeResult.Status COMPLETED
The method returned normally; the return value is the only payload.
-
EXCEPTION
public static final BytecodeResult.Status EXCEPTION
An exception escaped the method unhandled, and is carried along with a stack trace.
-
INTERRUPTED
public static final BytecodeResult.Status INTERRUPTED
The run was stopped by an interrupt request rather than by the code itself.
-
INSTRUCTION_LIMIT
public static final BytecodeResult.Status INSTRUCTION_LIMIT
The run exhausted its instruction budget; the executed count is carried.
-
DEPTH_LIMIT
public static final BytecodeResult.Status DEPTH_LIMIT
The run exceeded the maximum call depth, meaning recursion or nesting ran away.
-
-
Method Detail
-
values
public static BytecodeResult.Status[] 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 (BytecodeResult.Status c : BytecodeResult.Status.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BytecodeResult.Status 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
-
-