|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kohsuke.args4j.spi.OptionHandler<T>
org.kohsuke.args4j.spi.EnumOptionHandler<T>
public class EnumOptionHandler<T extends java.lang.Enum<T>>
Enum
OptionHandler
.
Field Summary |
---|
Fields inherited from class org.kohsuke.args4j.spi.OptionHandler |
---|
option, owner, setter |
Constructor Summary | |
---|---|
EnumOptionHandler(CmdLineParser parser,
OptionDef option,
Setter<? super T> setter,
java.lang.Class<T> enumType)
|
Method Summary | |
---|---|
java.lang.String |
getDefaultMetaVariable()
Gets the default meta variable name used to print the usage screen. |
int |
parseArguments(Parameters params)
Called if the option that this owner recognizes is found. |
Methods inherited from class org.kohsuke.args4j.spi.OptionHandler |
---|
getMetaVariable, getNameAndMeta |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EnumOptionHandler(CmdLineParser parser, OptionDef option, Setter<? super T> setter, java.lang.Class<T> enumType)
Method Detail |
---|
public int parseArguments(Parameters params) throws CmdLineException
OptionHandler
parseArguments
in class OptionHandler<T extends java.lang.Enum<T>>
params
- The rest of the arguments. This method can use this
object to access the arguments of the option if necessary.
The object is valid only during the method call.
CmdLineException
public java.lang.String getDefaultMetaVariable()
OptionHandler
getDefaultMetaVariable
in class OptionHandler<T extends java.lang.Enum<T>>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |