gnu.mapping
Class ProcedureN
java.lang.Object
gnu.mapping.Procedure
gnu.mapping.ProcedureN
- All Implemented Interfaces:
- Named
- Direct Known Subclasses:
- AddOp, AddOp, append, Apply, ArrayRef, ArraySet, ClassMethodProc, ConsumeProc, DivideOp, DivideOp, Format, gcd, Invoke, lcm, logand, logior, logxor, make, MakeList, MakeProcedure, map, max, MethodProc, min, MultiplyOp, NumberCompare, NumberCompare, read_line, RecordConstructor, Setter, string_v, throw_name, TracedProcedure, vector_append
public abstract class ProcedureN
- extends Procedure
Abstract class for "N-argument" Scheme procedures, where N>4 or variable.
Field Summary |
static java.lang.Object[] |
noArgs
|
Method Summary |
java.lang.Object |
apply0()
|
java.lang.Object |
apply1(java.lang.Object arg1)
|
java.lang.Object |
apply2(java.lang.Object arg1,
java.lang.Object arg2)
|
java.lang.Object |
apply3(java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3)
|
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)
|
Methods inherited from class gnu.mapping.Procedure |
apply, apply, check0, check1, check2, check3, check4, checkArgCount, checkN, getName, getProperty, getSetter, getSymbol, match0, match1, match2, match3, match4, matchN, maxArgs, minArgs, name, numArgs, removeProperty, set0, set1, setN, setName, setProperty, setProperty, setSetter, setSymbol, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
noArgs
public static final java.lang.Object[] noArgs
ProcedureN
public ProcedureN()
ProcedureN
public ProcedureN(java.lang.String n)
apply0
public java.lang.Object apply0()
throws java.lang.Throwable
- Specified by:
apply0
in class Procedure
- Throws:
java.lang.Throwable
apply1
public java.lang.Object apply1(java.lang.Object arg1)
throws java.lang.Throwable
- Specified by:
apply1
in class Procedure
- Throws:
java.lang.Throwable
apply2
public java.lang.Object apply2(java.lang.Object arg1,
java.lang.Object arg2)
throws java.lang.Throwable
- Specified by:
apply2
in class Procedure
- Throws:
java.lang.Throwable
apply3
public java.lang.Object apply3(java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3)
throws java.lang.Throwable
- Specified by:
apply3
in class Procedure
- Throws:
java.lang.Throwable
apply4
public java.lang.Object apply4(java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4)
throws java.lang.Throwable
- Specified by:
apply4
in class Procedure
- Throws:
java.lang.Throwable
applyN
public abstract java.lang.Object applyN(java.lang.Object[] args)
throws java.lang.Throwable
- Specified by:
applyN
in class Procedure
- Throws:
java.lang.Throwable