gnu.mapping

Class ProcedureN

Implemented Interfaces:
Named
Known Direct Subclasses:
AddOp, AddOp, Apply, ApplyToArgs, ArrayRef, ArraySet, append, DivideOp, DivideOp, Format, GetNamedInstancePart, Invoke, make, map, MakeList, MakeProcedure, MethodProc, MultiplyOp, NumberCompare, NumberCompare, RecordConstructor, Setter, 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 Object[]
noArgs

Constructor Summary

ProcedureN()
ProcedureN(String n)

Method Summary

Object
apply0()
Object
apply1(Object arg1)
Object
apply2(Object arg1, Object arg2)
Object
apply3(Object arg1, Object arg2, Object arg3)
Object
apply4(Object arg1, Object arg2, Object arg3, Object arg4)
abstract Object
applyN(Object[] args)

Methods inherited from class gnu.mapping.Procedure

apply, apply, apply0, apply1, apply2, apply3, apply4, applyN, check0, check1, check2, check3, check4, checkArgCount, checkN, getSetter, getSourceLocation, match0, match1, match2, match3, match4, matchN, maxArgs, minArgs, numArgs, set0, set1, setN, setSetter, setSourceLocation, toString

Methods inherited from class gnu.mapping.PropertySet

getName, getProperty, getSymbol, removeProperty, setName, setProperty, setProperty, setSymbol

Field Details

noArgs

public static final Object[] noArgs

Constructor Details

ProcedureN

public ProcedureN()

ProcedureN

public ProcedureN(String n)

Method Details

apply0

public Object apply0()
            throws Throwable
Overrides:
apply0 in interface Procedure

apply1

public Object apply1(Object arg1)
            throws Throwable
Overrides:
apply1 in interface Procedure

apply2

public Object apply2(Object arg1,
                     Object arg2)
            throws Throwable
Overrides:
apply2 in interface Procedure

apply3

public Object apply3(Object arg1,
                     Object arg2,
                     Object arg3)
            throws Throwable
Overrides:
apply3 in interface Procedure

apply4

public Object apply4(Object arg1,
                     Object arg2,
                     Object arg3,
                     Object arg4)
            throws Throwable
Overrides:
apply4 in interface Procedure

applyN

public abstract Object applyN(Object[] args)
            throws Throwable
Overrides:
applyN in interface Procedure