Package org.kohsuke.args4j
Class OptionDef
- java.lang.Object
-
- org.kohsuke.args4j.OptionDef
-
- Direct Known Subclasses:
NamedOptionDef
public class OptionDef extends java.lang.Object
Run-time copy of the Option or Argument annotation. By definition, unnamed options are arguments (and instances of this class). Named options are actually a subclass.- Author:
- Mark Sinke
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
OptionDef(java.lang.String usage, java.lang.String metaVar, boolean required, boolean help, boolean hidden, java.lang.Class<? extends OptionHandler> handler, boolean multiValued)
OptionDef(Argument a, boolean forceMultiValued)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<? extends OptionHandler>
handler()
boolean
help()
boolean
hidden()
Value fromOption.hidden()
orArgument.hidden()
boolean
isArgument()
boolean
isMultiValued()
java.lang.String
metaVar()
boolean
required()
java.lang.String
toString()
java.lang.String
usage()
-
-
-
Constructor Detail
-
OptionDef
public OptionDef(Argument a, boolean forceMultiValued)
-
OptionDef
protected OptionDef(java.lang.String usage, java.lang.String metaVar, boolean required, boolean help, boolean hidden, java.lang.Class<? extends OptionHandler> handler, boolean multiValued)
-
-
Method Detail
-
usage
public java.lang.String usage()
-
metaVar
public java.lang.String metaVar()
-
required
public boolean required()
-
help
public boolean help()
-
hidden
public boolean hidden()
Value fromOption.hidden()
orArgument.hidden()
-
handler
public java.lang.Class<? extends OptionHandler> handler()
-
isMultiValued
public boolean isMultiValued()
-
isArgument
public boolean isArgument()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-