|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.gwt.util.tools.ArgHandler
public abstract class ArgHandler
Base class for command line argument handlers.
Constructor Summary | |
---|---|
ArgHandler()
|
Method Summary | |
---|---|
java.lang.String[] |
getDefaultArgs()
|
java.lang.String |
getHelpTag()
The tag to display in help messages. |
abstract java.lang.String |
getPurpose()
|
abstract java.lang.String |
getTag()
|
abstract java.lang.String[] |
getTagArgs()
A list of words representing the arguments in help text. |
java.lang.String[] |
getTags()
The set of tags matched by this argument handler. |
abstract int |
handle(java.lang.String[] args,
int tagIndex)
Attempts to process one flag or "extra" command-line argument (that appears without a flag). |
boolean |
isExperimental()
|
boolean |
isRequired()
|
boolean |
isUndocumented()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArgHandler()
Method Detail |
---|
public java.lang.String[] getDefaultArgs()
public abstract java.lang.String getPurpose()
public abstract java.lang.String getTag()
public java.lang.String[] getTags()
public java.lang.String getHelpTag()
public abstract java.lang.String[] getTagArgs()
public abstract int handle(java.lang.String[] args, int tagIndex)
args
- the arguments passed in to main()tagIndex
- an index into args indicating the first argument to use.
If this is a handler for a flag argument. Otherwise it's the index of the
"extra" argument.
public boolean isRequired()
public boolean isUndocumented()
public boolean isExperimental()
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |