com.ds.fw.parse
Class FwCommand

java.lang.Object
  |
  +--com.ds.fw.parse.FwCommand

public class FwCommand
extends java.lang.Object

FwCommand provides the internal representation of the command and a parser for any command defined in the grammar.


Field Summary
 int code
          The command name
 java.lang.String errorMssg
          The command parameters
 java.lang.String name
          The command text representation
 java.util.Vector parms
          The command code
 java.lang.String textCommand
           
 
Method Summary
 int getIntArg(int i)
          Returns an INT(eger) argument.
 java.lang.String getStringArg(int i)
          Returns an STR(ing) argument.
static com.ds.fw.parse.FwCommand parseTextCommand(java.lang.String text)
          Parse a text command according the command definition from the Grammar class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

textCommand

public java.lang.String textCommand

name

public java.lang.String name
The command text representation


code

public int code
The command name


parms

public java.util.Vector parms
The command code


errorMssg

public java.lang.String errorMssg
The command parameters

Method Detail

parseTextCommand

public static com.ds.fw.parse.FwCommand parseTextCommand(java.lang.String text)
Parse a text command according the command definition from the Grammar class.


getIntArg

public int getIntArg(int i)
Returns an INT(eger) argument.


getStringArg

public java.lang.String getStringArg(int i)
Returns an STR(ing) argument.