Package kawa.lang
Class Continuation
- java.lang.Object
-
- gnu.mapping.PropertySet
-
- gnu.mapping.Procedure
-
- gnu.mapping.ProcedureN
-
- gnu.mapping.MethodProc
-
- kawa.lang.Continuation
-
- All Implemented Interfaces:
Named
public class Continuation extends MethodProc
A Continuation "represents an entire (default) future for the computation. This implemementation is based on Java exceptions, and is restricted to "upward" (?) continuation (i.e. catch/throw-type uses).
-
-
Field Summary
Fields Modifier and Type Field Description static MethodHandleapplyMethodContbooleaninvoked-
Fields inherited from class gnu.mapping.MethodProc
applyToConsumerDefaultMP, argTypes, NO_MATCH, NO_MATCH_AMBIGUOUS, NO_MATCH_BAD_TYPE, NO_MATCH_GUARD_FALSE, NO_MATCH_TOO_FEW_ARGS, NO_MATCH_TOO_MANY_ARGS, NO_MATCH_UNUSED_KEYWORD, THROW_ON_EXCEPTION
-
Fields inherited from class gnu.mapping.ProcedureN
applyToObject, noArgs
-
Fields inherited from class gnu.mapping.Procedure
applyMethodType, applyToConsumerDefault, applyToConsumerMethod, applyToObjectDefault, applyToObjectMethod, compilerKey, compilerXKey, inlineIfConstantSymbol, validateApplyKey, validateXApplyKey
-
Fields inherited from class gnu.mapping.PropertySet
nameKey
-
-
Constructor Summary
Constructors Constructor Description Continuation(CallContext ctx)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ObjectapplyMethodCont(Procedure proc, CallContext ctx)static ObjecthandleException(Throwable ex, Continuation cont)static voidhandleException$X(Throwable ex, Continuation cont, CallContext ctx)StringtoString()-
Methods inherited from class gnu.mapping.MethodProc
applyToConsumerDefaultMP, getParameterType, isApplicable, matchFailAsException, mostSpecific, numParameters, overrideEquivalent, resolveParameterTypes
-
Methods inherited from class gnu.mapping.ProcedureN
applyToObject
-
Methods inherited from class gnu.mapping.Procedure
apply0, apply1, apply2, apply3, apply4, applyL, applyN, applyToConsumerDefault, applyToObjectDefault, checkArgCount, checkBadCode, getApplyMethod, getApplyToConsumerMethod, getApplyToObjectMethod, getReturnType, getSetter, getSourceLocation, isSideEffectFree, lookupApplyHandle, maxArgs, maxArgs, minArgs, minArgs, numArgs, set0, set1, setN, setSetter, setSourceLocation
-
Methods inherited from class gnu.mapping.PropertySet
getName, getProperty, getSymbol, removeProperty, setName, setProperty, setProperty, setSymbol
-
-
-
-
Field Detail
-
invoked
public boolean invoked
-
applyMethodCont
public static final MethodHandle applyMethodCont
-
-
Constructor Detail
-
Continuation
public Continuation(CallContext ctx)
-
-
Method Detail
-
applyMethodCont
public static Object applyMethodCont(Procedure proc, CallContext ctx) throws Throwable
- Throws:
Throwable
-
handleException$X
public static void handleException$X(Throwable ex, Continuation cont, CallContext ctx) throws Throwable
- Throws:
Throwable
-
handleException
public static Object handleException(Throwable ex, Continuation cont) throws Throwable
- Throws:
Throwable
-
-