new refactoring feature: detect constructs that could be classes and extract such classes out of them
Submitted by Kristof Szabados
Link to original bug (#569207)
Description
Now that Object Orientation is becoming supported by both the TTCN-3 standard and Titan users will have an interesting problem: They might wish to turn their existing code base object-oriented ... but there is just too much code to do this by hand.
Titan could offer a new refactoring solution, that can detect constructs that resemble class/object like behavior and try to extract classes out of them.
For example when a component has only a few fields, each of which is private, only read/written from functions running directly on the component ... that is mot probably an indication, that the developers of the code wanted to use a class ... but that was not possible. In such situations, it might be possible to automatically create a class with the needed members and functions + remove the extracted members from the component and remove the extracted functions for the code.
Version: 7.1.0