Building Parsers with Java

sjm.examples.coffee
Class NameAssembler

java.lang.Object
  |
  +--sjm.parse.Assembler
        |
        +--sjm.examples.coffee.NameAssembler

public class NameAssembler
extends Assembler

This assembler pops a coffee's name from an assembly's stack, and sets the assembly's target to be a new Coffee object with this name.


Constructor Summary
NameAssembler()
           
 
Method Summary
 void workOn(Assembly a)
          Pop a coffee's name from an assembly's stack, and set the assembly's target to be a new Coffee object with this name.
 
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

NameAssembler

public NameAssembler()
Method Detail

workOn

public void workOn(Assembly a)
Pop a coffee's name from an assembly's stack, and set the assembly's target to be a new Coffee object with this name.
Overrides:
workOn in class Assembler
Parameters:
Assembly - the assembly to work on

by Steve Metsker