|
|
Re: ATL - two sources (with restrictions) in one rule [message #1748475 is a reply to message #1748474] |
Wed, 23 November 2016 13:23 |
Guisella Angulo Messages: 17 Registered: September 2016 |
Junior Member |
|
|
thanks a lot!
I try to complete all the parameter the each method, You have another idea of how to do this?
PD: I'm working in transformation Model to Model (KDM model to Java Model), for now only with method constructor.
rule MethodDeclarationToMethodUnit
{
from
parametros: KDM!ParameterUnit,
source: KDM!MethodUnit (source.kind = #constructor)
to
target:JAVA!ConstructorDeclaration
(
name <- source.name
,modifier <- variavelModifier
,body <- variavelBody
,parameters <- variavelParameters
)
,variavelModifier:JAVA!Modifier(
visibility <- source.attribute -> collect(f | f.value)
)
,variavelBody:JAVA!Block(
)
,variavelParameters:JAVA!SingleVariableDeclaration(
)
}
[Updated on: Wed, 23 November 2016 13:28] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03586 seconds