Class XbaseInterpreter.ReturnValue
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter.ReturnValue
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- XbaseInterpreter
public static class XbaseInterpreter.ReturnValue extends java.lang.RuntimeException
Encapsulates the return value of anXReturnExpression
. To be able to break up the control flow of the interpreter, this class inherits fromRuntimeException
. Clients that catch the ReturnValue, should usually re-throw it further. See alsoXbaseInterpreter._doEvaluate(XTryCatchFinallyExpression, IEvaluationContext, CancelIndicator)
where the finally clause is evaluated after the return value has been computed but the original return value is propagated further, if the finally block completes normally.- Since:
- 2.25
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.Object
returnValue
-
Constructor Summary
Constructors Constructor Description ReturnValue(java.lang.Object value)
-