jfun.parsec
Interface Accumulator<From,To>

All Superinterfaces:
java.io.Serializable

public interface Accumulator<From,To>
extends java.io.Serializable

Used to accumulate objects. Parsers.manyAccum() use Accumulator to collect return values. Can be parameterized as Accumulator

Author:
Ben Yu 2004-11-12

Method Summary
 void accumulate(From obj)
          accumulate one object into the result.
 To getResult()
          gets the accumulated result.
 

Method Detail

accumulate

void accumulate(From obj)
accumulate one object into the result.

Parameters:
obj - the object to be accumulated.

getResult

To getResult()
gets the accumulated result.

Returns:
the result.