|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Command
This interface should be used to implement the inner representation of parsed commands.
Method Summary | |
---|---|
int |
execute()
This is the final execution method. |
java.lang.String |
getName()
This is the basic command name, such as "ls", "wget" or "git". |
BasicType |
getParamAt(int index)
Get the param at the given index. |
int |
getParamCount()
Get the number of params this command has. |
java.lang.StringBuffer |
toString(java.lang.StringBuffer b)
Convert this command into a parseable string. |
Method Detail |
---|
java.lang.String getName()
int getParamCount()
BasicType getParamAt(int index) throws java.lang.IndexOutOfBoundsException
index
- the param index.
java.lang.IndexOutOfBoundsException
java.lang.StringBuffer toString(java.lang.StringBuffer b)
b
- The stringbuffer to append this command to.int execute()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |