Approaches for improving classcohesion identify refactoringopportunities using metrics that capture structural relationships between the methods of a class, e.g., attribute references. Semantic metrics, e.g., C3 metric, have also been proposed to measureclasscohesion, as they seem to complement structural metrics. However, until now semantic relationships between methods have not been used to identify refactoringopportunities. In this paper we propose an ExtractClassrefactoring method based on graph theory that exploits structural and semantic relationships between methods. The empirical evaluation of the proposed approach highlighted the benefits provided by the combination of semantic and structuralmeasures and the potential usefulness of the proposed method as a feature for software development environments.
Identifying Extract Class Refactoring Opportunities Using Structural and Semantic Cohesion Measures
DE LUCIA, Andrea;
2011
Abstract
Approaches for improving classcohesion identify refactoringopportunities using metrics that capture structural relationships between the methods of a class, e.g., attribute references. Semantic metrics, e.g., C3 metric, have also been proposed to measureclasscohesion, as they seem to complement structural metrics. However, until now semantic relationships between methods have not been used to identify refactoringopportunities. In this paper we propose an ExtractClassrefactoring method based on graph theory that exploits structural and semantic relationships between methods. The empirical evaluation of the proposed approach highlighted the benefits provided by the combination of semantic and structuralmeasures and the potential usefulness of the proposed method as a feature for software development environments.I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.