Building Parsers with Java

Package sjm.examples.coffee

Class Summary
AlsoFrenchAssembler This assembler sets a target coffee object boolean that indicates the type of coffee also comes in a french roast.
Coffee A Coffee object represents a type of coffee.
CoffeeParser This class provides a parser that recognizes a textual description of a type of coffee, and builds a corresponding coffee object.
CountryAssembler This assembler pops a string, and sets the target coffee's country to this string.
CountryHelper This helper sets a target coffee object's country attribute.
FormerNameAssembler This assembler pops a string, and sets the target coffee's former name to this string.
FormerNameHelper This helper sets a target coffee object's formerName attribute.
Helper This class is the top of a hierarchy of classes that help to build a coffee object, based on recognizing elements of an XML markup file.
NameAssembler 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.
NameHelper This helper sets a target coffee object's name attribute.
NewCoffeeHelper This helper adds a new coffee object to the end of a vector of coffees.
OrFrenchHelper This helper sets a target coffee object's alsoOfferFrench attribute to true.
PriceAssembler Pops a number and sets the target coffee's price to this number.
PriceHelper This helper sets a target coffee object's price attribute.
RoastAssembler This assembler pops a string, and sets the target coffee's roast to this string.
RoastHelper This helper sets a target coffee object's roast attribute.
ShowCoffee Show the recognition of a list of types of coffee, reading from a file.
ShowCoffeeXML Show the recognition of a list of types of coffee, reading from an XML file.
 


by Steve Metsker