org.pz.platypus.commandTypes
Class Command0

java.lang.Object
  extended by org.pz.platypus.Command
      extended by org.pz.platypus.commandTypes.Command0
All Implemented Interfaces:
ICommand

public class Command0
extends Command

Command with no parameters

Author:
alb

Field Summary
 
Fields inherited from class org.pz.platypus.Command
parameterType, root, rootSubstitute, validInCode
 
Constructor Summary
Command0(java.lang.String commandRoot, char allowInCode)
           
 
Method Summary
 int process(GDD gdd, ParseContext context, TokenList tl, boolean inCode)
          Processes the command and returns the number of chars in the lexeme.
 
Methods inherited from class org.pz.platypus.Command
getParamType, getRoot, getRootSubstitute, isAllowedInCode, notExecutedInCodeSection, process
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Command0

public Command0(java.lang.String commandRoot,
                char allowInCode)
Method Detail

process

public int process(GDD gdd,
                   ParseContext context,
                   TokenList tl,
                   boolean inCode)
Processes the command and returns the number of chars in the lexeme.

Parameters:
gdd - GDD
tl - TokenList to which the generated tokens are added
inCode - Are we currently in a code section?
context - the parsing context
Returns:
number of chars to skip to get past the command string in the input. If negative, means an error occurred.


Copyright © 2008-10 Pacific Data Works LLC