|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorc.runtime.values.Value
orc.runtime.sites.Site
orc.runtime.sites.PartialSite
public abstract class PartialSite
Abstract class for sites with a partial and immediate semantics: evaluate as for a total immediate site (see EvalSite), but if the evaluation returns null, the site remains silent. The site "if" is a good example. Subclasses must implement the method evaluate, which takes an argument list and returns a single value (possibly null).
| Constructor Summary | |
|---|---|
PartialSite()
|
|
| Method Summary | |
|---|---|
void |
callSite(Args args,
Token caller)
Must be implemented by subclasses to implement the site behavior |
abstract Value |
evaluate(Args args)
|
| 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 |
|---|
public PartialSite()
| Method Detail |
|---|
public void callSite(Args args,
Token caller)
throws TokenException
Site
callSite in class Siteargs - list of argument valuescaller - where the result should be sent
TokenException
public abstract Value evaluate(Args args)
throws TokenException
TokenException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||