20.01.2014 Views

thesis - Faculty of Information and Communication Technologies ...

thesis - Faculty of Information and Communication Technologies ...

thesis - Faculty of Information and Communication Technologies ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix D<br />

Metric Extraction Illustration<br />

The program in Listing D.1 illustrates how our extraction approach<br />

counts the various metrics from the code. This block <strong>of</strong> Java code is a<br />

syntactically <strong>and</strong> semantically valid Java program that highlights some<br />

<strong>of</strong> the more complex metrics (not directly intuitive like a simple count<br />

such as Number <strong>of</strong> Methods) that we extract from a class. The values<br />

computed for the metrics for the class are listed at the top <strong>of</strong> the program<br />

in the header comment (see Table 4.3 for full form <strong>of</strong> the abbreviations<br />

used). The comments surrounding each line <strong>of</strong> code provide an<br />

explanation <strong>of</strong> the metrics as computed for that line.<br />

The program listing is on the next page.<br />

202

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!