AbstractOptionSpec<?> next() { if ( !hasMore() ) throw new NoSuchElementException(); String optionCandidate = String.valueOf( specification.charAt( index ) ); index++; AbstractOptionSpec<?> spec; if ( RESERVED_FOR_EXTENSIONS.equals( optionCandidate ) ) { spec = handleReservedForExtensionsToken(); if ( spec != null ) return spec; } ensureLegalOption( optionCandidate ); if ( hasMore() ) { boolean forHelp = false; if ( specification.charAt( index ) == HELP_MARKER ) { forHelp = true; ++index; } spec = hasMore() && specification.charAt( index ) == ':' ? handleArgumentAcceptingOption( optionCandidate ) : new NoArgumentOptionSpec( optionCandidate ); if ( forHelp ) spec.forHelp(); } else spec = new NoArgumentOptionSpec( optionCandidate ); return spec; }
AbstractOptionSpec<?> next() { if ( !hasMore() ) throw new NoSuchElementException(); String optionCandidate = String.valueOf( specification.charAt( index ) ); index++; AbstractOptionSpec<?> spec; if ( RESERVED_FOR_EXTENSIONS.equals( optionCandidate ) ) { spec = handleReservedForExtensionsToken(); if ( spec != null ) return spec; } ensureLegalOption( optionCandidate ); if ( hasMore() ) { boolean forHelp = false; if ( specification.charAt( index ) == HELP_MARKER ) { forHelp = true; ++index; } spec = hasMore() && specification.charAt( index ) == ':' ? handleArgumentAcceptingOption( optionCandidate ) : new NoArgumentOptionSpec( optionCandidate ); if ( forHelp ) spec.forHelp(); } else spec = new NoArgumentOptionSpec( optionCandidate ); return spec; }
AbstractOptionSpec<?> next() { if ( !hasMore() ) throw new NoSuchElementException(); String optionCandidate = String.valueOf( specification.charAt( index ) ); index++; AbstractOptionSpec<?> spec; if ( RESERVED_FOR_EXTENSIONS.equals( optionCandidate ) ) { spec = handleReservedForExtensionsToken(); if ( spec != null ) return spec; } ensureLegalOption( optionCandidate ); if ( hasMore() ) { boolean forHelp = false; if ( specification.charAt( index ) == HELP_MARKER ) { forHelp = true; ++index; } spec = hasMore() && specification.charAt( index ) == ':' ? handleArgumentAcceptingOption( optionCandidate ) : new NoArgumentOptionSpec( optionCandidate ); if ( forHelp ) spec.forHelp(); } else spec = new NoArgumentOptionSpec( optionCandidate ); return spec; }
AbstractOptionSpec<?> next() { if ( !hasMore() ) throw new NoSuchElementException(); String optionCandidate = String.valueOf( specification.charAt( index ) ); index++; AbstractOptionSpec<?> spec; if ( RESERVED_FOR_EXTENSIONS.equals( optionCandidate ) ) { spec = handleReservedForExtensionsToken(); if ( spec != null ) return spec; } ensureLegalOption( optionCandidate ); if ( hasMore() ) { boolean forHelp = false; if ( specification.charAt( index ) == HELP_MARKER ) { forHelp = true; ++index; } spec = hasMore() && specification.charAt( index ) == ':' ? handleArgumentAcceptingOption( optionCandidate ) : new NoArgumentOptionSpec( optionCandidate ); if ( forHelp ) spec.forHelp(); } else spec = new NoArgumentOptionSpec( optionCandidate ); return spec; }
AbstractOptionSpec<?> next() { if ( !hasMore() ) throw new NoSuchElementException(); String optionCandidate = String.valueOf( specification.charAt( index ) ); index++; AbstractOptionSpec<?> spec; if ( RESERVED_FOR_EXTENSIONS.equals( optionCandidate ) ) { spec = handleReservedForExtensionsToken(); if ( spec != null ) return spec; } ensureLegalOption( optionCandidate ); if ( hasMore() ) { boolean forHelp = false; if ( specification.charAt( index ) == HELP_MARKER ) { forHelp = true; ++index; } spec = hasMore() && specification.charAt( index ) == ':' ? handleArgumentAcceptingOption( optionCandidate ) : new NoArgumentOptionSpec( optionCandidate ); if ( forHelp ) spec.forHelp(); } else spec = new NoArgumentOptionSpec( optionCandidate ); return spec; }