Font Size: a A A

Object-Oriented Java Program Slicing And Its Application In API Measurement

Posted on:2018-09-04Degree:MasterType:Thesis
Country:ChinaCandidate:X Q ZhaoFull Text:PDF
GTID:2348330542452079Subject:Computer technology
Abstract/Summary:PDF Full Text Request
Software measurement is an effective method to evaluate software quality.However,with the continuous expansion of software scale,the existing measurement method by measuring the code structure attribute(e.g.,code complexity)to evaluate the quality of software,ignoring the quality assessment of the software internal component.By measuring the application programming interface within the software,people could know the relevance between the internal components of the system,which can be more systematic evaluation of the software,so that the software quality can be guaranteed.Program slicing is a technology to understand and analyze software programs.With the help of program slicing,people can quickly locate the code which they want to focus in large numbers of code,and then remove the unrelated code to focus on the parts of interested.Using program slicing to analyze the Java codes,the API slices can be found.On this basis,we can improve the accuracy of the measurement results by measuring the API.In order to better evaluate the quality of software,this thesis proposes an API measurement method based on object-oriented Java program slicing.Firstly,the author improves the traditional object-oriented system dependency graph.According to the grammar rules of Java language,the system dependency graph is divided into three levels,namely,class level,method level and statement level,and analyze deeply in the statement level.Hierarchical analysis of the Java program makes the slicing result more accurate and reduces the size of the slice.Secondly,on the basis of program slicing,the formal expression of five API metrics(tightness,coverage,overlap,parallelism,clustring)is given,and the corresponding algorithm is designed.Thirdly,the author designs and implements a Java program slicing tool,which can automatically slice and measure the API in Java program.Finally,two experiments are given to verify the rationality of the slicing results and the validity of the metrics.
Keywords/Search Tags:program sclicing, object-oriented, system dependency graph, API, software measurement
PDF Full Text Request
Related items