public abstract class AbstractCommand extends Object implements ShellCommand
| Modifier and Type | Field and Description |
|---|---|
protected int |
exitCode |
STILL_ACTIVE, SUBSYSTEM_CALLBACK, SUBSYSTEM_FILESYSTEM, SUBSYSTEM_HELP, SUBSYSTEM_JVM, SUBSYSTEM_POLICY, SUBSYSTEM_SHELL, SUBSYSTEM_SSHD, SUBSYSTEM_SYSTEM, SUBSYSTEM_TEXT_EDITING| Constructor and Description |
|---|
AbstractCommand(String name,
String subsystem) |
AbstractCommand(String name,
String subsystem,
String signature) |
AbstractCommand(String name,
String subsystem,
String signature,
org.apache.commons.cli.Option... options) |
| Modifier and Type | Method and Description |
|---|---|
int |
complete(String buffer,
int cursor,
List candidates) |
List<String> |
getCollection(int i) |
String |
getCommandName() |
String |
getDescription() |
int |
getExitCode() |
String |
getName() |
org.apache.commons.cli.Options |
getOptions() |
String |
getSignature() |
String |
getSubsystem() |
boolean |
isBuiltIn() |
protected void |
setBuiltIn(boolean builtIn) |
protected void |
setDescription(String description) |
protected void |
setName(String name) |
protected void |
setSignature(String signature) |
protected void |
setSubsystem(String subsystem) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrunpublic String getName()
public org.apache.commons.cli.Options getOptions()
getOptions in interface ShellCommandpublic String getDescription()
getDescription in interface ShellCommandpublic String getSubsystem()
getSubsystem in interface ShellCommandpublic String getCommandName()
getCommandName in interface ShellCommandpublic String getSignature()
getSignature in interface ShellCommandpublic boolean isBuiltIn()
isBuiltIn in interface ShellCommandprotected void setBuiltIn(boolean builtIn)
protected void setName(String name)
protected void setSubsystem(String subsystem)
protected void setSignature(String signature)
protected void setDescription(String description)
public int getExitCode()
getExitCode in interface ShellCommandCopyright © 2012. All Rights Reserved.