com.slurm.gf
Class SimpleGFParserCallback

java.lang.Object
  |
  +--com.slurm.gf.GFParserCallback
        |
        +--com.slurm.gf.SimpleGFParserCallback

public class SimpleGFParserCallback
extends GFParserCallback

Simple concrete implementation of GFParserCallback that can be used for testing a GFParser.

See Also:
GFParserCallback, GFParser

Constructor Summary
SimpleGFParserCallback()
           
 
Method Summary
 void badGF(java.lang.String msg)
          respond to an error from which the parser cannot recover
 void error(java.lang.String msg)
           
 void handleBOCCommand(BOCCommand c)
          respond to a boc command
 void handleCharLocCommand(CharLocCommand c)
          respond to a charloc command
 void handleEOCCommand(EOCCommand c)
          respond to an eoc command
 void handleNewRowCommand(NewRowCommand c)
          respond to a newrow command
 void handleNoOpCommand(NoOpCommand c)
          respond to a noop command
 void handlePaintCommand(PaintCommand c)
          respond to a paint command
 void handlePostCommand(PostCommand c)
          respond to a post command
 void handlePostPostCommand(PostPostCommand c)
          respond to a postpost command
 void handlePreCommand(PreCommand c)
          respond to a pre command
 void handleSkipCommand(SkipCommand c)
          respond to a skip command
 void handleUndefinedCommand(UndefinedCommand c)
          respond to an undefined command
 void handleXXXCommand(XXXCommand c)
          respond to an xxx command
 void handleYYYCommand(YYYCommand c)
          respond to a yyy command
 
Methods inherited from class com.slurm.gf.GFParserCallback
error, handleCommand, startSpecialCommands
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleGFParserCallback

public SimpleGFParserCallback()
Method Detail

badGF

public void badGF(java.lang.String msg)
           throws GFFileFormatException
Description copied from class: GFParserCallback
respond to an error from which the parser cannot recover
Overrides:
badGF in class GFParserCallback

error

public void error(java.lang.String msg)

handlePaintCommand

public void handlePaintCommand(PaintCommand c)
Description copied from class: GFParserCallback
respond to a paint command
Overrides:
handlePaintCommand in class GFParserCallback

handleBOCCommand

public void handleBOCCommand(BOCCommand c)
Description copied from class: GFParserCallback
respond to a boc command
Overrides:
handleBOCCommand in class GFParserCallback

handleEOCCommand

public void handleEOCCommand(EOCCommand c)
Description copied from class: GFParserCallback
respond to an eoc command
Overrides:
handleEOCCommand in class GFParserCallback

handleSkipCommand

public void handleSkipCommand(SkipCommand c)
Description copied from class: GFParserCallback
respond to a skip command
Overrides:
handleSkipCommand in class GFParserCallback

handleNewRowCommand

public void handleNewRowCommand(NewRowCommand c)
Description copied from class: GFParserCallback
respond to a newrow command
Overrides:
handleNewRowCommand in class GFParserCallback

handleXXXCommand

public void handleXXXCommand(XXXCommand c)
Description copied from class: GFParserCallback
respond to an xxx command
Overrides:
handleXXXCommand in class GFParserCallback

handleYYYCommand

public void handleYYYCommand(YYYCommand c)
Description copied from class: GFParserCallback
respond to a yyy command
Overrides:
handleYYYCommand in class GFParserCallback

handleNoOpCommand

public void handleNoOpCommand(NoOpCommand c)
Description copied from class: GFParserCallback
respond to a noop command
Overrides:
handleNoOpCommand in class GFParserCallback

handleCharLocCommand

public void handleCharLocCommand(CharLocCommand c)
Description copied from class: GFParserCallback
respond to a charloc command
Overrides:
handleCharLocCommand in class GFParserCallback

handlePreCommand

public void handlePreCommand(PreCommand c)
Description copied from class: GFParserCallback
respond to a pre command
Overrides:
handlePreCommand in class GFParserCallback

handlePostCommand

public void handlePostCommand(PostCommand c)
Description copied from class: GFParserCallback
respond to a post command
Overrides:
handlePostCommand in class GFParserCallback

handlePostPostCommand

public void handlePostPostCommand(PostPostCommand c)
Description copied from class: GFParserCallback
respond to a postpost command
Overrides:
handlePostPostCommand in class GFParserCallback

handleUndefinedCommand

public void handleUndefinedCommand(UndefinedCommand c)
Description copied from class: GFParserCallback
respond to an undefined command
Overrides:
handleUndefinedCommand in class GFParserCallback