org.pz.platypus.commandTypes
Class CommandV

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

public class CommandV
extends Command

Command with a single Value parameter

Author:
alb

Field Summary
 
Fields inherited from class org.pz.platypus.Command
parameterType, root, rootSubstitute, validInCode
 
Constructor Summary
CommandV(java.lang.String commandRoot, char allowInCode)
           
 
Method Summary
 int process(GDD gdd, ParseContext context, TokenList tl, boolean inCode)
          Processes the command, emits the corresponding token, 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

CommandV

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

process

public int process(GDD gdd,
                   ParseContext context,
                   TokenList tl,
                   boolean inCode)
Processes the command, emits the corresponding token, 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