Skip to main content

SAM: Simple API for Object-Oriented Code Metrics

  • Conference paper
High Confidence Software Reuse in Large Systems (ICSR 2008)

Part of the book series: Lecture Notes in Computer Science ((LNPSE,volume 5030))

Included in the following conference series:

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Parr, T.J., Quong, R.W.: LL and LR translators need k 1 lookahead. ACM SIGPLAN Notices 31(2), 27–34 (1996)

    Article  Google Scholar 

  2. JavaCC Website: https://javacc.dev.java.net/

  3. ANTLR Website: http://antlr.org/

  4. Eclipse Metrics Plugin Website: http://www.teaminabox.co.uk/downloads/metrics/

  5. JRefactory Website: http://jrefactory.sourceforge.net/

  6. JDepend Website: http://www.clarkware.com/software/JDepend.html

  7. JavaNCSS Website: http://www.kclee.de/clemens/java/javancss/

  8. Succi, G., Liu, E.: A Relations-Based Appproach for Simplifying Metrics Extraction. In: ACM Applied Computing Review, pp. 27–32. ACM Press, New York

    Google Scholar 

  9. Devanbu, P.: GENOA - A Customizable, Front-End Retargetable Source Code Analysis Framework. ACM Transactions on Software Engineering and Methodolgy 8(2), 177–212 (1999)

    Article  Google Scholar 

  10. Grass, J.E., Chen, Y.: The C++ Information Abstractor. In: The Second USENIX C++ Conference, San Francisco, CA (1990)

    Google Scholar 

  11. 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)

    Article  Google Scholar 

  12. 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)

    Google Scholar 

  13. MySQL Website: http://mysql.com/

  14. SAX Website: http://www.saxproject.org/

  15. Frakes, W., Prieto-Diaz, R., Fox, C.: DARE: Domain Analysis and Reuse Environment. Annals of Software Engineering 5, 125–141 (1998)

    Article  Google Scholar 

  16. McCabe, T.J.: A Complexity Measure IEEE Transactions on Software Engineering, 2 (1976)

    Google Scholar 

  17. SourceForge Website: http://sourceforge.net/

Download references

Author information

Authors and Affiliations

Authors

Editor information

Hong Mei

Rights and permissions

Reprints 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)

Publish with us

Policies and ethics