Abstract
This paper introduces the Simple API for Object-Oriented Code Metrics or SAM. SAM has two distinct advantages over current application generators for metrics. First, SAM can collect a much larger set of metrics since it maintains context during metrics analysis. Second, SAM is completely language independent since it specifies the types of events a parser must generate, but not how to generate those events. Through examples, we will demonstrate how our API allows us to collect metrics not possible with application generators. We will also demonstrate how SAM can reduce the lines of code per metric by up to 90 percent when measured against some of today’s most popular standalone tools.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
Parr, T.J., Quong, R.W.: LL and LR translators need k 1 lookahead. ACM SIGPLAN Notices 31(2), 27–34 (1996)
JavaCC Website: https://javacc.dev.java.net/
ANTLR Website: http://antlr.org/
Eclipse Metrics Plugin Website: http://www.teaminabox.co.uk/downloads/metrics/
JRefactory Website: http://jrefactory.sourceforge.net/
JDepend Website: http://www.clarkware.com/software/JDepend.html
JavaNCSS Website: http://www.kclee.de/clemens/java/javancss/
Succi, G., Liu, E.: A Relations-Based Appproach for Simplifying Metrics Extraction. In: ACM Applied Computing Review, pp. 27–32. ACM Press, New York
Devanbu, P.: GENOA - A Customizable, Front-End Retargetable Source Code Analysis Framework. ACM Transactions on Software Engineering and Methodolgy 8(2), 177–212 (1999)
Grass, J.E., Chen, Y.: The C++ Information Abstractor. In: The Second USENIX C++ Conference, San Francisco, CA (1990)
Bieman, J.M., Karunanithi, S.: Measurement of Language-Suppported Reuse in Object-Oriented and Object-Based Software. Journal of Systems and Software 30, 271–293 (1995)
Scotto, M., Sillitti, A., Succi, G., Vernazza, T.: A Relational Approach to Software Metrics. In: 2004 ACM Symposium on Applied Computing, pp. 1536–1540 (2004)
MySQL Website: http://mysql.com/
SAX Website: http://www.saxproject.org/
Frakes, W., Prieto-Diaz, R., Fox, C.: DARE: Domain Analysis and Reuse Environment. Annals of Software Engineering 5, 125–141 (1998)
McCabe, T.J.: A Complexity Measure IEEE Transactions on Software Engineering, 2 (1976)
SourceForge Website: http://sourceforge.net/
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 2008 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Edelman, A., Frakes, W., Lillie, C. (2008). SAM: Simple API for Object-Oriented Code Metrics. In: Mei, H. (eds) High Confidence Software Reuse in Large Systems. ICSR 2008. Lecture Notes in Computer Science, vol 5030. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-68073-4_37
Download citation
DOI: https://doi.org/10.1007/978-3-540-68073-4_37
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-68062-8
Online ISBN: 978-3-540-68073-4
eBook Packages: Computer ScienceComputer Science (R0)