blob: 1c8f53828703215d3baeff7f71f44003eeb6de0c (
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
|
<%@ jet package = "org.eclipse.papyrus.cpp.codegen.jet.util"
skeleton = "../../generator.skeleton"
imports = "org.eclipse.uml2.uml.* java.util.Iterator org.eclipse.papyrus.cpp.codegen.utils.GenUtils Cpp.*"
class = "CppClassInlineOperationsImplementation"
%>
<%
//////////////////////////////////////////////////////////////////////////////////////////
// Java preparation
//////////////////////////////////////////////////////////////////////////////////////////
// Retrieve the class
Classifier currentClass = (Classifier) argument;
String opDecl = "";
// Retrieve operations
Iterator<Operation> operations = currentClass.getOperations().iterator();
while (operations.hasNext()) {
Operation currentOp = operations.next();
if (GenUtils.hasStereotype (currentOp, CppInline.class) &&
!GenUtils.hasStereotype (currentOp, CppNoCodeGen.class)) {
CppOperationImplementation jetOpImpl = new CppOperationImplementation();
opDecl = opDecl+jetOpImpl.generate(currentOp);
}
}
//////////////////////////////////////////////////////////////////////////////////////////
// The following part contains the template
//////////////////////////////////////////////////////////////////////////////////////////%>
<%= opDecl %>
|