Class OptionParserClassifier


  • public class OptionParserClassifier
    extends Object
    This class defines how to parse the arguments into Option
    • Constructor Detail

      • OptionParserClassifier

        public OptionParserClassifier​(String name,
                                      OptionType<?>... optionTypes)
        Initialize an OptionParserClassifier
        Parameters:
        name - the name of the classifier
        optionTypes - the types of the arguments
    • Method Detail

      • getName

        public String getName()
      • getOptionTypes

        public OptionType<?>[] getOptionTypes()
      • parse

        @Nullable
        public Option parse​(@NotNull
                            String[] args)
        Parse the arguments into Option
        Parameters:
        args - the arguments
        Returns:
        the parsed Option