Advertisement

Using Metadata Transformations to Integrate Class Extensions in an Existing Class Hierarchy

  • Markus Lumpe
Part of the Lecture Notes in Computer Science book series (LNCS, volume 4279)

Abstract

Class extensions provide a fine-grained mechanism to define incremental modifications to class-based systems when standard subclassing mechanisms are inappropriate. To control the impact of class extensions, the concept of classboxes has emerged that defines a new module system to restrict the visibility of class extensions to selected clients. However, the existing implementations of the classbox concept rely either on a “classbox-aware” virtual machine, an expensive runtime introspection of the method call stack to build the structure of a classbox, or both. In this paper we present an implementation technique that allows for the structure of a classbox to be constructed at compile-time by means of metadata transformations to rewire the inheritance graph of refined classes. These metadata transformations are language-neutral and more importantly preserve both the semantics of the classbox concept and the integrity of the underlying deployment units. As a result, metadata transformation provides a feasible approach to incorporate the classbox concept into programming environments that use a virtual execution system.

Keywords

Virtual Machine Class Hierarchy Class Point Class Extension Text Section 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. 1.
    Bergel, A., Ducasse, S., Nierstrasz, O.: Classbox/J: Controlling the Scope of Change in Java. In: Proceedings OOPSLA 2005. ACM SIGPLAN Notices, vol. 40, San Diego, USA, pp. 177–189 (October 2005)Google Scholar
  2. 2.
    Bergel, A., Ducasse, S., Nierstrasz, O., Wuyts, R.: Classboxes: Controlling Visibility of Class Extensions. Journal of Computer Languages, Systems & Structures 31(3-4), 107–126 (2005)MATHCrossRefGoogle Scholar
  3. 3.
    Bracha, G., Lindstrom, G.: Modularity Meets Inheritance. In: Proceedings of the International Conference on Computer Languages, pp. 282–290. IEEE Computer Society Press, Los Alamitos (1992)CrossRefGoogle Scholar
  4. 4.
    Cabral, B., Marques, P., Silva, L.: RAIL: Code Instrumentation for. NET. In: Liebrock, L.M. (ed.) SAC 2005, pp. 1282–1287. ACM Press, New York (2005)CrossRefGoogle Scholar
  5. 5.
    Chiba, S.: Load-Time Structural Reflection in Java. In: Bertino, E. (ed.) ECOOP 2000. LNCS, vol. 1850, pp. 313–336. Springer, Heidelberg (2000)CrossRefGoogle Scholar
  6. 6.
    Clifton, C., Leavens, G.T., Chambers, C., Millstein, T.: MultiJava: Modular Open Classes and Symmetric Multiple Dispatch for Java. In: Proceedings OOPSLA 2000, ACM SIGPLAN Notices, vol. 35, pp. 130–146 (October 2000)Google Scholar
  7. 7.
    European Computer Machinery Association. Standard ECMA-334: C# Language Specification, 3rd edn. (June 2005)Google Scholar
  8. 8.
    Ferber, J.: Computational Reflection in Class based Object-Oriented Languages. In: Proceedings OOPSLA 1989, pp. 317–326. ACM Press, New York (1989)CrossRefGoogle Scholar
  9. 9.
    Findler, R.B., Flatt, M.: Modular Object-Oriented Programming with Units and Mixins. In: Proceedings of the ACM SIGPLAN International Conference on Functional Programming (ICFP 1998), vol. 34, pp. 94–104 (1998)Google Scholar
  10. 10.
    Goldberg, A., Robson, D.: Smalltalk-80: The Language. Addison-Wesley, Reading (1989)MATHGoogle Scholar
  11. 11.
    Igarashi, A., Pierce, B.: Foundations for Virtual Types. In: Guerraoui, R. (ed.) ECOOP 1999. LNCS, vol. 1628, pp. 161–185. Springer, Heidelberg (1999)CrossRefGoogle Scholar
  12. 12.
    Keller, R., Hölzle, U.: Binary Component Adaptation. In: Jul, E. (ed.) ECOOP 1998. LNCS, vol. 1445, pp. 307–329. Springer, Heidelberg (1998)CrossRefGoogle Scholar
  13. 13.
    Kiczales, G., Hilsdale, E., Hugunin, J., Kersten, M., Palm, J., Griswold, W.G.: An Overview of AspectJ. In: Knudsen, J.L. (ed.) ECOOP 2001. LNCS, vol. 2072, pp. 327–355. Springer, Heidelberg (2001)CrossRefGoogle Scholar
  14. 14.
    Lafferty, D., Cahill, V.: Language-Independent Aspect-Oriented Programming. In: Proceedings OOPSLA 2003, pp. 1–12. ACM Press, New York (2003)CrossRefGoogle Scholar
  15. 15.
    Larus, J.R.L., Schnarr, E.: EEL: Machine-Independent Executable Editing. In: Proceedings of the ACM SIGPLAN 1995 Conference on Programming Language Design and Implementation (PLDI), La Jolla, California, pp. 291–300 (June 1995)Google Scholar
  16. 16.
    Lindholm, T., Yellin, F.: The Java Virtual Machine Specification. The Java Series. Addison-Wesley, Reading (1996)Google Scholar
  17. 17.
    Lumpe, M., Schneider, J.-G.: On the Integration of Classboxes into C#. In: Löwe, W., Südholt, M. (eds.) SC 2006. LNCS, vol. 4089, pp. 307–322. Springer, Heidelberg (2006)CrossRefGoogle Scholar
  18. 18.
    Malenfant, J., Dony, C., Cointe, P.: Behavioral Reflection in a Prototype-Based Language. In: Yonezawa, A., Smith, B. (eds.) Proceedings of International Workshop on Reflection and Meta-Level Architectures, Tokyo, Japan, pp. 143–153 (November 1992)Google Scholar
  19. 19.
    Microsoft Corporation. Metadata Unmanaged API (2002)Google Scholar
  20. 20.
    Miller, J.S., Ragsdale, S.: The Common Language Infrastructure Annotated Standard. Microsoft. NET Development Series. Addison-Wesley, Reading (2003)Google Scholar
  21. 21.
    Odersky, M., Altherr, P., Cremet, V., Emir, B., Maneth, S., Micheloud, S., Mihaylov, N., Scinz, M., Stenmanm, E., Zenger, M.: An Overview of the Scala Programming Language. Technical Report IC/2004/64, École Polytechnique Fédérale de Lausanne, School of Computer and Communication Sciences (2004)Google Scholar
  22. 22.
    Guy, L.: Common Lisp the Language, 2nd edn., Digital Press, Thinking Machines, Inc. (1990)Google Scholar
  23. 23.

Copyright information

© Springer-Verlag Berlin Heidelberg 2006

Authors and Affiliations

  • Markus Lumpe
    • 1
  1. 1.Department of Computer ScienceIowa State UniversityAmesUSA

Personalised recommendations