gnu.mapping

Class Procedure1or2

public abstract class Procedure1or2 extends Procedure

Abstract class for 1- or 2-argument Scheme procedures. Extensions must provide apply1 and apply2.
Constructor Summary
Procedure1or2()
Procedure1or2(String n)
Method Summary
Objectapply0()
abstract Objectapply1(Object arg1)
abstract Objectapply2(Object arg1, Object arg2)
Objectapply3(Object arg1, Object arg2, Object arg3)
Objectapply4(Object arg1, Object arg2, Object arg3, Object arg4)
ObjectapplyN(Object[] args)
intnumArgs()

Constructor Detail

Procedure1or2

public Procedure1or2()

Procedure1or2

public Procedure1or2(String n)

Method Detail

apply0

public Object apply0()

apply1

public abstract Object apply1(Object arg1)

apply2

public abstract Object apply2(Object arg1, Object arg2)

apply3

public Object apply3(Object arg1, Object arg2, Object arg3)

apply4

public Object apply4(Object arg1, Object arg2, Object arg3, Object arg4)

applyN

public Object applyN(Object[] args)

numArgs

public int numArgs()