Class OptionSpec
- java.lang.Object
-
- org.locationtech.jts.jump.util.commandline.OptionSpec
-
public class OptionSpec extends Object
Specifes the syntax for a single option on a command line. ToDo:
- add syntax pattern parsing Syntax patterns are similar to Java type signatures F - float I - int L - long S - string B - boolean + - one or more eg: "FIS+" takes a double, int, and one or more Strings
-
-
Field Summary
Fields Modifier and Type Field Description static int
NARGS_ONE_OR_MORE
static int
NARGS_ZERO_OR_MORE
static int
NARGS_ZERO_OR_ONE
static String
OPTION_FREE_ARGS
-
Constructor Summary
Constructors Constructor Description OptionSpec(String optName)
OptionSpec(String optName, int nAllowed)
OptionSpec(String optName, String _syntaxPattern)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getArgDesc()
String
getDocDesc()
int
getNumOptions()
Option
getOption(int i)
Iterator
getOptions()
boolean
hasOption()
void
setDoc(String _argDoc, String docLine)
-
-
-
Field Detail
-
NARGS_ZERO_OR_MORE
public static final int NARGS_ZERO_OR_MORE
- See Also:
- Constant Field Values
-
NARGS_ONE_OR_MORE
public static final int NARGS_ONE_OR_MORE
- See Also:
- Constant Field Values
-
NARGS_ZERO_OR_ONE
public static final int NARGS_ZERO_OR_ONE
- See Also:
- Constant Field Values
-
OPTION_FREE_ARGS
public static final String OPTION_FREE_ARGS
- See Also:
- Constant Field Values
-
-