lrs.visitor
Class SetNth

java.lang.Object
  extended by lrs.visitor.SetNth
All Implemented Interfaces:
IAlgo

public class SetNth
extends java.lang.Object
implements IAlgo


Field Summary
private static ICounterAlgo counterAlgo
           
static SetNth Singleton
           
 
Constructor Summary
private SetNth()
           
 
Method Summary
 java.lang.Object emptyCase(LRStruct host, java.lang.Object... param)
          Operates on an empty LRStruct host, given an input object.
 java.lang.Object nonEmptyCase(LRStruct host, java.lang.Object... param)
          Operates on a non-empty LRStruct host, given an input object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Singleton

public static SetNth Singleton

counterAlgo

private static final ICounterAlgo counterAlgo
Constructor Detail

SetNth

private SetNth()
Method Detail

emptyCase

public java.lang.Object emptyCase(LRStruct host,
                                  java.lang.Object... param)
Description copied from interface: IAlgo
Operates on an empty LRStruct host, given an input object.

Specified by:
emptyCase in interface IAlgo
Parameters:
host -
param -
Returns:

nonEmptyCase

public java.lang.Object nonEmptyCase(LRStruct host,
                                     java.lang.Object... param)
Description copied from interface: IAlgo
Operates on a non-empty LRStruct host, given an input object.

Specified by:
nonEmptyCase in interface IAlgo
Parameters:
host -
param - param[0] = ICounter, param[1] = data
Returns: