|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.erights.e.elib.prim.CallableScript
| Field Summary | |
(package private) static Script |
THE_ONE
The behavior of all Callables are described by the one CallableScript |
| Constructor Summary | |
private |
CallableScript()
|
| Method Summary | |
Object |
execute(Object self,
String verb,
Object[] args)
Enabled: verb must be an interned string |
void |
protocol(Object optSelf,
FlexList mTypes)
Enabled: Adds to 'mTypes' the mappings provided by this script. |
boolean |
respondsTo(Object optSelf,
String verb,
int arity)
Enabled: Does an object whose behavior is this script respond to verb/arity messages? |
Script |
shorten(Object optSelf,
String aVerb,
Object[] args)
Delegate's the shortening to optSelf's Callable.optShorten(java.lang.String, java.lang.Object[]) |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
static final Script THE_ONE
| Constructor Detail |
private CallableScript()
| Method Detail |
public Script shorten(Object optSelf,
String aVerb,
Object[] args)
Callable.optShorten(java.lang.String, java.lang.Object[])
shorten in interface ScriptoptSelf - If present, then a script could shorten using
instance-specific data.aVerb - Must be internedargs - Typically, only its arity is used. But OverloaderNode uses
the types of the arguments to select among Java overloads.
public Object execute(Object self,
String verb,
Object[] args)
Script
execute in interface Scriptself - verb - args -
public void protocol(Object optSelf,
FlexList mTypes)
Script
protocol in interface ScriptoptSelf - mTypes -
public boolean respondsTo(Object optSelf,
String verb,
int arity)
Script
respondsTo in interface ScriptoptSelf - verb - arity -
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||