jsint
Class Continuation

java.lang.Object
  extended byjsint.Procedure
      extended byjsint.Continuation
All Implemented Interfaces:
java.lang.Runnable, SchemeProcedure, java.io.Serializable

public class Continuation
extends Procedure

A continuation.

Author:
Peter Norvig, Copyright 1998, peter@norvig.com, license subsequently modified by Jscheme project members licensed under zlib licence (see license.txt)
See Also:
Serialized Form

Field Summary
 java.lang.Object value
           
 
Fields inherited from class jsint.Procedure
maxArgs, minArgs, name
 
Constructor Summary
Continuation(java.lang.RuntimeException cc)
           
 
Method Summary
 java.lang.Object apply(java.lang.Object[] args)
          Apply the procedure to an argument list, which is represented as a parameter-oriented array.
 
Methods inherited from class jsint.Procedure
apply, apply, catching, getName, makeArgArray, makeArgArray, nParms, run, setName, stripExceptionWrapper, synchronize, throwObject, throwRuntimeException, toString, toStringArgs, tryCatch, tryFinally
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

value

public java.lang.Object value
Constructor Detail

Continuation

public Continuation(java.lang.RuntimeException cc)
Method Detail

apply

public java.lang.Object apply(java.lang.Object[] args)
Description copied from class: Procedure
Apply the procedure to an argument list, which is represented as a parameter-oriented array. That is, if the procedure p has the parameter list (x y . z) and the call is (p 1 2 3 4) then args will be the array {1, 2, (3 4)}.

Specified by:
apply in interface SchemeProcedure
Specified by:
apply in class Procedure