orc.runtime.sites.core
Class SiteSite

java.lang.Object
  extended by orc.runtime.values.Value
      extended by orc.runtime.sites.Site
          extended by orc.runtime.sites.PartialSite
              extended by orc.runtime.sites.core.SiteSite
All Implemented Interfaces:
Callable

public class SiteSite
extends PartialSite

Implements the Site site. This site promotes an Orc closure to a site, making it strict in its arguments, requiring that it return only one value (subsequent returns are ignored), and protecting it from termination.

Author:
dkitchin

Field Summary
 
Fields inherited from class orc.runtime.values.Value
futureNotReady
 
Constructor Summary
SiteSite()
           
 
Method Summary
 java.lang.Object evaluate(Args args)
           
 Type type()
           
 
Methods inherited from class orc.runtime.sites.PartialSite
callSite
 
Methods inherited from class orc.runtime.sites.Site
accept, createCall
 
Methods inherited from class orc.runtime.values.Value
forceArg, forceCall, signal, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SiteSite

public SiteSite()
Method Detail

type

public Type type()
Overrides:
type in class Site

evaluate

public java.lang.Object evaluate(Args args)
                          throws TokenException
Specified by:
evaluate in class PartialSite
Throws:
TokenException