Enumeration Type in MediniQVT [message #1694369] |
Mon, 04 May 2015 17:44  |
Eclipse User |
|
|
|
Dear community
I'm developing my grade thesis in Computer Science and this is based in the use of mediniQVT for transform Java source code. I have the Java metamodel definied and i need replace a plus sign for a minus sign. Is it possible?
The source code for this part is the following
relation InfixExpression2InfixExpression {
tvl : String;
tvr : String;
checkonly domain sourcemodel s: java::InfixExpression {
leftOperand = sLOperand : java::NumberLiteral {
tokenValue = tvl
},
rightOperand = sROperand : java::NumberLiteral {
tokenValue = tvr
},
operator = java::InfixExpressionKind::PLUS
};
enforce domain targetmodel t: java1::InfixExpression {
leftOperand = tLOperand : java1::NumberLiteral {
tokenValue = tvl
},
rightOperand = tROperand : java1::NumberLiteral {
tokenValue = tvr
},
operator = java1::InfixExpressionKind::MINUS
};
}
I recieve the following error at the transformation execution.
Exception occured in transformation
The value 'PLUS' is not a valid enumerator of 'InfixExpressionKind'
Thanks.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03916 seconds