de.tsl2.nano.core.util.MainUtil.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tsl2.nano.h5 Show documentation
Show all versions of tsl2.nano.h5 Show documentation
TSL2 Framework Html5 Extensions (WebServer, Html5Presentation, RuleCover, BeanConfigurator, LogicTable-Sheet, Expression-Descriptors for Actions, Rules, URLs, Queries)
???? =? de/tsl2/nano/core/util/CLI
java/lang/Object ()V
de/tsl2/nano/core/util/MainUtil checkArgs :([Ljava/lang/String;Ljava/lang/Class;[Ljava/lang/String;)V java/lang/String java/util/Locale US Ljava/util/Locale;
setDefault (Ljava/util/Locale;)V
initProperties ;(Ljava/lang/String;Ljava/lang/Class;)Ljava/util/Properties;
! " getArgNames %([Ljava/lang/String;)Ljava/util/List; $ =
& ' ( contains (Ljava/lang/CharSequence;)Z * -
, - . / 0 !de/tsl2/nano/core/util/StringUtil substring J(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
2 3 4
startsWith (Ljava/lang/String;)Z 6 7 8 9 : java/lang/Boolean TRUE Ljava/lang/Boolean; < "java/lang/IllegalArgumentException
, > ? @ toFormattedString '(Ljava/lang/Object;I)Ljava/lang/String; B C D makeConcatWithConstants &(Ljava/lang/String;)Ljava/lang/String;
; F G (Ljava/lang/String;)V I :
K L M trim ()Ljava/lang/String;
O P Q getValueFromTypeDef 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object; S T U ' V java/util/List (Ljava/lang/Object;)Z
X Y Z WARN Ljava/lang/String; \ ] ^ _ ` de/tsl2/nano/core/util/CLI$Color GREEN "Lde/tsl2/nano/core/util/CLI$Color;
b c d tag H(Ljava/lang/Object;Lde/tsl2/nano/core/util/CLI$Color;)Ljava/lang/String; f C g 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
i j k logn (Ljava/lang/Object;)V f
n o p q r java/util/Properties put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; t java/util/ArrayList
v w x y z java/util/Arrays asList %([Ljava/lang/Object;)Ljava/util/List;
s | } (Ljava/util/Collection;)V
? ? defineDefaults )(Ljava/util/Properties;Ljava/util/List;)V S ? ? ? size ()I B
? ? ? printInfo *(Ljava/lang/Class;Ljava/util/Properties;)V ? \?|[-]*h(elp)*
? ? 4 matches
? ? ? ? M java/lang/Class
getSimpleName f ? (no arguments given -- no help available! ? enableassertions ? true
? ? ? ? g java/lang/System setProperty
n B ? ? java/io/FileReader ? java/io/File
? F
? ? ? (Ljava/io/File;)V
n ? ? ? load (Ljava/io/Reader;)V ? ? ? ? out Ljava/io/PrintStream; B
? ? ? ? G java/io/PrintStream println ? java/io/IOException
s ? ? (I)V S ? ? V add S ? ? ? iterator ()Ljava/util/Iterator; ? ? ? ? ? java/util/Iterator hasNext ()Z ? ? ? ? next ()Ljava/lang/Object; ? ? ? remove
n ? ? ? get &(Ljava/lang/Object;)Ljava/lang/Object; ? [default: ? ]
, ? / ? L(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZ)Ljava/lang/String; ? { ? } ? @
? ? ? ? ? de/tsl2/nano/core/cls/BeanClass %(Ljava/lang/String;)Ljava/lang/Class;
? ? ? ? isInterface
? ? ? ? createInstance 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/Object;
? ? ? ? ? !de/tsl2/nano/core/util/FormatUtil parse 7(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Object;
? ? ? getClass ()Ljava/lang/Class;
? ? ? ? isAssignableFrom (Ljava/lang/Class;)Z of type
amsg \(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String;
assertw (ZLjava/lang/String;)V
,
split '(Ljava/lang/String;)[Ljava/lang/String; one of .. \.\. java/lang/Comparable compareTo (Ljava/lang/Object;)I >= <= f! UNKNOWN# tsl-logo.txt
%&'() de/tsl2/nano/core/util/FileUtil getFileBytes -(Ljava/lang/String;Ljava/lang/ClassLoader;)[B
+ , ([B)V
./ k log1 N
============================================================================= B4 java/util/TreeMap
36 7 (Ljava/util/Map;)V9 M============================================================================= ; C< &(Ljava/lang/Object;)Ljava/lang/String;
>/? J(Ljava/lang/Object;Ljava/lang/String;[Lde/tsl2/nano/core/util/CLI$Color;)V
AB M toString
D cE 6(Lde/tsl2/nano/core/util/CLI$Color;)Ljava/lang/String;G [0m
?IJ k print \LM `
LIGHT_BLUE
O CP \(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String;R INFO: \TU ` BLUE
WX Z INFOZ WARN: \\] ` YELLOW_ ERROR: \ab ` RED
de Z ERROR OPTION
ConstantValue ASSIGN Code LineNumberTable LocalVariableTable this !Lde/tsl2/nano/core/util/MainUtil; toProperties b(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/Class;Z[Ljava/lang/String;)Ljava/util/Properties; name value Ljava/lang/Object; i I prefix args [Ljava/lang/String; mainClass Ljava/lang/Class; useUSLocale Z mainArgNames p Ljava/util/Properties; n argNames Ljava/util/List;
mandatoryArgs LocalVariableTypeTable Ljava/lang/Class<*>; $Ljava/util/List;
StackMapTablew Signature e(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/Class<*>;Z[Ljava/lang/String;)Ljava/util/Properties; =([Ljava/lang/String;Ljava/lang/Class<*>;[Ljava/lang/String;)V propFile >(Ljava/lang/String;Ljava/lang/Class<*>;)Ljava/util/Properties; na 9([Ljava/lang/String;)Ljava/util/List; description
defaultString argValue it Ljava/util/Iterator; mainArgList (Ljava/util/Iterator; =(Ljava/util/Properties;Ljava/util/List;)V minmax type valueset cls mainArgName arg typeDef mainClsName -(Ljava/lang/Class<*>;Ljava/util/Properties;)V txt colors #[Lde/tsl2/nano/core/util/CLI$Color; parts
expression msg condition
SourceFile
MainUtil.java BootstrapMethods?
??? C? $java/lang/invoke/StringConcatFactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite;? *too many arguments. known arguments are:
? undescribed argument: ? ? %please fill the following arguments
? syntax:
? .? loaded? /: valueset description should use '..' or ','? inititialized with:?
? is but must be InnerClasses Color? %java/lang/invoke/MethodHandles$Lookup? java/lang/invoke/MethodHandles Lookup !
f Z g ) h Z g # X Z Y Z e Z i / *? ? j k lm ?no i ? 2+,? ? ? ? :? ? ? *,? :6? : 6
+?? ?+
2#? %? +
2)#? +:+
2#? +:? _+
2)? 1? +
2)? +:? 5:? ??? ? ;Y? =? A ? E?2H? +? J:2+
2? N:? ? R ? ? W? [? a? e ? h*? l ? mW?
??C? sY? u? {:
? ~
? ? ? ? ;Y
? =? ? ? E?,? ?? j v 8 : ; <