org.eclipse.ocl.examples.standalone
Class HelpCommand

java.lang.Object
  extended by org.eclipse.ocl.examples.standalone.StandaloneCommand
      extended by org.eclipse.ocl.examples.standalone.HelpCommand

public class HelpCommand
extends StandaloneCommand

The HelpCommand provides interactive help.


Nested Class Summary
protected static class HelpCommand.CommandComparator
           
protected static class HelpCommand.TokenComparator
           
 
Nested classes/interfaces inherited from class org.eclipse.ocl.examples.standalone.StandaloneCommand
StandaloneCommand.CommandToken, StandaloneCommand.StringToken
 
Field Summary
 
Fields inherited from class org.eclipse.ocl.examples.standalone.StandaloneCommand
help, name, standaloneApplication, tokens
 
Constructor Summary
HelpCommand(StandaloneApplication standaloneApplication)
           
 
Method Summary
 StandaloneResponse execute(java.util.Map<StandaloneCommand.CommandToken,java.util.List<java.lang.String>> token2strings)
           
 java.util.Map<StandaloneCommand.CommandToken,java.util.List<java.lang.String>> parse(java.lang.String[] arguments)
           
 
Methods inherited from class org.eclipse.ocl.examples.standalone.StandaloneCommand
addToken, check, getHelp, getName, getTokens, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HelpCommand

public HelpCommand(@NonNull
                   StandaloneApplication standaloneApplication)
Method Detail

execute

@NonNull
public StandaloneResponse execute(@NonNull
                                          java.util.Map<StandaloneCommand.CommandToken,java.util.List<java.lang.String>> token2strings)
Specified by:
execute in class StandaloneCommand

parse

@Nullable
public java.util.Map<StandaloneCommand.CommandToken,java.util.List<java.lang.String>> parse(@NonNull
                                                                                                     java.lang.String[] arguments)
Overrides:
parse in class StandaloneCommand