| java.lang.Object gnu.mapping.Procedure
All known Subclasses: gnu.mapping.Procedure4, gnu.mapping.Procedure2, gnu.mapping.Procedure1or2, gnu.mapping.ProcedureN, gnu.mapping.Procedure0or1, gnu.mapping.Procedure0, gnu.mapping.Procedure3, gnu.mapping.Procedure1,
Procedure | abstract public class Procedure implements Named(Code) | | The abstract parent for all Scheme functions.
author: Per Bothner |
Method Summary | |
public void | apply(Runnable ctx) | abstract public Object | apply0() | abstract public Object | apply1(Object arg1) | abstract public Object | apply2(Object arg1, Object arg2) | abstract public Object | apply3(Object arg1, Object arg2, Object arg3) | abstract public Object | apply4(Object arg1, Object arg2, Object arg3, Object arg4) | abstract public Object | applyN(Object[] args) | public static void | checkArgCount(Procedure proc, int argCount) Check that the number of arguments in a call is valid. | public String | getName() | public Object | getProperty(Object key, Object defaultValue) | public Procedure | getSetter() | final public int | maxArgs() Maximum number of arguments allowed, or -1 for unlimited. | final public int | minArgs() Minimum number of arguments required. | final public String | name() | public int | numArgs() Return minArgs()|(maxArgs<<12). | public Object | removeProperty(Object key) | public void | set0(Object result) | public void | set1(Object arg1, Object value) | public void | setN(Object[] args) | final public void | setName(String name) | public synchronized void | setProperty(Object key, Object value) | public static Object[] | setProperty(Object[] properties, Object key, Object value) Given a property list, update it. | public String | toString() Call this Procedure using the explicit-CallContext-convention.
The input arguments are (by default) in stack.args;
the result is (by default) left in stack.value. |
Procedure | public Procedure()(Code) | | |
checkArgCount | public static void checkArgCount(Procedure proc, int argCount)(Code) | | Check that the number of arguments in a call is valid.
Parameters: proc - the Procedure being called Parameters: argCount - the number of arguments in the call nothing, if the number of arguments is ok exception: WrongArguments - there are too many or toofew actual arguments |
maxArgs | final public int maxArgs()(Code) | | Maximum number of arguments allowed, or -1 for unlimited.
|
minArgs | final public int minArgs()(Code) | | Minimum number of arguments required.
|
numArgs | public int numArgs()(Code) | | Return minArgs()|(maxArgs<<12).
|
setProperty | public static Object[] setProperty(Object[] properties, Object key, Object value)(Code) | | Given a property list, update it.
Parameters: properties - the input property list Parameters: key - Parameters: value - associate this with key in result updated property list (maybe the same as the input) |
toString | public String toString()(Code) | | Call this Procedure using the explicit-CallContext-convention.
The input arguments are (by default) in stack.args;
the result is (by default) left in stack.value.
|
|
|