Building Parsers with Java

sjm.examples.query
Class ComparisonAssembler

java.lang.Object
  |
  +--sjm.parse.Assembler
        |
        +--sjm.examples.query.ComparisonAssembler

public class ComparisonAssembler
extends Assembler

This assembler pops a comparison term, an operator, and another comparison term. It builds the comparison and passes the comparison to the query builder that this assembler expects to find in the assembly's target.


Constructor Summary
ComparisonAssembler()
           
 
Method Summary
 void workOn(Assembly a)
          Pops a comparison term, an operator, and another comparison term.
 
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

ComparisonAssembler

public ComparisonAssembler()
Method Detail

workOn

public void workOn(Assembly a)
Pops a comparison term, an operator, and another comparison term. Builds the comparison and passes the comparison to the query builder that this assembler expects to find in the assembly's target.
Overrides:
workOn in class Assembler
Tags copied from class: Assembler
Parameters:
Assembly - the assembly to work on

by Steve Metsker