Package com.google.gwt.util.tools
Class ArgHandlerInt
java.lang.Object
com.google.gwt.util.tools.ArgHandler
com.google.gwt.util.tools.ArgHandlerInt
Argument handler for flags that take an integer as their parameter.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Attempts to process one flag or "extra" command-line argument (that appears without a flag).boolean
abstract void
setInt
(int value) Methods inherited from class com.google.gwt.util.tools.ArgHandler
getDefaultArgs, getHelpTag, getPurpose, getTag, getTagArgs, getTags, isExperimental, isUndocumented
-
Constructor Details
-
ArgHandlerInt
public ArgHandlerInt()
-
-
Method Details
-
handle
Description copied from class:ArgHandler
Attempts to process one flag or "extra" command-line argument (that appears without a flag).- Specified by:
handle
in classArgHandler
- Parameters:
args
- the arguments passed in to main()startIndex
- 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.- Returns:
- the number of additional arguments consumed, not including the flag or extra argument. Alternately, returns -1 if the argument cannot be used. This will causes the program to abort and usage to be displayed.
-
isRequired
public boolean isRequired()- Overrides:
isRequired
in classArgHandler
-
setInt
public abstract void setInt(int value)
-