Skip to content
Snippets Groups Projects
Commit 3268b0f4 authored by Erlend Stav's avatar Erlend Stav
Browse files

Updated parameters etc.

parent fe1b1c1f
No related branches found
No related tags found
No related merge requests found
......@@ -50,22 +50,30 @@ texttransformation Test2 (in uml:"http://www.eclipse.org/uml2/3.0.0/UML") {
' valueType = ' + ')\n'
// TODO: find what to use for value type
}
'
'
}
// Print the method signature
' public ' self.name
' public '
// Determine return type
if (outList.size() == 0) {
'void '
} else if (outList.size() > 1) {
'Object[] '
} else {
var returnParam:uml.Parameter =outList.first()
returnParam.name ' '
}
self.name
'('
'('
separator = ""
self.ownedParameter->forEach(par:uml.Parameter) {
if (par.direction == "out") {
if (par.direction == "in") {
separator + '@Input(name = "'par.name'") '+ par.type.name + ' ' par.name
separator = ", "
}
separator + par.direction + ' ' + par.type.name + ' ' par.name
separator = ", "
//uml.ParameterDirectionKind._getFeature("return")
}
')
')
'
}
......@@ -76,6 +84,4 @@ texttransformation Test2 (in uml:"http://www.eclipse.org/uml2/3.0.0/UML") {
effectTypeMap.put("REMOVE_EFFECT","@RemoveEffect")
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment