| 1 |
% Copyright 2005 2015 Ovidiu Gheorghies |
| 2 |
% Licensed under the Apache License, Version 2.0. |
| 3 |
|
| 4 |
if known _metauml_class_mp: |
| 5 |
expandafter endinput |
| 6 |
fi; |
| 7 |
_metauml_class_mp:=1; |
| 8 |
|
| 9 |
% Sadly, this copy of the macro is needed to prevent multiple file loads being shown by MetaPost. |
| 10 |
% The guard values (such as _metauml_mp) do ensure that the file isn't loaded multiple times, |
| 11 |
% but this macro makes sure that MetaPost won't try to load the file and display a message for that. |
| 12 |
def inputonce text libraryFile= |
| 13 |
if not known scantokens ("_" & str libraryFile & "_mp"): |
| 14 |
%includeonce% show "Loading " & str libraryFile; |
| 15 |
scantokens ("input " & str libraryFile); |
| 16 |
else: |
| 17 |
%includeonce% show str libraryFile & " already loaded."; |
| 18 |
fi; |
| 19 |
enddef; |
| 20 |
|
| 21 |
inputonce metauml_defaults; |
| 22 |
inputonce util_log; |
| 23 |
|
| 24 |
inputonce util_picture; |
| 25 |
inputonce util_picture_stack; |
| 26 |
inputonce util_shade; |
| 27 |
|
| 28 |
string visibilityPublic, visibilityProtected, visibilityPrivate, visibilityPackage; |
| 29 |
visibilityPublic:="+"; |
| 30 |
visibilityProtected:="#"; |
| 31 |
visibilityPrivate:="-"; |
| 32 |
visibilityPackage:="~"; |
| 33 |
|
| 34 |
string metauml_private_abstractMarker, metauml_private_staticMarker; |
| 35 |
metauml_private_abstractMarker := "@abstract"; |
| 36 |
metauml_private_staticMarker := "@static"; |
| 37 |
|
| 38 |
def abstract expr methodName= metauml_private_abstractMarker&methodName enddef; |
| 39 |
def static expr featureName= metauml_private_staticMarker&featureName enddef; |
| 40 |
|
| 41 |
def metauml_private_isAbstract(expr name) = (substring (0, 9) of name = metauml_private_abstractMarker) enddef; |
| 42 |
def metauml_private_isStatic(expr name) = (substring (0, 7) of name = metauml_private_staticMarker) enddef; |
| 43 |
def metauml_private_stripStatic(expr name) = substring (7,infinity) of name enddef; |
| 44 |
def metauml_private_stripAbstract(expr name) = substring (9,infinity) of name enddef; |
| 45 |
|
| 46 |
vardef ClassInfo@#= |
| 47 |
attributes(@#); |
| 48 |
var(color) foreColor, borderColor; |
| 49 |
var(string) featureVisibilityMode; |
| 50 |
|
| 51 |
FontInfo.@#nameFont(metauml_defaultFont, defaultscale); |
| 52 |
FontInfo.@#featureFont (metauml_defaultFont, defaultscale); |
| 53 |
FontInfo.@#stereotypeFont(metauml_defaultFont, .7); |
| 54 |
|
| 55 |
ShadeInfo.@#iShade; |
| 56 |
|
| 57 |
@#featureVisibilityMode := "individual"; % "none", "grouped" |
| 58 |
|
| 59 |
@#foreColor := .9white; |
| 60 |
@#borderColor := black; |
| 61 |
|
| 62 |
PictureInfo.@#iName (2, 2, 1, 3)(@#nameFont); |
| 63 |
@#iName.ignoreNegativeBase := 1; |
| 64 |
|
| 65 |
PictureInfoCopy.@#iNameAbstract(@#iName); |
| 66 |
@#iNameAbstract.iFont.name := metauml_defaultFontOblique; |
| 67 |
|
| 68 |
PictureInfo.@#iStereotype(2, 2, 2, 2)(@#stereotypeFont); |
| 69 |
@#iStereotypeStack.iPict.ignoreNegativeBase := 1; |
| 70 |
|
| 71 |
PictureStackInfo.@#iStereotypeStack(2, 2, 1, 1)(5.5)(@#iStereotype); |
| 72 |
|
| 73 |
PictureInfo.@#iFeature (2, 2, 1.25, 0)(@#featureFont); |
| 74 |
|
| 75 |
PictureInfoCopy.@#iFeatureAbstract (@#iFeature); |
| 76 |
@#iFeatureAbstract.iFont.name := metauml_defaultFontOblique; |
| 77 |
|
| 78 |
PictureInfoCopy.@#iFeatureStatic (@#iFeature); |
| 79 |
@#iFeatureStatic.textDecoration := "underline"; |
| 80 |
|
| 81 |
PictureStackInfo.@#iFeatureStack (2, 2, 2.5, 2)(10.5)(@#iFeature); |
| 82 |
PictureStackInfoCopy.@#iAttributeStack(@#iFeatureStack); |
| 83 |
PictureStackInfoCopy.@#iMethodStack(@#iFeatureStack); |
| 84 |
|
| 85 |
@#iFeatureStack.iPict.bottom := 2; |
| 86 |
@#iFeatureStack.iPict.ignoreNegativeBase := 1; |
| 87 |
|
| 88 |
PictureStackInfoCopy.@#iAttributeVisibilityStack (@#iFeatureStack); |
| 89 |
PictureStackInfoCopy.@#iMethodVisibilityStack (@#iFeatureStack); |
| 90 |
|
| 91 |
@#iAttributeVisibilityStack.right := 0; |
| 92 |
@#iMethodVisibilityStack.right := 0; |
| 93 |
enddef; |
| 94 |
|
| 95 |
vardef ClassInfoCopy@#(text src)= |
| 96 |
log "ClassInfoCopy: Copying class"; |
| 97 |
|
| 98 |
attributes(@#); |
| 99 |
var(numeric) featureVisibilitySpacing, visibilityWidth, visibilityHeight; |
| 100 |
var(color) foreColor, borderColor; |
| 101 |
var(string) featureVisibilityMode; |
| 102 |
|
| 103 |
FontInfoCopy.@#nameFont(src.nameFont); |
| 104 |
FontInfoCopy.@#featureFont(src.featureFont); |
| 105 |
FontInfoCopy.@#stereotypeFont(src.stereotypeFont); |
| 106 |
|
| 107 |
ShadeInfoCopy.@#iShade(src.iShade); |
| 108 |
|
| 109 |
@#foreColor := src.foreColor; |
| 110 |
@#borderColor := src.borderColor; |
| 111 |
|
| 112 |
PictureInfoCopy.@#iName (src.iName); |
| 113 |
PictureInfoCopy.@#iNameAbstract (src.iNameAbstract); |
| 114 |
|
| 115 |
PictureInfoCopy.@#iStereotype(src.iStereotype); |
| 116 |
PictureInfoCopy.@#iFeature (src.iFeature); |
| 117 |
PictureInfoCopy.@#iFeatureAbstract (src.iFeatureAbstract); |
| 118 |
PictureInfoCopy.@#iFeatureStatic (src.iFeatureStatic); |
| 119 |
|
| 120 |
PictureStackInfoCopy.@#iStereotypeStack(src.iStereotypeStack); |
| 121 |
PictureStackInfoCopy.@#iFeatureStack (src.iFeatureStack); |
| 122 |
PictureStackInfoCopy.@#iAttributeStack (src.iAttributeStack); |
| 123 |
PictureStackInfoCopy.@#iMethodStack (src.iMethodStack); |
| 124 |
PictureStackInfoCopy.@#iAttributeVisibilityStack (src.iAttributeVisibilityStack); |
| 125 |
PictureStackInfoCopy.@#iMethodVisibilityStack (src.iMethodVisibilityStack); |
| 126 |
|
| 127 |
@#featureVisibilityMode := src.featureVisibilityMode; |
| 128 |
enddef; |
| 129 |
|
| 130 |
ClassInfo.iClass; |
| 131 |
|
| 132 |
ClassInfoCopy.iClassNameOnly(iClass); |
| 133 |
iClassNameOnly.iName.top := 10; |
| 134 |
iClassNameOnly.iName.bottom := 10; |
| 135 |
iClassNameOnly.iAttributeStack.top := 0; |
| 136 |
iClassNameOnly.iAttributeStack.bottom := 0; |
| 137 |
iClassNameOnly.iMethodStack.top := 0; |
| 138 |
iClassNameOnly.iMethodStack.bottom := 0; |
| 139 |
|
| 140 |
ClassInfoCopy.iInterface(iClass); |
| 141 |
iInterface.iAttributeStack.top := 0; |
| 142 |
iInterface.iAttributeStack.bottom := 0; |
| 143 |
iInterface.iName.iFont.name := metauml_defaultFontOblique; |
| 144 |
|
| 145 |
ClassInfoCopy.iAbstractClass(iClass); |
| 146 |
iAbstractClass.iName.iFont.name := metauml_defaultFontOblique; |
| 147 |
|
| 148 |
% |
| 149 |
% CLASS |
| 150 |
% |
| 151 |
vardef defClass@#(expr pname) = |
| 152 |
ObjectEquations(@#); |
| 153 |
@#className := "Class"; |
| 154 |
|
| 155 |
string @#name; |
| 156 |
boolean @#isAbstract; |
| 157 |
|
| 158 |
@#isAbstract := metauml_private_isAbstract(pname); |
| 159 |
if @#isAbstract: |
| 160 |
@#name = metauml_private_stripAbstract(pname); |
| 161 |
else: |
| 162 |
@#name = pname; |
| 163 |
fi |
| 164 |
|
| 165 |
numeric @#nStereotypes; |
| 166 |
string @#stereotypes[]; |
| 167 |
|
| 168 |
string @#attributes[]; |
| 169 |
string @#attributesVisibility[]; |
| 170 |
boolean @#attributesIsStatic[]; |
| 171 |
|
| 172 |
string @#methods[]; |
| 173 |
string @#methodsVisibility[]; |
| 174 |
boolean @#methodsIsStatic[]; |
| 175 |
boolean @#methodsIsAbstract[]; |
| 176 |
|
| 177 |
numeric @#nAttrs; |
| 178 |
numeric @#nMethods; |
| 179 |
numeric @#nStereotypes; |
| 180 |
|
| 181 |
@#nStereotypes := 0; |
| 182 |
@#nAttrs := 0; |
| 183 |
@#nMethods := 0; |
| 184 |
enddef; |
| 185 |
|
| 186 |
vardef addAttribute@#(expr pcontent) = |
| 187 |
string visibility; |
| 188 |
string attribute; |
| 189 |
|
| 190 |
attribute := pcontent; |
| 191 |
|
| 192 |
@#attributesIsStatic[@#nAttrs] := metauml_private_isStatic(attribute); |
| 193 |
if @#attributesIsStatic[@#nAttrs]: |
| 194 |
attribute := metauml_private_stripStatic(attribute); |
| 195 |
fi |
| 196 |
|
| 197 |
visibility := substring(0,1) of attribute; |
| 198 |
if (not (visibility = visibilityPublic)) and |
| 199 |
(not (visibility = visibilityPrivate)) and |
| 200 |
(not (visibility = visibilityProtected)) and |
| 201 |
(not (visibility = visibilityPackage)): |
| 202 |
|
| 203 |
@#.attributes[@#.nAttrs] := attribute; |
| 204 |
@#.attributesVisibility[@#.nAttrs] := visibilityPackage; |
| 205 |
else: |
| 206 |
save from; |
| 207 |
from := 1; |
| 208 |
if (substring(1,2) of attribute) = " ": from := 2; fi; |
| 209 |
|
| 210 |
@#.attributes[@#.nAttrs] := substring(from, infinity) of attribute; |
| 211 |
@#.attributesVisibility[@#.nAttrs] := visibility; |
| 212 |
fi; |
| 213 |
|
| 214 |
@#.nAttrs := @#.nAttrs + 1; |
| 215 |
enddef; |
| 216 |
|
| 217 |
vardef addMethod@#(expr pcontent) = |
| 218 |
string visibility; |
| 219 |
string method; |
| 220 |
|
| 221 |
method := pcontent; |
| 222 |
|
| 223 |
@#methodsIsStatic[@#nMethods] := metauml_private_isStatic(method); |
| 224 |
if @#methodsIsStatic[@#nMethods]: |
| 225 |
method := metauml_private_stripStatic(method); |
| 226 |
fi |
| 227 |
|
| 228 |
@#methodsIsAbstract[@#nMethods] := metauml_private_isAbstract(method); |
| 229 |
if @#methodsIsAbstract[@#nMethods]: |
| 230 |
method := metauml_private_stripAbstract(method); |
| 231 |
@#isAbstract := true; |
| 232 |
fi |
| 233 |
|
| 234 |
visibility := substring(0,1) of method; |
| 235 |
if (not (visibility = visibilityPublic)) and |
| 236 |
(not (visibility = visibilityPrivate)) and |
| 237 |
(not (visibility = visibilityProtected)) and |
| 238 |
(not (visibility = visibilityPackage)): |
| 239 |
|
| 240 |
@#.methods[@#.nMethods] := method; |
| 241 |
@#.methodsVisibility[@#.nMethods] := visibilityPackage; |
| 242 |
else: |
| 243 |
save from; |
| 244 |
from := 1; |
| 245 |
if (substring(1,2) of method) = " ": from := 2; fi; |
| 246 |
|
| 247 |
@#.methods[@#.nMethods] := substring(from, infinity) of method; |
| 248 |
@#.methodsVisibility[@#.nMethods] := visibility; |
| 249 |
fi; |
| 250 |
|
| 251 |
@#.nMethods := @#.nMethods + 1; |
| 252 |
enddef; |
| 253 |
|
| 254 |
vardef classStereotype@#(expr pcontent) = |
| 255 |
show "Macro classStereotype is deprecated, use Class_stereotypes instead."; |
| 256 |
Class_stereotypes.@#(pcontent); |
| 257 |
enddef; |
| 258 |
|
| 259 |
vardef classStereotypes@#(text stereotypes)= |
| 260 |
show "Macro classStereotypes is deprecated, use Class_stereotypes instead."; |
| 261 |
Class_stereotypes.@#(stereotypes); |
| 262 |
enddef; |
| 263 |
|
| 264 |
vardef EClass@#(text _info)(expr name)(text attributes)(text methods)= |
| 265 |
log "EClass begin: " & str @#; |
| 266 |
|
| 267 |
defClass@#(name); |
| 268 |
|
| 269 |
log "Copying class info"; |
| 270 |
ClassInfoCopy.@#info(_info); |
| 271 |
|
| 272 |
for a=attributes: |
| 273 |
log "Adding attribute ", a; |
| 274 |
addAttribute@#(a); |
| 275 |
endfor; |
| 276 |
for m=methods: |
| 277 |
log "Adding method ", m; |
| 278 |
addMethod@#(m); |
| 279 |
endfor; |
| 280 |
enddef; |
| 281 |
|
| 282 |
vardef Class@#(expr name)(text attributes)(text methods)= |
| 283 |
EClass@#(iClass)(name)(attributes)(methods); |
| 284 |
enddef; |
| 285 |
|
| 286 |
vardef Interface@#(expr name)(text methods)= |
| 287 |
EClass@#(iInterface)(name)()(methods); |
| 288 |
enddef; |
| 289 |
|
| 290 |
vardef EInterface@#(text _info)(expr name)(text methods)= |
| 291 |
EClass@#(_info)(name)()(methods); |
| 292 |
enddef; |
| 293 |
|
| 294 |
vardef ClassName@#(expr name)= |
| 295 |
EClass@#(iClassNameOnly)(name)()(); |
| 296 |
enddef; |
| 297 |
|
| 298 |
vardef EClassName@#(text _info)(expr name)= |
| 299 |
EClass@#(_info)(name)()(); |
| 300 |
enddef; |
| 301 |
|
| 302 |
vardef AbstractClass@#(expr name)(text attributes)(text methods)= |
| 303 |
EClass@#(iAbstractClass)(name)(attributes)(methods); |
| 304 |
enddef; |
| 305 |
|
| 306 |
vardef EAbstractClass@#(text _info)(expr name)(text methods)= |
| 307 |
EClass@#(_info)(name)()(methods); |
| 308 |
enddef; |
| 309 |
|
| 310 |
vardef Class_border@#= |
| 311 |
objectBox(@#) |
| 312 |
enddef; |
| 313 |
|
| 314 |
vardef Class_noVisibilityMarkers@#= |
| 315 |
@#info.featureVisibilityMode := "none"; |
| 316 |
enddef; |
| 317 |
|
| 318 |
vardef Class_layout@# = |
| 319 |
if @#laidout = 1: |
| 320 |
log "Class " & (str @#) & " has already been layed out"; |
| 321 |
else: |
| 322 |
@#laidout := 1; |
| 323 |
log "Class layout: " & (str @#); |
| 324 |
|
| 325 |
EPictureStack.@#stereotypeStack(@#info.iStereotypeStack) |
| 326 |
(scantokens listArray(@#stereotypes)(@#nStereotypes))("vcenterbase"); |
| 327 |
|
| 328 |
if (@#isAbstract): |
| 329 |
EPicture.@#namePict(@#info.iNameAbstract)(@#name); |
| 330 |
else: |
| 331 |
EPicture.@#namePict(@#info.iName)(@#name); |
| 332 |
fi; |
| 333 |
|
| 334 |
layoutObjects(@#stereotypeStack, @#namePict); |
| 335 |
|
| 336 |
% Define attributes |
| 337 |
|
| 338 |
def metauml_private_attributeStyleSupplier(expr i)= |
| 339 |
if @#attributesIsStatic[i]: @#info.iFeatureStatic |
| 340 |
else: @#info.iFeature |
| 341 |
fi |
| 342 |
enddef; |
| 343 |
|
| 344 |
@#info.iAttributeStack.childStyleSupplier := "metauml_private_attributeStyleSupplier"; |
| 345 |
|
| 346 |
EPictureStack.@#attributeStack(@#info.iAttributeStack) |
| 347 |
(scantokens listArray(@#attributes)(@#nAttrs))("vleftbase"); |
| 348 |
|
| 349 |
if @#info.featureVisibilityMode = "individual": |
| 350 |
vardef joinCallbackAttributesVisibility@#= |
| 351 |
setObjectJoin(pb.bottom = @#.attributeStack.pict[index].bottom; pb.midx = pa.midx); |
| 352 |
setObjectJoinFirst(pa.bottom = @#.attributeStack.pict[index].bottom); |
| 353 |
enddef; |
| 354 |
|
| 355 |
EPictureStack.@#attributeVisibilityStack(@#info.iAttributeVisibilityStack) |
| 356 |
(scantokens listArray(@#attributesVisibility)(@#nAttrs)) |
| 357 |
("joinCallbackAttributesVisibility." & (str @#)); |
| 358 |
elseif @#info.featureVisibilityMode = "none": |
| 359 |
EPicture.@#attributeVisibilityStack(iPictNoMargins)(""); |
| 360 |
else: |
| 361 |
show "Unknown feature visibility mode", @#featureVisibilityMode; |
| 362 |
1=2; |
| 363 |
fi; |
| 364 |
|
| 365 |
% Define methods |
| 366 |
|
| 367 |
def metauml_private_methodStyleSupplier(expr i)= |
| 368 |
if @#methodsIsStatic[i]: @#info.iFeatureStatic |
| 369 |
elseif @#methodsIsAbstract[i]: @#info.iFeatureAbstract |
| 370 |
else: @#info.iFeature |
| 371 |
fi |
| 372 |
enddef; |
| 373 |
|
| 374 |
@#info.iMethodStack.childStyleSupplier := "metauml_private_methodStyleSupplier"; |
| 375 |
|
| 376 |
EPictureStack.@#methodStack(@#info.iMethodStack) |
| 377 |
(scantokens listArray(@#methods)(@#nMethods))("vleftbase"); |
| 378 |
|
| 379 |
if @#info.featureVisibilityMode = "individual": |
| 380 |
vardef joinCallbackMethodsVisibility@#= |
| 381 |
setObjectJoin(pb.bottom = @#.methodStack.pict[index].bottom; pb.midx = pa.midx); |
| 382 |
setObjectJoinFirst(pa.bottom = @#.methodStack.pict[index].bottom); |
| 383 |
enddef; |
| 384 |
|
| 385 |
EPictureStack.@#methodVisibilityStack(@#info.iMethodVisibilityStack) |
| 386 |
(scantokens listArray(@#methodsVisibility)(@#nMethods)) |
| 387 |
("joinCallbackMethodsVisibility." & (str @#)); |
| 388 |
elseif @#info.featureVisibilityMode = "none": |
| 389 |
EPicture.@#methodVisibilityStack(iPictNoMargins)(""); |
| 390 |
else: |
| 391 |
show "Unknown feature visibility mode", @#featureVisibilityMode; |
| 392 |
1=2; |
| 393 |
fi; |
| 394 |
|
| 395 |
% Integrate components |
| 396 |
show layoutObjects(@#attributeStack, @#methodStack); |
| 397 |
layoutObjects(@#attributeStack, @#methodStack); |
| 398 |
|
| 399 |
@#attributeStack.left = @#methodStack.left; |
| 400 |
@#methodStack.top = @#attributeStack.bottom; |
| 401 |
|
| 402 |
layoutObjects(@#attributeVisibilityStack, @#methodVisibilityStack); |
| 403 |
|
| 404 |
@#attributeVisibilityStack.midx = @#methodVisibilityStack.midx; |
| 405 |
|
| 406 |
if (@#.nMethods = 0) or (@#info.featureVisibilityMode="none"): |
| 407 |
@#methodVisibilityStack.top = @#methodStack.top; |
| 408 |
fi; |
| 409 |
if (@#.nAttrs = 0) or (@#info.featureVisibilityMode="none"): |
| 410 |
@#attributeVisibilityStack.top = @#attributeStack.top; |
| 411 |
fi; |
| 412 |
|
| 413 |
EGroup.@#visibilityStacks(iGroupNoMargins)(@#attributeVisibilityStack, @#methodVisibilityStack); |
| 414 |
|
| 415 |
EGroup.@#featureStacks(iGroupNoMargins)(@#attributeStack, @#methodStack); |
| 416 |
|
| 417 |
layoutObjects(@#visibilityStacks, @#featureStacks); |
| 418 |
|
| 419 |
@#visibilityStacks.right = @#featureStacks.left; |
| 420 |
|
| 421 |
EGroup.@#featureGroup(iGroupNoMargins)(@#visibilityStacks, @#featureStacks); |
| 422 |
|
| 423 |
topToBottom(0)(@#stereotypeStack, @#namePict, @#featureGroup); |
| 424 |
|
| 425 |
EGroup.@#all(iGroupNoMargins)(@#stereotypeStack, @#namePict, @#featureGroup); |
| 426 |
|
| 427 |
layoutObjects(@#all); |
| 428 |
|
| 429 |
@#.nw = @#all.nw; |
| 430 |
@#.se = @#all.se; |
| 431 |
|
| 432 |
log "Class layout for " & (str @#) & " done..."; |
| 433 |
fi; |
| 434 |
enddef; |
| 435 |
|
| 436 |
vardef Class_paintSkin@# = |
| 437 |
log "Painting class skin..."; |
| 438 |
nameAttributeY := @#attributeStack.top; |
| 439 |
attributeMethodY := @#methodStack.top; |
| 440 |
|
| 441 |
drawObjectShade(@#); |
| 442 |
|
| 443 |
fill Class_border.@# withcolor @#info.foreColor; |
| 444 |
draw Class_border.@# withcolor @#info.borderColor; |
| 445 |
|
| 446 |
draw (xpart @#nw, nameAttributeY)--(xpart @#se, nameAttributeY) withcolor @#info.borderColor; |
| 447 |
draw (xpart @#nw, attributeMethodY)--(xpart @#se, attributeMethodY) withcolor @#info.borderColor; |
| 448 |
enddef; |
| 449 |
|
| 450 |
vardef Class_draw@#= |
| 451 |
log "Class_draw begin " & @#; |
| 452 |
Class_layout.@#; |
| 453 |
objectEnsurePositioning.@#; |
| 454 |
Class_paintSkin.@#; |
| 455 |
|
| 456 |
drawObjects(@#all); |
| 457 |
log "Class_draw end " & @#; |
| 458 |
enddef; |
| 459 |
|
| 460 |
vardef Class_setDebugMode@#= |
| 461 |
@#.info.iName.boxed := 1; |
| 462 |
|
| 463 |
@#.info.iFeature.boxed := 1; |
| 464 |
@#.info.iFeatureStatic.boxed := 1; |
| 465 |
@#.info.iFeatureAbstract.boxed := 1; |
| 466 |
|
| 467 |
@#.info.iStereotypeStack.boxed := 1; |
| 468 |
@#.info.iStereotypeStack.iPict.boxed := 1; |
| 469 |
@#.info.iAttributeStack.boxed := 1; |
| 470 |
@#.info.iAttributeStack.iPict.boxed := 1; |
| 471 |
@#.info.iMethodStack.boxed := 1; |
| 472 |
@#.info.iMethodStack.iPict.boxed := 1; |
| 473 |
|
| 474 |
@#.info.iAttributeVisibilityStack.boxed := 1; |
| 475 |
@#.info.iAttributeVisibilityStack.iPict.boxed := 1; |
| 476 |
@#.info.iMethodVisibilityStack.boxed := 1; |
| 477 |
@#.info.iMethodVisibilityStack.iPict.boxed := 1; |
| 478 |
enddef; |
| 479 |
|
| 480 |
vardef Class_stereotypes@#(text _stereotypes)= |
| 481 |
for stereotype = _stereotypes: |
| 482 |
@#stereotypes[@#nStereotypes] := stereotype; |
| 483 |
@#nStereotypes := @#nStereotypes + 1; |
| 484 |
endfor; |
| 485 |
enddef; |