Server IP : 111.118.215.189 / Your IP : 3.145.133.121 Web Server : Apache System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : a1673wkz ( 2475) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/share/ruby/vendor_ruby/puppet/vendor/rgen/lib/mmgen/templates/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<% define 'Annotations', :for => EPackage do %> <% for a in eAnnotations %> annotation <% expand 'AnnotationArgs', :for => a %> <% end %> <% end %> <% define 'Annotations', :for => EClass do %> <% for a in eAnnotations %> annotation <% expand 'AnnotationArgs', :for => a %> <% end %> <% end %> <% define 'Annotations', :for => EStructuralFeature do %> <% oppositeAnnotations = (this.respond_to?(:eOpposite) && eOpposite && eOpposite.eAnnotations) || [] %> <% if eAnnotations.size > 0 || oppositeAnnotations.size > 0 %> do<%iinc%> <% for a in eAnnotations %> annotation <% expand 'AnnotationArgs', :for => a %> <% end %> <% for a in oppositeAnnotations %> opposite_annotation <% expand 'AnnotationArgs', :for => a %> <% end %><%idec%> end<%nows%> <% end %> <% end %> <% define 'AnnotationArgs', :for => EAnnotation do %> <% if source.nil? %> <% expand 'Details' %> <% else %> :source => "<%= source.to_s %>", :details => {<% expand 'Details' %>}<%nows%> <% end %> <% end %> <% define 'Details', :for => EAnnotation do %> <%= details.sort{|a,b| a.key<=>b.key}.collect{ |d| "\'" + d.key + "\' => \'"+ (d.value || "").gsub('\'','\\\'').to_s + "\'"}.join(', ') %><%nows%> <% end %>