|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gnu.mapping.Procedure
public abstract class Procedure
The abstract parent for all Scheme functions.
Constructor Summary | |
---|---|
Procedure()
|
|
Procedure(java.lang.String n)
|
Method Summary | |
---|---|
void |
apply(CallContext ctx)
Call this Procedure using the explicit-CallContext-convention. |
static void |
apply(Procedure proc,
CallContext ctx)
|
abstract java.lang.Object |
apply0()
|
abstract java.lang.Object |
apply1(java.lang.Object arg1)
|
abstract java.lang.Object |
apply2(java.lang.Object arg1,
java.lang.Object arg2)
|
abstract java.lang.Object |
apply3(java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3)
|
abstract java.lang.Object |
apply4(java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4)
|
abstract java.lang.Object |
applyN(java.lang.Object[] args)
|
void |
check0(CallContext ctx)
Does match0, plus throws exception on argument mismatch. |
void |
check1(java.lang.Object arg1,
CallContext ctx)
Does match1, plus throws exception on argument mismatch. |
void |
check2(java.lang.Object arg1,
java.lang.Object arg2,
CallContext ctx)
Does match, plus throws exception on argument mismatch. |
void |
check3(java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
CallContext ctx)
Does match3, plus throws exception on argument mismatch. |
void |
check4(java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4,
CallContext ctx)
Does match4, plus throws exception on argument mismatch. |
static void |
checkArgCount(Procedure proc,
int argCount)
Check that the number of arguments in a call is valid. |
void |
checkN(java.lang.Object[] args,
CallContext ctx)
Does matchN, plus throws exception on argument mismatch. |
java.lang.String |
getName()
|
java.lang.Object |
getProperty(java.lang.Object key,
java.lang.Object defaultValue)
|
Procedure |
getSetter()
|
java.lang.Object |
getSymbol()
|
int |
match0(CallContext ctx)
Pass zero arguments. |
int |
match1(java.lang.Object arg1,
CallContext ctx)
Pass one argument. |
int |
match2(java.lang.Object arg1,
java.lang.Object arg2,
CallContext ctx)
Pass two arguments. |
int |
match3(java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
CallContext ctx)
Pass three arguments. |
int |
match4(java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4,
CallContext ctx)
Pass four arguments. |
int |
matchN(java.lang.Object[] args,
CallContext ctx)
|
int |
maxArgs()
Maximum number of arguments allowed, or -1 for unlimited. |
int |
minArgs()
Minimum number of arguments required. |
java.lang.String |
name()
Deprecated. |
int |
numArgs()
Return minArgs()|(maxArgs<<12). |
java.lang.Object |
removeProperty(java.lang.Object key)
|
void |
set0(java.lang.Object result)
If HasSetter, the Procedure is called in the LHS of an assignment. |
void |
set1(java.lang.Object arg1,
java.lang.Object value)
|
void |
setN(java.lang.Object[] args)
|
void |
setName(java.lang.String name)
|
static java.lang.Object[] |
setProperty(java.lang.Object[] properties,
java.lang.Object key,
java.lang.Object value)
Given a property list, update it. |
void |
setProperty(java.lang.Object key,
java.lang.Object value)
|
void |
setSetter(Procedure setter)
|
void |
setSymbol(java.lang.Object name)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Procedure()
public Procedure(java.lang.String n)
Method Detail |
---|
public java.lang.String getName()
getName
in interface Named
public java.lang.Object getSymbol()
getSymbol
in interface Named
public final java.lang.String name()
public final void setSymbol(java.lang.Object name)
public final void setName(java.lang.String name)
setName
in interface Named
public abstract java.lang.Object applyN(java.lang.Object[] args) throws java.lang.Throwable
java.lang.Throwable
public abstract java.lang.Object apply0() throws java.lang.Throwable
java.lang.Throwable
public abstract java.lang.Object apply1(java.lang.Object arg1) throws java.lang.Throwable
java.lang.Throwable
public abstract java.lang.Object apply2(java.lang.Object arg1, java.lang.Object arg2) throws java.lang.Throwable
java.lang.Throwable
public abstract java.lang.Object apply3(java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3) throws java.lang.Throwable
java.lang.Throwable
public abstract java.lang.Object apply4(java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4) throws java.lang.Throwable
java.lang.Throwable
public final int minArgs()
public final int maxArgs()
public static void checkArgCount(Procedure proc, int argCount)
proc
- the Procedure being calledargCount
- the number of arguments in the call
WrongArguments
- there are too many or too
few actual argumentspublic int numArgs()
public void apply(CallContext ctx) throws java.lang.Throwable
java.lang.Throwable
public static void apply(Procedure proc, CallContext ctx) throws java.lang.Throwable
java.lang.Throwable
public int match0(CallContext ctx)
public int match1(java.lang.Object arg1, CallContext ctx)
public int match2(java.lang.Object arg1, java.lang.Object arg2, CallContext ctx)
public int match3(java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, CallContext ctx)
public int match4(java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4, CallContext ctx)
public int matchN(java.lang.Object[] args, CallContext ctx)
public void check0(CallContext ctx)
public void check1(java.lang.Object arg1, CallContext ctx)
public void check2(java.lang.Object arg1, java.lang.Object arg2, CallContext ctx)
public void check3(java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, CallContext ctx)
public void check4(java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4, CallContext ctx)
public void checkN(java.lang.Object[] args, CallContext ctx)
public Procedure getSetter()
public void setSetter(Procedure setter)
public void set0(java.lang.Object result) throws java.lang.Throwable
java.lang.Throwable
public void set1(java.lang.Object arg1, java.lang.Object value) throws java.lang.Throwable
java.lang.Throwable
public void setN(java.lang.Object[] args) throws java.lang.Throwable
java.lang.Throwable
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object getProperty(java.lang.Object key, java.lang.Object defaultValue)
public void setProperty(java.lang.Object key, java.lang.Object value)
public static java.lang.Object[] setProperty(java.lang.Object[] properties, java.lang.Object key, java.lang.Object value)
properties
- the input property listkey
- value
- associate this with key in result
public java.lang.Object removeProperty(java.lang.Object key)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |