Class 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 an XReturnExpression. To be able to break up the control flow of the interpreter, this class inherits from RuntimeException. Clients that catch the ReturnValue, should usually re-throw it further. See also XbaseInterpreter._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)  
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • returnValue

        public java.lang.Object returnValue
    • Constructor Detail

      • ReturnValue

        public ReturnValue​(java.lang.Object value)