Package top.focess.util.option
Class OptionParserClassifier
- java.lang.Object
-
- top.focess.util.option.OptionParserClassifier
-
public class OptionParserClassifier extends Object
This class defines how to parse the arguments into Option
-
-
Constructor Summary
Constructors Constructor Description OptionParserClassifier(String name, OptionType<?>... optionTypes)Initialize an OptionParserClassifier
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()OptionType<?>[]getOptionTypes()Optionparse(String[] args)Parse the arguments into Option
-
-
-
Constructor Detail
-
OptionParserClassifier
public OptionParserClassifier(String name, OptionType<?>... optionTypes)
Initialize an OptionParserClassifier- Parameters:
name- the name of the classifieroptionTypes- the types of the arguments
-
-
Method Detail
-
getName
public String getName()
-
getOptionTypes
public OptionType<?>[] getOptionTypes()
-
-