Class schemeFW.EmptyList


public class EmptyList
extends Object
implements schemeFW.IEmptyList
Represents the empty list. Implemented as a singleton, using the singleton pattern.

Author:
Dung X. Nguyen, Stephen B. Wong
Version:
1.1

Variable Index

 o Singleton

Constructor Index

 o EmptyList ()

Method Index

 o execute (IListAlgo, Object)
Calls the emptyCase() method of the supplied IListAlgo

Variables

 o Singleton
public static final EmptyList Singleton = new EmptyList ()

Constructors

 o EmptyList
private  EmptyList()

Methods

 o execute
public Object execute(IListAlgo algo, Object inp)
Calls the emptyCase() method of the supplied IListAlgo with the supplied input parameter.

Parameters:
algo - The visitor algorithm to be executed.
inp - input to be handed to the algo's emptyCase().
Returns:
Object output of algo's emptyCase().