gnu.mapping

Class Procedure0or1

public abstract class Procedure0or1 extends Procedure

Abstract class for 0- or 1-argument Scheme procedures. Extensions must provide apply0 and apply1.
Constructor Summary
Procedure0or1()
Procedure0or1(String n)
Method Summary
abstract Objectapply0()
abstract Objectapply1(Object arg1)
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

Procedure0or1

public Procedure0or1()

Procedure0or1

public Procedure0or1(String n)

Method Detail

apply0

public abstract Object apply0()

apply1

public abstract Object apply1(Object arg1)

apply2

public 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()