|
||||||||||
| 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.lib.orchard.Prompt
public class Prompt
Ask the user a question and return their response. This is designed to interact with the Orchard services so that Orchard clients can handle the prompt.
| Nested Class Summary | |
|---|---|
static interface |
Prompt.Promptable
Interface implemented by an engine which can handle the Prompt site. |
static interface |
Prompt.PromptCallback
|
| Constructor Summary | |
|---|---|
Prompt()
|
|
| Method Summary | |
|---|---|
void |
callSite(Args args,
Token caller)
Must be implemented by subclasses to implement the site behavior |
| 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 Prompt()
| 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||