org.apache.cayenne.gen.xml.CgenSaverDelegate.class Maven / Gradle / Ivy
The newest version!
???? 7 ?
6org/apache/cayenne/project/extension/BaseSaverDelegate ()V
,org/apache/cayenne/gen/xml/CgenSaverDelegate metaData :Lorg/apache/cayenne/configuration/xml/DataChannelMetaData; %org/apache/cayenne/gen/CgenConfigList 8org/apache/cayenne/configuration/xml/DataChannelMetaData get Y(Lorg/apache/cayenne/configuration/ConfigurationNode;Ljava/lang/Class;)Ljava/lang/Object;
getAll ()Ljava/util/List; java/util/List iterator ()Ljava/util/Iterator; ! " # $ java/util/Iterator hasNext ()Z & ' ( next ()Ljava/lang/Object; * (org/apache/cayenne/gen/CgenConfiguration
, - . getBaseDirectory (()Lorg/apache/cayenne/resource/Resource; 0 1 2 3 4 $org/apache/cayenne/resource/Resource getURL ()Ljava/net/URL;
6 7 8 resolveOutputDir ;(Ljava/net/URL;Lorg/apache/cayenne/gen/CgenConfiguration;)V : ; < encoder $Lorg/apache/cayenne/util/XMLEncoder;
> ? @ getParentDelegate 6()Lorg/apache/cayenne/project/extension/SaverDelegate;
B C D E F "org/apache/cayenne/util/XMLEncoder nested ?(Lorg/apache/cayenne/util/XMLSerializable;Lorg/apache/cayenne/configuration/ConfigurationNodeVisitor;)Lorg/apache/cayenne/util/XMLEncoder;
H I J getBaseDirectoryForURL $(Ljava/net/URL;)Ljava/nio/file/Path;
) L M N getRootPath ()Ljava/nio/file/Path;
) P Q N buildOutputPath
) S T U setRootPath (Ljava/nio/file/Path;)V
W X Y Z [ %org/apache/cayenne/gen/internal/Utils getMavenSrcPathForPath *(Ljava/nio/file/Path;)Ljava/util/Optional; ] ^ _ apply ()Ljava/util/function/Function;
a b c d e java/util/Optional map 3(Ljava/util/function/Function;)Ljava/util/Optional;
g h i j k java/util/Objects requireNonNull &(Ljava/lang/Object;)Ljava/lang/Object; m n o accept I(Lorg/apache/cayenne/gen/CgenConfiguration;)Ljava/util/function/Consumer;
a q r s ifPresent (Ljava/util/function/Consumer;)V
) u v U updateOutputPath
x y z { | java/net/URL toURI ()Ljava/net/URI;
~ ? ? java/nio/file/Paths $(Ljava/net/URI;)Ljava/nio/file/Path; ? java/net/URISyntaxException ? *org/apache/cayenne/CayenneRuntimeException ? Unable to resolve output path ? java/lang/Object
? ? ? =(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V ? java/nio/file/LinkOption
? ? ? ? ? java/nio/file/Files
isRegularFile 2(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z ? ? ? ? N java/nio/file/Path getParent
? ? ? visitDataMap 2(Lorg/apache/cayenne/map/DataMap;)Ljava/lang/Void; ? java/lang/String ? ? ? ? of ;(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path; =(Lorg/apache/cayenne/configuration/xml/DataChannelMetaData;)V Code LineNumberTable LocalVariableTable this .Lorg/apache/cayenne/gen/xml/CgenSaverDelegate; cgen *Lorg/apache/cayenne/gen/CgenConfiguration; dataMap Lorg/apache/cayenne/map/DataMap; cgenConfigList 'Lorg/apache/cayenne/gen/CgenConfigList;
StackMapTable baseURL Ljava/net/URL; cgenConfiguration
baseDirectory Ljava/nio/file/Path; prevRootPath prevOutputPath resourcePath e Ljava/net/URISyntaxException; 4(Lorg/apache/cayenne/map/DataMap;)Ljava/lang/Object; MethodParameters lambda$resolveOutputDir$0 ((Ljava/lang/String;)Ljava/nio/file/Path; x$0 Ljava/lang/String;
SourceFile CgenSaverDelegate.java BootstrapMethods k ?
? ? ? ? ? (Ljava/lang/Object;)V t U ?
? ? ? ? ? "java/lang/invoke/LambdaMetafactory metafactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; InnerClasses ? %java/lang/invoke/MethodHandles$Lookup ? java/lang/invoke/MethodHandles Lookup ! ? ? F
*? *+? ? ? * + , ?
? ?
? ? ? ? X*? +
? ?
M,? E,? ? N-? ? 2-? % ? ):? *? +? / ? 5*? 9*? =? AW???? ? " 0 1 2 2 3 7 4 E 5 S 7 V 9 ? * 2 ! ? ? X ? ? X ? ? H ? ? ? ?
4? 7 8 ? ? S*? ?*? GM+? KN+? O:+,? R-? ,? V? \ ? `+Y? fW? l ? p? +? t? +? O? +,? t? ? > = > A
B C E H I ' J , K 8 N = P F Q M T R V ? 4 S ? ? S ? ?
I ? ? D ? ? > ? ? ? ? 2 ? ? ?
I J ? ? /*? w? }L? M? ?Y?,? ?? ??+? ?? ??
+? ? L+? ? ? [ ^ \ ] _ &