|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.naturalcli.Command
public class Command
Represents a command definition
| Constructor Summary | |
|---|---|
Command(java.lang.String syntax,
java.lang.String help,
ICommandExecutor ce)
Constructs a new command. |
|
| Method Summary | |
|---|---|
ICommandExecutor |
getExecutor()
Get the executor for the command. |
java.lang.String |
getHelp()
Returns the help for the commend. |
Syntax |
getSyntax()
Returns a string with the syntax for the command. |
boolean |
isHidden()
Determine if this is a hidden command. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Command(java.lang.String syntax,
java.lang.String help,
ICommandExecutor ce)
throws InvalidSyntaxException
syntax - the syntax for the command.helpthe - help help of the command.ce - command executor.
InvalidSyntaxDefinionException.
InvalidSyntaxException| Method Detail |
|---|
public boolean isHidden()
true if it's a hidden command, false if not.public Syntax getSyntax()
public java.lang.String getHelp()
public ICommandExecutor getExecutor()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||