Package tech.ixor.calclox
Class Return
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
tech.ixor.calclox.Return
- All Implemented Interfaces:
Serializable
Internal, stackless control-flow signal used to return from a function body.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
value
Value returned by the function, ornullfor an empty return.
-
-
Constructor Details
-
Return
Creates a return signal.- Parameters:
value- value carried to the function call boundary
-