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 java.lang.invoke.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 java.lang.ObjectapplyMethodCont(Procedure proc, CallContext ctx)static java.lang.ObjecthandleException(java.lang.Throwable ex, Continuation cont)static voidhandleException$X(java.lang.Throwable ex, Continuation cont, CallContext ctx)java.lang.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
-
-
-
-
Constructor Detail
-
Continuation
public Continuation(CallContext ctx)
-
-
Method Detail
-
applyMethodCont
public static java.lang.Object applyMethodCont(Procedure proc, CallContext ctx) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
handleException$X
public static void handleException$X(java.lang.Throwable ex, Continuation cont, CallContext ctx) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
handleException
public static java.lang.Object handleException(java.lang.Throwable ex, Continuation cont) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
-