Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 6f8be178c7d60dd5201b8c0e8b51c58821c490e1 (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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
RoomModel DataClassNotation {

	DataClass DataClass1 {
		Attribute attribute1: int32		// attribute of PrimitveType
		Attribute attribute2: float32	// attribute of another PrimitveType
		
		// no arguments, no return value
		Operation operation1(): void {	
			"UserCodeLine1"
		}
		
		// argument of PrimitiveType, no return value
		Operation operation2(Param1: int32): void {
			"UserCodeLine1"
		}
		
		// argument of PrimitiveType, return value of of PrimitiveType
		Operation operation3(Param1: int32): float64 {
			"UserCodeLine1"
		}
	}

	DataClass DataClass2 {
		Attribute attribute1: int32			// attribute of PrimitveType
		Attribute attribute2: DataClass1	// attribute of DataClass
		
		// arguments and return value by value
		Operation operation2(Param1: int32, Param2: DataClass1): DataClass1 {
			"UserCodeLine1"
		}
		
		// arguments and return value by reference, except for PrimitiveTypes
		Operation operation1(Param1: int32, Param2: DataClass1 ref): DataClass1 ref {
			"UserCodeLine1"
		}
	}


}

Back to the top