AbstractsComputer Science

Compiling Package Templates

by Kenneth Solbø Andersen




Institution: University of Oslo
Department:
Year: 2013
Keywords: VDP::420
Record ID: 1274866
Full text PDF: https://www.duo.uio.no/handle/10852/37457


https://www.duo.uio.no/bitstream/10852/37457/1/Andersen-Master.pdf


Abstract

In Java, the package concept is a means for modularization of the code, in the same way as e.g namespaces are for some other languages. However, the flexibility of packages for reuse of code is not very good. Introducing Package Templates is a proposal to improve this situation, by moving the package one step towards a generic concept. The JPT language extends Java with the Package Template concept, and the JPT compiler has been developed alongside the development of the PT concept and the JPT language. This compiler is a necessary tool when evaluating the usefullness of Package Templates for large scale programming. This thesis describes the JPT language through explanations of the concepts and through code samples showing how these concepts are applied. It also discusses the design and implementation of the JPT compiler and some of the technologies that are used for building this compiler, and finally, it documents some of the recent changes that have been made to the JPT compiler.