joptsimple.OptionParser.class Maven / Gradle / Ivy
???? 3 joptsimple/OptionParser java/lang/Object joptsimple/OptionDeclarer OptionParser.java java/util/Map$Entry
java/util/Map
Entry recognizedOptions #Ljoptsimple/internal/OptionNameMap; GLjoptsimple/internal/OptionNameMap;>;
trainingOrder Ljava/util/ArrayList; 9Ljava/util/ArrayList;>;
requiredIf Ljava/util/Map; `Ljava/util/Map;Ljava/util/Set;>;>; requiredUnless availableIf availableUnless state Ljoptsimple/OptionParserState; posixlyCorrect Z allowsUnrecognizedOptions
helpFormatter Ljoptsimple/HelpFormatter; ()V (Z)V "
# this Ljoptsimple/OptionParser; !
' joptsimple/BuiltinHelpFormatter )
* ' , java/util/ArrayList .
/ ' 1 java/util/HashMap 3
4 ' 6 8 : < joptsimple/OptionParserState > moreOptions !(Z)Ljoptsimple/OptionParserState; @ A
? B D #joptsimple/internal/AbbreviationMap F
G ' 'joptsimple/internal/SimpleOptionNameMap I
J ' !joptsimple/internal/OptionNameMap L
N joptsimple/NonOptionArgumentSpec P
Q ' recognize "(Ljoptsimple/AbstractOptionSpec;)V S T
U allowAbbreviations (Ljava/lang/String;)V
' joptsimple/OptionSpecTokenizer Z X
[ \ configure (Ljoptsimple/OptionParser;)V ^ _
[ ` optionSpecification Ljava/lang/String; accepts 2(Ljava/lang/String;)Ljoptsimple/OptionSpecBuilder; java/util/Collections f
singletonList $(Ljava/lang/Object;)Ljava/util/List; h i
g j
acceptsAll 0(Ljava/util/List;)Ljoptsimple/OptionSpecBuilder; l m
n option D(Ljava/lang/String;Ljava/lang/String;)Ljoptsimple/OptionSpecBuilder; B(Ljava/util/List;Ljava/lang/String;)Ljoptsimple/OptionSpecBuilder; l r
s description v options $Ljava/util/List; Ljava/util/List; java/util/List { isEmpty ()Z } ~ | "java/lang/IllegalArgumentException ? need at least one option ?
? \ joptsimple/ParserRules ? ensureLegalOptions (Ljava/util/List;)V ? ?
? ? joptsimple/OptionSpecBuilder ? >(Ljoptsimple/OptionParser;Ljava/util/List;Ljava/lang/String;)V ?
? ?
nonOptions $()Ljoptsimple/NonOptionArgumentSpec; spec 6Ljoptsimple/NonOptionArgumentSpec; "Ljoptsimple/NonOptionArgumentSpec; 6(Ljava/lang/String;)Ljoptsimple/NonOptionArgumentSpec;
Q \ ? setting ? doesAllowsUnrecognizedOptions recognizeAlternativeLongOptions $joptsimple/AlternativeLongOptionSpec ?
? ' W ? java/lang/String ? valueOf &(Ljava/lang/Object;)Ljava/lang/String; ? ?
? ? remove ? X M ? joptsimple/AbstractOptionSpec ? ()Ljava/util/List; x ?
? ? putAll )(Ljava/lang/Iterable;Ljava/lang/Object;)V ? ? M ? add (Ljava/lang/Object;)Z ? ?
/ ? "Ljoptsimple/AbstractOptionSpec<*>; Ljoptsimple/AbstractOptionSpec; printHelpOn (Ljava/io/OutputStream;)V java/io/IOException ? java/io/OutputStreamWriter ? ?
? ? (Ljava/io/Writer;)V ? ?
? sink Ljava/io/OutputStream; _recognizedOptions ()Ljava/util/Map; ? ?
? joptsimple/HelpFormatter ? format #(Ljava/util/Map;)Ljava/lang/String; ? ? ? ? java/io/Writer ? write ? X
? ? flush ? !
? ? Ljava/io/Writer; formatHelpWith (Ljoptsimple/HelpFormatter;)V java/lang/NullPointerException ?
? ' formatter java/util/LinkedHashMap ? (Ljava/util/Map;)V ?
? ?
? ' iterator ()Ljava/util/Iterator; ? ?
/ ? java/util/Iterator ? hasNext ? ~ ? ? next ()Ljava/lang/Object; ? ? ? ? | ? put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ? ? ELjava/util/Map;>; parse +([Ljava/lang/String;)Ljoptsimple/OptionSet; joptsimple/ArgumentList ? ([Ljava/lang/String;)V ?
? joptsimple/OptionSet
toJavaUtilMap ? M
? [arguments] get &(Ljava/lang/String;)Ljava/lang/Object;
M ? T
hasMore ~
? handleArgument K(Ljoptsimple/OptionParser;Ljoptsimple/ArgumentList;Ljoptsimple/OptionSet;)V
? reset !
ensureRequiredOptions (Ljoptsimple/OptionSet;)V
ensureAllowedOptions
arguments [Ljava/lang/String; argumentList Ljoptsimple/ArgumentList; detected Ljoptsimple/OptionSet; mutuallyExclusive "([Ljoptsimple/OptionSpecBuilder;)V joptsimple/OptionSpec) O(Ljoptsimple/OptionSpec;[Ljoptsimple/OptionSpec;)Ljoptsimple/OptionSpecBuilder; +
?, j I i specs [Ljoptsimple/OptionSpecBuilder; missingRequiredOptions ((Ljoptsimple/OptionSet;)Ljava/util/List;34
5 isHelpOptionPresent (Ljoptsimple/OptionSet;)Z78
9 *joptsimple/MissingRequiredOptionsException; ?
<= 4Ljava/util/List;>; helpOptionPresent unavailableOptionsA4
B %joptsimple/UnavailableOptionExceptionD
E= forbiddenOptions values ()Ljava/util/Collection;HI J java/util/CollectionLM ?
isRequiredO ~
?P has (Ljoptsimple/OptionSpec;)ZRS
T | ? entrySet ()Ljava/util/Set;WX Y
java/util/Set[\ ? getKey^ ? _ specFor 3(Ljava/lang/String;)Ljoptsimple/AbstractOptionSpec;ab
c getValuee ? f optionsHasAnyOf /(Ljoptsimple/OptionSet;Ljava/util/Collection;)Zhi
j each required fLjava/util/Map$Entry;Ljava/util/Set;>;>; Ljava/util/Map$Entry; forbidden eachEntry Ljoptsimple/OptionSpec<*>; Ljoptsimple/OptionSpec; 2Ljava/util/Collection;>; Ljava/util/Collection; isForHelpv ~
?w handleLongOptionToken D(Ljava/lang/String;Ljoptsimple/ArgumentList;Ljoptsimple/OptionSet;)V parseLongOptionWithArgument 2(Ljava/lang/String;)Ljoptsimple/util/KeyValuePair;{|
} joptsimple/util/KeyValuePair key? c ?? isRecognized (Ljava/lang/String;)Z??
? joptsimple/OptionException? unrecognizedOption 0(Ljava/lang/String;)Ljoptsimple/OptionException;??
?? value? c ?? handleOption ](Ljoptsimple/OptionParser;Ljoptsimple/ArgumentList;Ljoptsimple/OptionSet;Ljava/lang/String;)V??
?? candidate optionAndArgument Ljoptsimple/util/KeyValuePair;
optionSpec handleShortOptionToken parseShortOptionWithArgument?|
? handleShortOptionCluster?z
? extractShortOptionsFrom (Ljava/lang/String;)[C??
? validateOptionCharacters ([C)V??
? [C? "(C)Ljoptsimple/AbstractOptionSpec;a?
? acceptsArguments? ~
?? ([CII)Ljava/lang/String; ??
?? detectedArgument handleNonOptionArgument detectedOptions
noMoreOptions ()Ljoptsimple/OptionParserState;??
?? looksLikeAnOption isShortOptionToken??
?? isLongOptionToken??
?? argument contains?? M? %(Ljava/util/List;Ljava/lang/String;)V *(Ljava/util/List;Ljoptsimple/OptionSpec;)V ?
? precedentSynonyms putDependentOption 9(Ljava/util/List;Ljoptsimple/OptionSpec;Ljava/util/Map;)V??
? ?
? ?
? available ?
? &joptsimple/UnconfiguredOptionException?
?= &(Ljava/lang/Object;)Ljava/lang/Object;
? ? java/util/HashSet?
? '\ ? target
associated +Ljava/util/Set;>; Ljava/util/Set; (C)Ljava/lang/String; ??
?? C length ()I??
?? getChars (II[CI)V??
?? substring (I)Ljava/lang/String;??
?? ?|
?? Signature Code LocalVariableTable LineNumberTable
StackMapTable LocalVariableTypeTable D(Ljava/util/List;)Ljoptsimple/OptionSpecBuilder; V(Ljava/util/List;Ljava/lang/String;)Ljoptsimple/OptionSpecBuilder; 8()Ljoptsimple/NonOptionArgumentSpec; J(Ljava/lang/String;)Ljoptsimple/NonOptionArgumentSpec; %(Ljoptsimple/AbstractOptionSpec<*>;)V
Exceptions ?()Ljava/util/Map;>; G()Ljava/util/Map;>; L(Ljoptsimple/OptionSet;)Ljava/util/List;>; K(Ljoptsimple/OptionSet;Ljava/util/Collection;>;)Z 9(Ljava/util/List;Ljava/lang/String;)V A(Ljava/util/List;Ljoptsimple/OptionSpec<*>;)V ?(Ljava/util/List;Ljoptsimple/OptionSpec<*>;Ljava/util/Map;Ljava/util/Set;>;>;)V %(C)Ljoptsimple/AbstractOptionSpec<*>; 6(Ljava/lang/String;)Ljoptsimple/AbstractOptionSpec<*>;
SourceFile InnerClasses !
? ? ? ? ? ? 3 ! ? 4 *? $? ? % &