Module: Mjava_Annotation
- Included in:
- Muml_Classifier, Muml_EnumerationLiteral, Muml_Operation, Muml_Parameter, Muml_Property
- Defined in:
- lib/ontomde-java/java/java.rb
Instance Method Summary collapse
- #java_writeAnnotation ⇒ Object
- #java_writeMdatkAnno(zonesId = ['annotations']) ⇒ Object
- #java_writeParamAnnotation(numParam = '') ⇒ Object
Instance Method Details
#java_writeAnnotation ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/ontomde-java/java/java.rb', line 8 def java_writeAnnotation mtk_protected(Mrdf_Resource::NOREVERSE,'annotations',context[:hasGlobalReverse]) { java_annotation.each {|a| write("\t") write(a) write("\n") } write("\t@Deprecated\n") if (self.umlx_hasStereotype?("deprecated")) write("\t@Override\n") if (self.kind_of?(Muml_Operation) && !umlx_redefinesMethod.empty? && !umlx_redefinesMethod_one.umlx_owner_one.kind_of?(Muml_Interface) ) } end |
#java_writeMdatkAnno(zonesId = ['annotations']) ⇒ Object
35 36 37 |
# File 'lib/ontomde-java/java/java.rb', line 35 def java_writeMdatkAnno(zonesId=['annotations']) mtk_annotation(Mrdf_Resource::NOREVERSE,zonesId) end |
#java_writeParamAnnotation(numParam = '') ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/ontomde-java/java/java.rb', line 20 def java_writeParamAnnotation(numParam='') ext_isReferencedBy.each { |o| if ( o.kind_of?(Muml_Operation) ) then o.mtk_protected(Mrdf_Resource::NOREVERSE,'annoparam'+numParam,context[:hasGlobalReverse]) { java_annotation.each {|a| write(a) write("\n") } } return end } end |