source: liacs/se/CNS/generation_settings@ 394

Last change on this file since 394 was 2, checked in by Rick van der Zwet, 15 years ago

Initial import of data of old repository ('data') worth keeping (e.g. tracking
means of URL access statistics)

File size: 12.1 KB
Line 
1
2 java_default_defs
3 cpp_h_extension "h" cpp_src_extension "cpp" java_extension "java" php_extension "php" python_extension "py" idl_extension "idl"
4
5 type_forms 15 // uml cpp java idl cpp_in cpp_out cpp_inout cpp_return
6 "void" "void" "void" "void" "${type}" "${type} &" "${type}" "${type}"
7 "any" "void *" "Object" "any" "const ${type}" "${type}" "${type} &" "${type}"
8 "bool" "bool" "boolean" "boolean" "${type}" "${type} &" "${type} &" "${type}"
9 "char" "char" "char" "char" "${type}" "${type} &" "${type} &" "${type}"
10 "uchar" "unsigned char" "char" "octet" "${type}" "${type} &" "${type} &" "${type}"
11 "byte" "unsigned char" "byte" "octet" "${type}" "${type} &" "${type} &" "${type}"
12 "short" "short" "short" "short" "${type}" "${type} &" "${type} &" "${type}"
13 "ushort" "unsigned short" "short" "unsigned short" "${type}" "${type} &" "${type} &" "${type}"
14 "int" "int" "int" "long" "${type}" "${type} &" "${type} &" "${type}"
15 "uint" "unsigned int" "int" "unsigned long" "${type}" "${type} &" "${type} &" "${type}"
16 "long" "long" "long" "long" "${type}" "${type} &" "${type} &" "${type}"
17 "ulong" "unsigned long" "long" "unsigned long" "${type}" "${type} &" "${type} &" "${type}"
18 "float" "float" "float" "float" "${type}" "${type} &" "${type} &" "${type}"
19 "double" "double" "double" "double" "${type}" "${type} &" "${type} &" "${type}"
20 "string" "string" "String" "string" "${type}" "${type} &" "${type} &" "${type}"
21
22 relations_stereotypes 5 // uml cpp java pythonidl
23 "sequence" "vector" "Vector" "list" "sequence"
24 "vector" "vector" "Vector" "list" "sequence"
25 "list" "list" "List" "list" "sequence"
26 "set" "set" "Set" "set" "sequence"
27 "map" "map" "Map" "dict" "sequence"
28
29 classes_stereotypes 13 // uml cpp java php python idl
30 "class" "class" "class" "class" "class" "valuetype"
31 "interface" "class" "interface" "interface" "class" "interface"
32 "exception" "class" "class" "class" "class" "exception"
33 "enum" "enum" "enum" "enum" "enum" "enum"
34 "enum_pattern" "enum" "enum_pattern" "enum" "enum" "enum"
35 "struct" "struct" "class" "class" "class" "struct"
36 "union" "union" "class" "class" "class" "union"
37 "typedef" "typedef" "ignored" "ignored" "ignored" "typedef"
38 "boundary" "class" "class" "class" "class" "interface"
39 "control" "class" "class" "class" "class" "valuetype"
40 "entity" "class" "class" "class" "class" "valuetype"
41 "actor" "ignored" "ignored" "ignored" "ignored" "ignored"
42 "@interface" "ignored" "@interface" "ignored" "ignored" "ignored"
43
44 cpp_enum_default_type_forms "${type}" "${type} &" "${type} &" "${type}" // in out inout return
45 other_cpp_types_default_type_forms "const ${type} &" "${type} &" "${type} &" "${type}" // in out inout return
46
47 cpp_default_h_content "#ifndef ${NAMESPACE}_${NAME}_H
48#define ${NAMESPACE}_${NAME}_H
49
50${comment}
51${includes}
52${declarations}
53${namespace_start}
54${definition}
55${namespace_end}
56#endif
57"
58 cpp_default_src_content "${comment}
59${includes}
60${namespace_start}
61${members}
62${namespace_end}"
63 cpp_default_class_decl "${comment}${template}class ${name}${inherit} {
64${members}};
65${inlines}
66"
67 cpp_default_external_class_decl "${name}
68#include <${name}.h>
69"
70 cpp_default_struct_decl "${comment}${template}struct ${name}${inherit} {
71${members}};
72${inlines}
73"
74 cpp_default_union_decl "${comment}${template}union ${name} {
75${members}};
76${inlines}
77"
78 cpp_default_enum_decl "${comment}enum ${name} {
79${items}
80};
81"
82 cpp_default_typedef_decl "${comment}typedef ${type} ${name};
83"
84 cpp_default_attribute_declaration " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${value};
85" // multiplicity 1
86 " ${comment}${static}${mutable}${volatile}${const}${stereotype}<${type}> ${name}${value};
87" // multiplicity * a..b
88 " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${multiplicity}${value};
89" // multiplicity [..]
90 cpp_default_enum_item_declaration " ${name}${value},${comment}"
91 cpp_association_aggregation_declaration
92 " ${comment}${static}${mutable}${volatile}${const}${type} * ${name}${value};
93" // multiplicity 1
94 " ${comment}${static}${mutable}${volatile}${const}${stereotype}<${type} *> ${name}${value};
95" // multiplicity * a..b
96 " ${comment}${static}${mutable}${volatile}${const}${type} * ${name}${multiplicity}${value};
97" // multiplicity [..]
98 cpp_aggregation_by_value_declaration
99 " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${value};
100" // multiplicity 1
101 " ${comment}${static}${mutable}${volatile}${const}${stereotype}<${type}> ${name}${value};
102" // multiplicity * a..b
103 " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${multiplicity}${value};
104" // multiplicity [..]
105 cpp_get "get_${name}" inline const value_const public
106 cpp_set "set_${name}" public
107 cpp_default_operation_declaration " ${comment}${friend}${static}${inline}${virtual}${type} ${name}${(}${)}${const}${volatile}${throw}${abstract};
108"
109 cpp_default_operation_definition "${comment}${inline}${type} ${class}::${name}${(}${)}${const}${volatile}${throw}${staticnl}{
110 ${body}}
111"
112 java_default_src_content "${comment}
113${package}
114${imports}
115${definition}"
116 java_default_class_decl "${comment}${@}${visibility}${final}${abstract}class ${name}${extends}${implements} {
117${members}}
118"
119 java_default_external_class_decl "${name}"
120 java_default_interface_decl "${comment}${@}${visibility}interface ${name}${extends} {
121${members}}
122"
123 java5_default_enum_decl "${comment}${@}${visibility}${final}${abstract}enum ${name}${implements} {
124${items};
125${members}}
126"
127 java_default_enum_decl "${comment}${@}${visibility}final class ${name} {
128${members}
129 private final int value;
130
131 public int value() {
132 return value;
133 }
134
135 public static ${name} fromInt(int value) {
136 switch (value) {
137${cases} default: throw new Error();
138 }
139
140 }
141 private ${name}(int v) { value = v; };
142}
143"
144 java_default_attribute_declaration " ${comment}${@}${visibility}${static}${final}${transient}${volatile}${type} ${name}${value};
145" // multiplicity 1
146 " ${comment}${@}${visibility}${static}${final}${transient}${volatile}${stereotype}<${type}> ${name}${value};
147" // multiplicity * a..b
148 " ${comment}${@}${visibility}${static}${final}${transient}${volatile}${type}${multiplicity} ${name}${value};
149" // multiplicity N
150 java5_default_enum_item_declaration " ${@}${name}${value},${comment}"
151 java_default_enum_item_declaration " ${comment}${@}public static final int _${name}${value};
152public static final ${class} ${name} = new ${class}(_${name});
153"
154 java_default_enum_case " case _${name}: return ${name};
155"
156 java_association_aggregation_declaration
157 " ${comment}${@}${visibility}${static}${final}${transient}${volatile}${type} ${name}${value};
158" // multiplicity 1
159 " ${comment}${@}${visibility}${static}${final}${transient}${volatile}${stereotype}<${type}> ${name}${value};
160" // multiplicity * a..b
161 " ${comment}${@}${visibility}${static}${final}${transient}${volatile}${type}${multiplicity} ${name}${value};
162" // multiplicity N
163 java_get "get${Name}" final public
164 java_set "set${Name}" public
165 java_default_operation_definition " ${comment}${@}${visibility}${final}${static}${abstract}${synchronized}${type} ${name}${(}${)}${throws}${staticnl}{
166 ${body}}
167"
168 php_default_src_content "<?php
169${comment}
170${definition}
171?>
172"
173 php_default_class_decl "${comment}${final}${visibility}${abstract}class ${name}${extends}${implements} {
174${members}}
175"
176 php_default_enum_decl "${comment}${visibility}final class ${name} {
177${items}}
178"
179 php_default_external_class_decl "${name}"
180 php_default_interface_decl "${comment}${visibility}interface ${name} {
181${members}}
182"
183 php_default_attribute_declaration " ${comment}${visibility}${const}${static}${var}${name}${value};
184"
185 php_default_enum_item_decl " const ${name}${value};${comment}
186"
187 php_default_relation_declaration" ${comment}${visibility}${const}${static}${var}${name}${value};
188"
189 php_get "get${Name}" final
190 php_set "set${Name}"
191 php_default_operation_definition " ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
192{
193 ${body}}
194"
195 python_2_2
196 python_indent_step " "
197 python_default_src_content "${comment}
198${import}
199${definition}"
200 python_default_class_decl "class ${name}${inherit}:
201${docstring}${members}
202"
203 python_default_enum_decl "class ${name}:
204${docstring}${members}
205"
206 python_default_external_class_decl "${name}"
207 python_default_attribute_declaration "${comment}${self}${name} = ${value}
208" // multiplicity 1
209 "${comment}${self}${name} = ${stereotype}()
210" // multiplicity != 1
211 python_default_enum_item_decl "${comment}${self}${name} = ${value}
212"
213 python_default_relation_declaration"${comment}${self}${name} = ${value}
214" // multiplicity 1
215 "${comment}${self}${name} = ${stereotype}()
216" // multiplicity != 1
217 python_default_composition_declaration"${comment}${self}${name} = ${type}()
218" // multiplicity 1
219 "${comment}${self}${name} = ${stereotype}()
220" // multiplicity != 1
221 python_default_operation_definition "${@}${static}${abstract}def ${name}${(}${)}:
222${docstring}${body}
223"
224 python_get "get${Name}"
225 python_set "set${Name}"
226 idl_default_src_content "#ifndef ${MODULE}_${NAME}_H
227#define ${MODULE}_${NAME}_H
228
229${comment}
230${includes}
231${module_start}
232${definition}
233${module_end}
234#endif
235"
236 idl_default_interface_decl "${comment}${abstract}${local}interface ${name}${inherit} {
237${members}};
238"
239 idl_default_valuetype_decl "${comment}${abstract}${custom}valuetype ${name}${inherit} {
240${members}};
241"
242 idl_default_struct_decl "${comment}struct ${name} {
243${members}};
244"
245 idl_default_typedef_decl "${comment}typedef ${type} ${name};
246"
247 idl_default_exception_decl "${comment}exception ${name} {
248${members}};
249"
250 idl_default_union_decl "${comment}union ${name} switch(${switch}) {
251${members}};
252"
253 idl_default_enum_decl "${comment}enum ${name} {
254${items}};
255"
256 idl_default_external_class_decl "${name}
257#include \"${name}.idl\"
258"
259 idl_default_attribute_declaration " ${comment}${readonly}${attribute}${type} ${name};
260" // multiplicity 1
261 " ${comment}${readonly}${attribute}${stereotype}<${type}> ${name};
262" // multiplicity * a..b
263 " ${comment}${readonly}${attribute}${stereotype}<${type},${multiplicity}> ${name};
264" // multiplicity N
265 idl_default_valuetype_attribute_declaration " ${comment}${visibility}${type} ${name};
266" // multiplicity 1
267 " ${comment}${visibility}${stereotype}<${type}> ${name};
268" // multiplicity * a..b
269 " ${comment}${visibility}${stereotype}<${type},${multiplicity}> ${name};
270" // multiplicity N
271 idl_default_const_declaration " ${comment}const ${type} ${name}${value};
272" // multiplicity 1
273 " ${comment}const ${stereotype}<${type}> ${name}${value};
274" // multiplicity * a..b
275 " ${comment}const ${stereotype}<${type},${multiplicity}> ${name}${value};
276" // multiplicity N
277 idl_default_enum_item_declaration " ${name},${comment}"
278 idl_default_union_item_declaration " ${comment}case ${case} : ${readonly}${type} ${name};" // multiplicity 1
279 " ${comment}case ${case} : ${readonly}${stereotype}<${type}> ${name};" // multiplicity * a..b
280 " ${comment}case ${case} : ${readonly}${stereotype}<${type},${multiplicity}> ${name};" // multiplicity N
281 idl_association_aggregation_declaration
282 " ${comment}${readonly}${attribute}${type} ${name};
283" // multiplicity 1
284 " ${comment}${readonly}${attribute}${stereotype}<${type}> ${name};
285" // multiplicity * a..b
286 " ${comment}${readonly}${attribute}${stereotype}<${type},${multiplicity}> ${name};
287" // multiplicity N
288 idl_valuetype_association_aggregation_declaration
289 " ${comment}${visibility}${type} ${name};
290" // multiplicity 1
291 " ${comment}${visibility}${stereotype}<${type}> ${name};
292" // multiplicity * a..b
293 " ${comment}${visibility}${stereotype}<${type},${multiplicity}> ${name};
294" // multiplicity N
295 idl_union_association_aggregation_declaration
296 " ${comment}case ${case} : ${readonly}${type} ${name};" // multiplicity 1
297 " ${comment}case ${case} : ${readonly}${stereotype}<${type}> ${name};" // multiplicity * a..b
298 " ${comment}case ${case} : ${readonly}${stereotype}<${type},${multiplicity}> ${name};" // multiplicity N
299 idl_get "get_${name}"
300 idl_set "set_${name}" twoways
301 idl_default_operation_declaration " ${comment}${oneway}${type} ${name}${(}${)}${raisesnl}${raises};
302"
303 uml_get_name uml uml_set_name uml
304end
Note: See TracBrowser for help on using the repository browser.