Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: e566bd521536e834c0cb4eb9c47f7b6773f495ed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
-- @atlcompiler emftvm
-- @nsURI EMFTVM=http://www.eclipse.org/m2m/atl/2011/EMFTVM
-- Tests ATL compilation strategy
library TestLib;

helper context EMFTVM!NamedElement def : test() : Boolean =
	(not self.name.oclIsUndefined()).debug('   TestLib::NamedElement.test()   '.encode());

helper context EMFTVM!Operation def : test() : Boolean =
	super.test().debug('TestLib::Operation.test()');

helper context OclAny def : encode() : String =
	'';

helper context String def : encode() : String =
	self.replaceAll('\\s+', ' ')
		.replaceAll('"', '');

helper context EMFTVM!NamedElement def : testProp : Boolean =
	(not self.name.oclIsUndefined()).debug('TestLib::NamedElement.testProp');

helper context EMFTVM!Operation def : testProp : Boolean =
	super.testProp.debug('TestLib::Operation.testProp');

Back to the top