com.slurm.gf
Class Command

java.lang.Object
  |
  +--com.slurm.gf.Command
Direct Known Subclasses:
BOCCommand, CharLocCommand, EOCCommand, NewRowCommand, NoOpCommand, PaintCommand, PostCommand, PostPostCommand, PreCommand, SkipCommand, UndefinedCommand, XXXCommand, YYYCommand

public abstract class Command
extends java.lang.Object

Abstract class to encapsulate a command in the generic font "language"" Concrete subclasses allow access to the fields of the various commands. This class also defines the opcode constants specified in the language.


Constructor Summary
Command(int l, int o)
          Creates a Command object with the specified location and opcode.
 
Method Summary
 int getLocation()
           
 int getOpCode()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Command

public Command(int l,
               int o)
Creates a Command object with the specified location and opcode.
Parameters:
l - the byte location of this Command within the GF file.
o - the opcode of this Command.
Method Detail

getOpCode

public int getOpCode()
Returns:
the opcode of this Command.

getLocation

public int getLocation()
Returns:
the byte location of this Command within the GF file.