Community
Participate
Working Groups
When I do reverse engineering of a method that returns something, (for example getters) the KDM model generated does not represent it. For instance the following method: public int getPollingRate() { return pollingRate; } Is represented by, <codeElement xsi:type="action:ActionElement" name="return" kind="return"> <source language="java"> <region file="/0/@model.2/@inventoryElement.1" language="java"/> </source> </codeElement> But It is not represented the returned storableunit. There is missing an action relation. The correct model construction must be: <codeElement xsi:type="action:ActionElement" name="return" kind="return"> <source language="java"> <region file="/0/@model.2/@inventoryElement.1" language="java"/> </source> <actionRelation xsi:type="action:Reads" to="(path to storableunit)" from="path to the container of this actionRelation"/> </codeElement>