org.lsst.ccs.shell
Class DashJoinedNamer

java.lang.Object
  extended by org.lsst.ccs.shell.DashJoinedNamer
All Implemented Interfaces:
CommandNamer

public class DashJoinedNamer
extends Object
implements CommandNamer

Default "dash-joined" implementation of the CommandNamer.

Author:
ASG

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.lsst.ccs.shell.CommandNamer
CommandNamer.NamingInfo
 
Constructor Summary
DashJoinedNamer(boolean doRemoveCommonPrefix)
           
 
Method Summary
 CommandNamer.NamingInfo nameCommand(Method method)
          Generate command name and suggested abbreviation variants.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DashJoinedNamer

public DashJoinedNamer(boolean doRemoveCommonPrefix)
Method Detail

nameCommand

public CommandNamer.NamingInfo nameCommand(Method method)
Description copied from interface: CommandNamer
Generate command name and suggested abbreviation variants. Since this method is given a Method, not a string, the algorithm can take parameter types into account.

Specified by:
nameCommand in interface CommandNamer
Parameters:
method - Command method
Returns:
asg.cliche.CommandNamer.NamingInfo containing generated name and abbrev array.


Copyright © 2013 LSST. All Rights Reserved.