de.uniks.networkparser.ext.ModelGenerator.class Maven / Gradle / Ivy
???? 4c
G ?
? ? i ? ?
? ? ?
? ?
? ?
?
? i ? i ? ?
? ?
?
i ? ?
? ?
? ?
? ?
? ?
? ?
? ?
! ? ?
# ? ?
% ? ? ?
e ?
? ? ?
i ?
i ?
i ?
i ? ? ?
e ? ?
3 ?
3 ?
3 ?
* ? ? ?
e ? ?
; ?
i ?
; ?
; ? ?
@ ?
@ ?
;
G ?
i
*
Y
G
G
;
;
T
T ?
Y
i
i
G
c ?!
c"
i#
c$% features .Lde/uniks/networkparser/graph/util/FeatureSet; defaultModel )Lde/uniks/networkparser/graph/GraphModel; customTemplate 0Lde/uniks/networkparser/list/SimpleKeyValueList; Signature wLde/uniks/networkparser/list/SimpleKeyValueList; javaGeneratorTemplates (Lde/uniks/networkparser/list/SimpleList; bLde/uniks/networkparser/list/SimpleList; ()V Code LineNumberTable LocalVariableTable this +Lde/uniks/networkparser/ext/ModelGenerator; getTemplates 2()Lde/uniks/networkparser/list/SimpleKeyValueList;
StackMapTable y()Lde/uniks/networkparser/list/SimpleKeyValueList; addParserCondition 6(Lde/uniks/networkparser/interfaces/ParserCondition;)V condition 3Lde/uniks/networkparser/interfaces/ParserCondition; key Ljava/lang/String;! generate e(Lde/uniks/networkparser/graph/GraphMember;)Lde/uniks/networkparser/interfaces/SendableEntityCreator; item *Lde/uniks/networkparser/graph/GraphMember; ?(Lde/uniks/networkparser/graph/GraphMember;Lde/uniks/networkparser/TextItems;)Lde/uniks/networkparser/interfaces/SendableEntityCreator;
parameters "Lde/uniks/networkparser/TextItems; v(Ljava/lang/String;Lde/uniks/networkparser/graph/GraphModel;)Lde/uniks/networkparser/interfaces/SendableEntityCreator; rootDir model generateJava ?(Ljava/lang/String;Lde/uniks/networkparser/graph/GraphModel;Lde/uniks/networkparser/TextItems;)Lde/uniks/networkparser/interfaces/SendableEntityCreator; generateTypescript templates LocalVariableTypeTable
generating ?(Ljava/lang/String;Lde/uniks/networkparser/graph/GraphModel;Lde/uniks/networkparser/TextItems;Lde/uniks/networkparser/list/SimpleList;Z)Lde/uniks/networkparser/interfaces/SendableEntityCreator; template 8Lde/uniks/networkparser/parser/generator/BasicGenerator;
isStandard Z
resultFile 2Lde/uniks/networkparser/parser/TemplateResultFile; clazz $Lde/uniks/networkparser/graph/Clazz; file
writeFiles name result 3Lde/uniks/networkparser/parser/TemplateResultModel; codeStyle .Lde/uniks/networkparser/graph/FeatureProperty; ?& ?(Ljava/lang/String;Lde/uniks/networkparser/graph/GraphModel;Lde/uniks/networkparser/TextItems;Lde/uniks/networkparser/list/SimpleList;Z)Lde/uniks/networkparser/interfaces/SendableEntityCreator;
getFeature {(Lde/uniks/networkparser/graph/Feature;[Lde/uniks/networkparser/graph/Clazz;)Lde/uniks/networkparser/graph/FeatureProperty; i Ljava/util/Iterator; value &Lde/uniks/networkparser/graph/Feature; clazzes %[Lde/uniks/networkparser/graph/Clazz; DLjava/util/Iterator; getTyp ()Ljava/lang/Class; ()Ljava/lang/Class<*>; withoutFeature S(Lde/uniks/networkparser/graph/Feature;)Lde/uniks/networkparser/ext/ModelGenerator; feature withDefaultModel V(Lde/uniks/networkparser/graph/GraphModel;)Lde/uniks/networkparser/ext/ModelGenerator; testGeneratedCode removeAllGeneratedCode >(Lde/uniks/networkparser/graph/GraphModel;Ljava/lang/String;)V templateResult generator path fileName
parseTemplate t(Ljava/lang/String;Lde/uniks/networkparser/graph/GraphMember;)Lde/uniks/networkparser/parser/TemplateResultFragment; templateString member (Lde/uniks/networkparser/parser/Template; ?(Lde/uniks/networkparser/parser/Template;Lde/uniks/networkparser/graph/GraphMember;)Lde/uniks/networkparser/parser/TemplateResultFragment; 6Lde/uniks/networkparser/parser/TemplateResultFragment;
SourceFile ModelGenerator.java u v'() j k &de/uniks/networkparser/list/SimpleList java/lang/Object 6de/uniks/networkparser/parser/generator/java/JavaClazz 4de/uniks/networkparser/parser/generator/java/JavaSet 8de/uniks/networkparser/parser/generator/java/JavaCreator*+ r s n o .de/uniks/networkparser/list/SimpleKeyValueList -de/uniks/networkparser/logic/FeatureCondition ? ? ,de/uniks/networkparser/logic/ImportCondition -de/uniks/networkparser/logic/ForeachCondition 6de/uniks/networkparser/logic/TemplateFragmentCondition (de/uniks/networkparser/logic/IfCondition ifnot,- Ide/uniks/networkparser/parser/generator/condition/JavaMethodBodyCondition Cde/uniks/networkparser/parser/generator/condition/JavaListCondition de/uniks/networkparser/logic/And de/uniks/networkparser/logic/Not./01023 'de/uniks/networkparser/graph/GraphModel src ? ? ? ? ? ? ? ? /45 java/lang/StringBuilder678090
i.love.sdmlib \.:; 1de/uniks/networkparser/parser/TemplateResultModel | }<=>? de/uniks/networkparser/TextItems@ABCDE&FGHI 6de/uniks/networkparser/parser/generator/BasicGeneratorJKL ? "de/uniks/networkparser/graph/Clazz ? ? +de/uniks/networkparser/interfaces/ConditionMNOPQRSTU2V 0de/uniks/networkparser/parser/TemplateResultFileW0XYZ[ ,de/uniks/networkparser/graph/FeatureProperty\V]+ l m build/gen/java ? ?^_`5 /util CreatorCreator.java &de/uniks/networkparser/parser/Template java/lang/String<a ? ? ?b )de/uniks/networkparser/ext/ModelGenerator java/util/Iterator $de/uniks/networkparser/graph/Feature getAll 0()Lde/uniks/networkparser/graph/util/FeatureSet; with @([Ljava/lang/Object;)Lde/uniks/networkparser/list/AbstractArray; withKey >(Ljava/lang/String;)Lde/uniks/networkparser/logic/IfCondition; 1de/uniks/networkparser/interfaces/ParserCondition getKey ()Ljava/lang/String; toLowerCase add '(Ljava/lang/Object;Ljava/lang/Object;)Z endsWith (Ljava/lang/String;)Z append -(Ljava/lang/String;)Ljava/lang/StringBuilder; toString getName
replaceAll 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; withTemplate e(Lde/uniks/networkparser/list/SimpleKeyValueList;)Lde/uniks/networkparser/parser/TemplateResultModel; withFeatures \(Lde/uniks/networkparser/list/SimpleSet;)Lde/uniks/networkparser/parser/TemplateResultModel; withDefaultLabel %(Z)Lde/uniks/networkparser/TextItems; withLanguage n(Lde/uniks/networkparser/interfaces/LocalisationInterface;)Lde/uniks/networkparser/parser/TemplateResultModel; iterator ()Ljava/util/Iterator; hasNext ()Z next ()Ljava/lang/Object; withOwner r(Lde/uniks/networkparser/parser/generator/BasicGenerator;)Lde/uniks/networkparser/parser/generator/BasicGenerator; CODESTYLE
getClazzes \([Lde/uniks/networkparser/interfaces/Condition;)Lde/uniks/networkparser/graph/util/ClazzSet; *de/uniks/networkparser/graph/util/ClazzSet match (([Lde/uniks/networkparser/graph/Clazz;)Z executeClazz ?(Lde/uniks/networkparser/graph/Clazz;Lde/uniks/networkparser/interfaces/LocalisationInterface;Z)Lde/uniks/networkparser/parser/TemplateResultFile; executeTemplate ?(Lde/uniks/networkparser/parser/TemplateResultFile;Lde/uniks/networkparser/interfaces/LocalisationInterface;Lde/uniks/networkparser/graph/GraphMember;)V (Ljava/lang/Object;)Z getFileName (de/uniks/networkparser/ext/io/FileBuffer writeFile -(Ljava/lang/String;Ljava/lang/CharSequence;)Z ,de/uniks/networkparser/graph/util/FeatureSet equals without createResultFile Y(Lde/uniks/networkparser/graph/Clazz;Z)Lde/uniks/networkparser/parser/TemplateResultFile;
deleteFile =([Ljava/lang/String;)Lde/uniks/networkparser/parser/Template; ?(Lde/uniks/networkparser/interfaces/LocalisationInterface;Lde/uniks/networkparser/interfaces/SendableEntityCreator;Lde/uniks/networkparser/graph/GraphMember;)Lde/uniks/networkparser/parser/TemplateResultFragment; ! i G j k l m n o p q r s p t u v w q ?*? *? ? *? Y? ? Y? Y? SY? Y?
SY? Y? S?
? ? ? x # $ ( y ? z { | } w ? ?*? ? ?*? Y? ? *? Y? ? *? Y? ? *? Y? ? *? Y? ? *? Y? ? *? Y? ? ? *? Y? ? *? !Y? "? *? #Y? $? *? %Y? &? *? ? x 6
, - . / ( 0 3 1 > 2 I 3 Y 4 d 5 o 6 z 7 ? 9 y ? z { ~ ? ? p ? ? w q +? ' M,? *? ,? (+? )W? x = > ? A y z { ? ? ? ? ~ ? ? ? ? w Y +? *? ?*++? *? ,? x D E G y z { ? ? ~ ? ? w d +? *? ?*++? *,? -? x K L N y z { ? ? ? ? ~ ? ? w F *+,? -? x R y z { ? ? ? m ? ? w U
*+,-*? ? .? x V y *
z {
? ?
? m
? ? ? ? w F *+,? /? x Z y z { ? ? ? m ? ? w | ? Y? :*+,-? .? x
^ a y 4 z { ? ? ? m ? ? ? s ? ? t ? ? w }+? 0L? +1? 2? ? 3Y? 4+? 51? 5? 6L,? 7:? 8:? 3Y? 4+? 591? :? 51? 5? 6L? ;Y? <:*? =? >W*? ? ?W-? ? @Y? AN-? BW-? CW? D:? E ? ? F ? G: *? HW???*? I? J? K:,? L? M? N: ? E ? b ? F ? J:
? D:? E ? B? F ? G:? JY
S? O6
? P:
? Q? RW??????? B? S: ? E ? 1 ? F ? T:
? 3Y? 4+? 5
? U? 5? 6
? V? WW???? x ? f g
h i ' k - l 2 m 6 o V q _ r i s s t w u v ? x ? z ? { ? | ? } ? ~ ? ? ? ?( ?0 ?3 ?6 ?; ?X ?w ?z ? y ? ? ? ? ? ?
? ? 0 ? ? ? P ? ?
X ? ?
} z { } ? ? } ? m } ? ? } ? s } ? ? -P ? ? _ ? ? ? ? ? ? ? } ? t ~ :
? ?? N ??
?? ? ? ?? ? ?? H? ? ?? 7 p ? ? ? ? w ? D*? ? >*? ? XN-? E ? --? F ? Y:+? Z? ,? ?,? O? ????? x *
? ? ? # ? , ? 0 ? 3 ? <