joptsimple.BuiltinHelpFormatter.class Maven / Gradle / Ivy
???? 3x joptsimple/BuiltinHelpFormatter java/lang/Object joptsimple/HelpFormatter BuiltinHelpFormatter.java !joptsimple/BuiltinHelpFormatter$1
nonOptionRows Ljoptsimple/internal/Rows;
optionRows ()V (II)V
this !Ljoptsimple/BuiltinHelpFormatter;
joptsimple/internal/Rows
desiredOverallWidth I desiredColumnSeparatorWidth format #(Ljava/util/Map;)Ljava/lang/String; reset "
# $(Ljoptsimple/BuiltinHelpFormatter;)V
%
& java/util/TreeSet ( (Ljava/util/Comparator;)V
*
) +
java/util/Map - values ()Ljava/util/Collection; / 0 . 1
java/util/Set 3 addAll (Ljava/util/Collection;)Z 5 6 4 7 addRows (Ljava/util/Collection;)V 9 :
; formattedHelpOutput ()Ljava/lang/String; = >
? options ALjava/util/Map; Ljava/util/Map;
comparator 5Ljava/util/Comparator; Ljava/util/Comparator; sorted .Ljava/util/Set; Ljava/util/Set; addOptionRow (Ljava/lang/String;)V L '(Ljava/lang/String;Ljava/lang/String;)V J N
O single Ljava/lang/String; add S N
T left right addNonOptionRow fitRowsToWidth
fitToWidth Z
[ nonOptionOutput render ^ >
_ optionOutput java/lang/StringBuilder b
c ] >
e joptsimple/internal/Strings g
isNullOrEmpty (Ljava/lang/String;)Z i j
h k append -(Ljava/lang/String;)Ljava/lang/StringBuilder; m n
c o LINE_SEPARATOR q R h r java/lang/String t a >
v toString x >
c y formatted Ljava/lang/StringBuilder; nonOptionDisplay addNonOptionsDescription ~ :
java/util/Collection ? isEmpty ()Z ? ? ? ? no.options.specified ? message 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; ? ?
? J K
?
addHeaders ? :
?
addOptions ? :
? Y
? 6Ljava/util/Collection<+Ljoptsimple/OptionDescriptor;>; Ljava/util/Collection; findAndRemoveNonOptionsSpec 5(Ljava/util/Collection;)Ljoptsimple/OptionDescriptor; ? ?
? "shouldShowNonOptionArgumentDisplay (Ljoptsimple/OptionDescriptor;)Z ? ?
? non.option.arguments.header ? X K
? createNonOptionArgumentsDisplay 1(Ljoptsimple/OptionDescriptor;)Ljava/lang/String; ? ?
? joptsimple/OptionDescriptor ?
nonOptions Ljoptsimple/OptionDescriptor; description ? > ? ? argumentTypeIndicator ? > ? ? argumentDescription ? > ? ? nonOptionDescriptor maybeAppendOptionInfo 9(Ljava/lang/StringBuilder;Ljoptsimple/OptionDescriptor;)V ? ?
? maybeAppendNonOptionsDescription ? ?
? buffer length ()I ? ?
c ? -- ? iterator ()Ljava/util/Iterator; ? ? ? ? java/util/Iterator ? hasNext ? ? ? ? next ()Ljava/lang/Object; ? ? ? ? representsNonOptions ? ? ? ? remove ? ? ? java/lang/AssertionError ? no non-options argument spec ? (Ljava/lang/Object;)V
?
? ? it 4Ljava/util/Iterator<+Ljoptsimple/OptionDescriptor;>; Ljava/util/Iterator; hasRequiredOption ? 6
? %option.header.with.required.indicator ? description.header ? &option.divider.with.required.indicator ? description.divider ?
option.header ? option.divider ?
isRequired ? ? ? ? each createOptionDisplay ? ?
? createDescriptionDisplay ? ?
? * ?
K
c ? ()Ljava/util/List; A ? ? java/util/List ? optionLeader &(Ljava/lang/String;)Ljava/lang/String;
, option i (Ljava/util/Iterator;
descriptor
u ? -- joptsimple/ParserRules HYPHEN R extractTypeIndicator ?
requiresArgument ? ? appendOptionHelp A(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;Z)V
indicator java/lang/Class" getName$ >
#% equals (Ljava/lang/Object;)Z'(
u) joptsimple/internal/Classes+ shortNameOf-
,. appendTypeIndicator B(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;CC)V01
2
typeIndicator required Z (C)Ljava/lang/StringBuilder; m7
c8 : : start C end
defaultValues? ? ?@ ? createDefaultValuesDisplay $(Ljava/util/List;)Ljava/lang/String;CD
E default.value.headerG surround ((Ljava/lang/String;CC)Ljava/lang/String;IJ
hK trimM >
uN Ljava/util/List<*>; Ljava/util/List; defaultValuesDisplay sizeS ?T get (I)Ljava/lang/Object;VWX
y java/util/Locale[
getDefault ()Ljava/util/Locale;]^
\_ joptsimple.HelpFormatterMessagesa joptsimple/internal/Messagesc n(Ljava/util/Locale;Ljava/lang/String;Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; ?e
df keySuffix args [Ljava/lang/Object; Code LocalVariableTable LineNumberTable LocalVariableTypeTable Signature U(Ljava/util/Map;)Ljava/lang/String;
StackMapTable 9(Ljava/util/Collection<+Ljoptsimple/OptionDescriptor;>;)V U(Ljava/util/Collection<+Ljoptsimple/OptionDescriptor;>;)Ljoptsimple/OptionDescriptor; 9(Ljava/util/Collection<+Ljoptsimple/OptionDescriptor;>;)Z '(Ljava/util/List<*>;)Ljava/lang/String;
SourceFile InnerClasses !
k 6 *P? ? l m
> ?
k k !*? *? Yh? ? *? Y? ? ? l ! ! ! m H I J K ! k ? 7*? ? $*? ? $? Y*? 'M? )Y,? ,N-+? 2 ? 8 W*-? <*? @? l * 7 7 A C D F G I n 7 A B D E G H m X Y [ b c - e 2 go p J K k @ *+M? P? l Q R m
p q J N k L
*? +,? U? l
V R
W R m
z { X K k C *? +M? U? l Q R m
?
? Y k A *? ? \*? ? \? l m ? ? ? ] > k 2 *? ? `? l m ? a > k 2 *? ? `? l m ? = > k ? .? cY? dL*? fM,? l? +,? p? s? pW+*? w? pW+? z? l . &