Building Parsers with Java

sjm.examples.design
Class AverageAssembler

java.lang.Object
  |
  +--sjm.parse.Assembler
        |
        +--sjm.examples.design.AverageAssembler

public class AverageAssembler
extends Assembler

This assembler updates a running average.


Constructor Summary
AverageAssembler()
           
 
Method Summary
 void workOn(Assembly a)
          Increases a running average, by the length of the string on the stack.
 
Methods inherited from class sjm.parse.Assembler
elementsAbove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AverageAssembler

public AverageAssembler()
Method Detail

workOn

public void workOn(Assembly a)
Increases a running average, by the length of the string on the stack.
Overrides:
workOn in class Assembler
Tags copied from class: Assembler
Parameters:
Assembly - the assembly to work on

by Steve Metsker