orc.runtime.sites
Class DotSite

java.lang.Object
  extended by orc.runtime.values.Value
      extended by orc.runtime.sites.Site
          extended by orc.runtime.sites.EvalSite
              extended by orc.runtime.sites.DotSite
All Implemented Interfaces:
Callable, Future
Direct Known Subclasses:
Buffer.BufferInstance, Cell.CellInstance, GoogleCalendar, Mail, Mail.MailFilter, Mail.MailFolder, Mail.MailMessage, Mail.MailStore, Mail.MailTransport, MySpace, Ref.RefInstance, SyncChannel.SyncChannelInstance

public abstract class DotSite
extends EvalSite

Author:
dkitchin Dot-accessible sites should extend this class and declare their Orc-available methods using addMethods. The code is forward-compatible with many possible optimizations on the field lookup strategy.

Constructor Summary
DotSite()
           
 
Method Summary
protected  void addMethod(java.lang.String f, Value s)
           
protected abstract  void addMethods()
           
 Value evaluate(Args args)
           
 
Methods inherited from class orc.runtime.sites.EvalSite
callSite
 
Methods inherited from class orc.runtime.sites.Site
accept, createCall
 
Methods inherited from class orc.runtime.values.Value
forceArg, forceCall, head, isCons, isNil, isNone, isSome, signal, tail, untag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DotSite

public DotSite()
Method Detail

evaluate

public Value evaluate(Args args)
               throws TokenException
Specified by:
evaluate in class EvalSite
Throws:
TokenException

addMethods

protected abstract void addMethods()

addMethod

protected void addMethod(java.lang.String f,
                         Value s)