|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcli.AbstractCmdLine
public abstract class AbstractCmdLine
The abstract class helps to define java command line.
Field Summary | |
---|---|
List<String> |
arguments
receives other command line parameters than options |
static String |
CMD
|
protected boolean |
hasExtraArgument
|
static Logger |
LOGGER
|
static int |
NONE
|
protected org.kohsuke.args4j.CmdLineParser |
parser
|
Constructor Summary | |
---|---|
AbstractCmdLine(boolean hasExtraArguments)
the mode of this Command Line |
Method Summary | |
---|---|
protected abstract void |
checkData()
check the validity of the command line |
void |
doMain(String[] args)
parse the command line |
protected abstract void |
execute()
|
void |
exitOnException(Exception e)
|
void |
help()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CMD
public static final Logger LOGGER
public static final int NONE
public List<String> arguments
protected final boolean hasExtraArgument
protected final org.kohsuke.args4j.CmdLineParser parser
Constructor Detail |
---|
public AbstractCmdLine(boolean hasExtraArguments)
hasExtraArguments
- Method Detail |
---|
protected abstract void checkData() throws org.kohsuke.args4j.CmdLineException
org.kohsuke.args4j.CmdLineException
protected abstract void execute()
public void help()
public final void exitOnException(Exception e)
public void doMain(String[] args)
args
- CL arguments
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |