org.globus.cog.gridshell.getopt.app
Class ArgParserImpl

java.lang.Object
  extended byorg.globus.cog.gridshell.getopt.app.ArgParserImpl
All Implemented Interfaces:
ArgParser

public class ArgParserImpl
extends Object
implements ArgParser

An Implementation of ArgParser which parsers based on a Decission Tree


Constructor Summary
ArgParserImpl()
          Our constructor which accepts an instance of GetOpt
 
Method Summary
static void main(String[] args)
          Used for debug
 void parse(GetOpt getOpt, String commandLine)
          Parses a command line input into the getGetOpt()
static String processVariablesForScope(String value, Scope scope)
          Processes variables in scope for value using this ArgParserImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArgParserImpl

public ArgParserImpl()
Our constructor which accepts an instance of GetOpt

Method Detail

parse

public void parse(GetOpt getOpt,
                  String commandLine)
Description copied from interface: ArgParser
Parses a command line input into the getGetOpt()

Specified by:
parse in interface ArgParser
Parameters:
commandLine - - the value entered at the commandline to parse

processVariablesForScope

public static String processVariablesForScope(String value,
                                              Scope scope)
Processes variables in scope for value using this ArgParserImpl

Parameters:
value -
scope -
Returns:

main

public static void main(String[] args)
Used for debug

Parameters:
args -