protected void introspect(){
  Class<?> clazz=command.getClass();
  while (clazz != null) {
    for (    Field field : clazz.getDeclaredFields()) {
      Option option=field.getAnnotation(Option.class);
      if (option != null) {
        options.add(new FieldOptionInvoker(command,field,option));
      }
      Argument argument=field.getAnnotation(Argument.class);
      if (argument != null) {
        arguments.add(new FieldArgumentInvoker(command,field,argument));
      }
    }
    clazz=clazz.getSuperclass();
  }
}

protected void introspect ( ) { Class < ? > clazz = command . getClass ( ) ; while ( clazz != null ) { for ( Field field : clazz . getDeclaredFields ( ) ) { Option option = field . getAnnotation ( Option . class ) ; if ( option != null ) { options . add ( new FieldOptionInvoker ( command , field , option ) ) ; } Argument argument = field . getAnnotation ( Argument . class ) ; if ( argument != null ) { arguments . add ( new FieldArgumentInvoker ( command , field , argument ) ) ; } } clazz = clazz . getSuperclass ( ) ; } }
search all options and arguments of the given command
