%hasstereotype operator statement (SDL script)
SDL Script Extensions for TDK:
%for "Operation"
%if %hasstereotype "LogOperationEntry" %then
"printf (\"Entering " %custom "Name" "\\n\");\n"
%endif
%endfor
%string Stereo
%object MyObject
.....
%if %hasstereotype (Stereo, MyObject) %then
%m %blue "Stereotype " & Stereo & " is actually applied to " & MyObject:Name
%endif
Shorthand for testing whether a stereotype is present on the current object. %hasstereotype returns a logic value and accepts either a string argument (when testing %current), or a string/object pair.