org.lsst.ccs.shell
Class ShellCommand
java.lang.Object
org.lsst.ccs.shell.ShellCommand
- Direct Known Subclasses:
- LocalShellCommand
public abstract class ShellCommand
- extends Object
Command table entry
ShellCommand
public ShellCommand(String prefix,
String name)
isVarArgs
public boolean isVarArgs()
invoke
public abstract Object invoke(Object[] parameters)
throws CLIException
- Throws:
CLIException
canBeDenotedBy
public boolean canBeDenotedBy(String commandName)
getArity
public int getArity()
getDescription
public String getDescription()
getPrefix
public String getPrefix()
getName
public String getName()
getAbbreviation
public String getAbbreviation()
setAbbreviation
public void setAbbreviation(String abbreviation)
setDescription
public void setDescription(String description)
setHeader
public void setHeader(String header)
startsWith
public boolean startsWith(String prefix)
toString
public String toString()
- Overrides:
toString in class Object
getHeader
public String getHeader()
getParamSpecs
public ShellCommandParamSpec[] getParamSpecs()
getParameterTypes
public Class[] getParameterTypes()
setParamSpecs
public void setParamSpecs(ShellCommandParamSpec[] paramSpecs)
Copyright © 2013 LSST. All Rights Reserved.