Tracing Attributes
[Previous]  [Next] 
|
User Manual [Previous]  [Next] Tracing AttributesMOTL allows the tracing of attributes at the model level. Attribute tracing can occur whenever an attribute value is changed (i.e. setter is called) or/and when the value is accessed (i.e. the getter method is called). Thus, attribute tracing can be made to occur any of the following modes:
Example// This traces setId() and setName() @SuppressWarnings("deprecation") class Student { Integer id; String name; trace id; trace set name; } Load the above code into UmpleOnline Another Example// This traces getId() method @SuppressWarnings("deprecation") class Student { Integer id; trace get id; } // @@@skipphpcompile See issue 596 (PHP tracing causes issues) Load the above code into UmpleOnline Another Example// This example traces getId() and setId() @SuppressWarnings("deprecation") class Student { Integer id; trace set,get id; } Load the above code into UmpleOnline SyntaxtraceDirective : trace [[Prefix]]? [[traceEntity]] [[Postfix]] ; traceEntity- : [traceEntity]  ((  )?  ()  )?  ( , [traceEntity]  ((  )?  ()  )?  )* |