Enum InvocationResult.Status
- java.lang.Object
-
- java.lang.Enum<InvocationResult.Status>
-
- com.tonic.analysis.execution.invoke.InvocationResult.Status
-
- All Implemented Interfaces:
Serializable,Comparable<InvocationResult.Status>
- Enclosing class:
- InvocationResult
public static enum InvocationResult.Status extends Enum<InvocationResult.Status>
Outcome category of an invocation attempt.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMPLETEDThe call finished normally; the return value is present unless the callee was void.DELEGATEDAn external executor took the call over, so this result carries no value or frame.EXCEPTIONThe call raised a guest exception, which is carried instead of a return value.NATIVE_HANDLEDA native handler stood in for the callee, supplying the return value without bytecode.PUSH_FRAMEThe callee must be interpreted, so the result carries the frame to push and run.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InvocationResult.StatusvalueOf(String name)Returns the enum constant of this type with the specified name.static InvocationResult.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 InvocationResult.Status COMPLETED
The call finished normally; the return value is present unless the callee was void.
-
PUSH_FRAME
public static final InvocationResult.Status PUSH_FRAME
The callee must be interpreted, so the result carries the frame to push and run.
-
DELEGATED
public static final InvocationResult.Status DELEGATED
An external executor took the call over, so this result carries no value or frame.
-
NATIVE_HANDLED
public static final InvocationResult.Status NATIVE_HANDLED
A native handler stood in for the callee, supplying the return value without bytecode.
-
EXCEPTION
public static final InvocationResult.Status EXCEPTION
The call raised a guest exception, which is carried instead of a return value.
-
-
Method Detail
-
values
public static InvocationResult.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 (InvocationResult.Status c : InvocationResult.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 InvocationResult.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
-
-