Class OptParse.OptHandler<E>

java.lang.Object
org.jacop.jasat.utils.OptParse.OptHandler<E>
Enclosing class:
OptParse<E>

public abstract static class OptParse.OptHandler<E> extends Object
a class to handle one option
  • Field Details

    • shortOpt

      public char shortOpt
    • longOpt

      public String longOpt
    • help

      public String help
  • Constructor Details

    • OptHandler

      public OptHandler()
  • Method Details

    • handle

      public abstract E handle(OptParse<E> parser, E e, String arg)
      handler for the option
      Parameters:
      parser - the parser object that called this handler
      e - the object to modify according to the option
      arg - the (optional) argument to the option
      Returns:
      a value of the good type (not necessarily the given one)